Dagger
Search

mcp-example

No long description provided.

Installation

dagger install github.com/jasonmccallister/mcp-example@9596b484a7ec710db2e7d0146532dd51351d2e7f

Entrypoint

Return Type
McpExample
Example
dagger -m github.com/jasonmccallister/mcp-example@9596b484a7ec710db2e7d0146532dd51351d2e7f call \
func (m *myModule) example() *McpExample  {
	return dag.
			McpExample()
}
@function
def example() -> dag.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
NameTypeDefault ValueDescription
nameString !-No description provided
Example
dagger -m github.com/jasonmccallister/mcp-example@9596b484a7ec710db2e7d0146532dd51351d2e7f call \
 greet-someone --name string
func (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-posts
func (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()
}