mcp-example
No long description provided.
Installation
dagger install github.com/jasonmccallister/mcp-example@9596b484a7ec710db2e7d0146532dd51351d2e7fEntrypoint
Return Type
McpExample Example
dagger -m github.com/jasonmccallister/mcp-example@9596b484a7ec710db2e7d0146532dd51351d2e7f call \
func (m *MyModule) Example() *dagger.McpExample {
return dag.
McpExample()
}@function
def example() -> dagger.McpExample:
return (
dag.mcp_example()
)@func()
example(): McpExample {
return dag
.mcpExample()
}Types
McpExample 🔗
greetSomeone() 🔗
Greets the individal with the provided name
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| name | String ! | - | No description provided |
Example
dagger -m github.com/jasonmccallister/mcp-example@9596b484a7ec710db2e7d0146532dd51351d2e7f call \
greet-someone --name stringfunc (m *MyModule) Example(ctx context.Context, name string) string {
return dag.
McpExample().
GreetSomeone(ctx, name)
}@function
async def example(name: str) -> str:
return await (
dag.mcp_example()
.greet_someone(name)
)@func()
async example(name: string): Promise<string> {
return dag
.mcpExample()
.greetSomeone(name)
}getAllPosts() 🔗
Get all of the names of the posts
Return Type
[String ! ] ! Example
dagger -m github.com/jasonmccallister/mcp-example@9596b484a7ec710db2e7d0146532dd51351d2e7f call \
get-all-postsfunc (m *MyModule) Example(ctx context.Context) []string {
return dag.
McpExample().
GetAllPosts(ctx)
}@function
async def example() -> List[str]:
return await (
dag.mcp_example()
.get_all_posts()
)@func()
async example(): Promise<string[]> {
return dag
.mcpExample()
.getAllPosts()
}