mcp-sdk
No long description provided.
Installation
dagger install github.com/shykes/x/mcp-sdk@b3d45d5fc4927c5992da563148cc36343cc03346Entrypoint
Return Type
McpSdk !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory | - | No description provided |
| binName | String ! | "mcp-runtime" | No description provided |
Example
dagger -m github.com/shykes/x/mcp-sdk@b3d45d5fc4927c5992da563148cc36343cc03346 call \
--bin-name stringfunc (m *MyModule) Example(binName string) *dagger.McpSdk {
return dag.
McpSdk(binName)
}@function
def example(bin_name: str) -> dagger.McpSdk:
return (
dag.mcp_sdk(bin_name)
)@func()
example(binName: string): McpSdk {
return dag
.mcpSdk(binName)
}Types
McpSdk 🔗
source() 🔗
Return Type
Directory ! Example
dagger -m github.com/shykes/x/mcp-sdk@b3d45d5fc4927c5992da563148cc36343cc03346 call \
--bin-name string sourcefunc (m *MyModule) Example(binName string) *dagger.Directory {
return dag.
McpSdk(binName).
Source()
}@function
def example(bin_name: str) -> dagger.Directory:
return (
dag.mcp_sdk(bin_name)
.source()
)@func()
example(binName: string): Directory {
return dag
.mcpSdk(binName)
.source()
}binName() 🔗
Return Type
String ! Example
dagger -m github.com/shykes/x/mcp-sdk@b3d45d5fc4927c5992da563148cc36343cc03346 call \
--bin-name string bin-namefunc (m *MyModule) Example(ctx context.Context, binName string) string {
return dag.
McpSdk(binName).
BinName(ctx)
}@function
async def example(bin_name: str) -> str:
return await (
dag.mcp_sdk(bin_name)
.bin_name()
)@func()
async example(binName: string): Promise<string> {
return dag
.mcpSdk(binName)
.binName()
}targetModule() 🔗
Return Type
ModuleSource ! Example
dagger -m github.com/shykes/x/mcp-sdk@b3d45d5fc4927c5992da563148cc36343cc03346 call \
--bin-name string target-modulefunc (m *MyModule) Example(binName string) *dagger.ModuleSource {
return dag.
McpSdk(binName).
TargetModule()
}@function
def example(bin_name: str) -> dagger.ModuleSource:
return (
dag.mcp_sdk(bin_name)
.target_module()
)@func()
example(binName: string): ModuleSource {
return dag
.mcpSdk(binName)
.targetModule()
}moduleRuntime() 🔗
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| modSource | ModuleSource ! | - | No description provided |
| introspectionJson | File ! | - | No description provided |
Example
echo 'Custom types are not supported in shell examples'func (m *MyModule) Example(binName string, modSource *dagger.ModuleSource, introspectionJson *dagger.File) *dagger.Container {
return dag.
McpSdk(binName).
ModuleRuntime(modSource, introspectionJson)
}@function
def example(bin_name: str, mod_source: dagger.ModuleSource, introspection_json: dagger.File) -> dagger.Container:
return (
dag.mcp_sdk(bin_name)
.module_runtime(mod_source, introspection_json)
)@func()
example(binName: string, modSource: ModuleSource, introspectionJson: File): Container {
return dag
.mcpSdk(binName)
.moduleRuntime(modSource, introspectionJson)
}targetModuleRoot() 🔗
Return Type
Directory ! Example
dagger -m github.com/shykes/x/mcp-sdk@b3d45d5fc4927c5992da563148cc36343cc03346 call \
--bin-name string target-module-rootfunc (m *MyModule) Example(binName string) *dagger.Directory {
return dag.
McpSdk(binName).
TargetModuleRoot()
}@function
def example(bin_name: str) -> dagger.Directory:
return (
dag.mcp_sdk(bin_name)
.target_module_root()
)@func()
example(binName: string): Directory {
return dag
.mcpSdk(binName)
.targetModuleRoot()
}runtime() 🔗
Return Type
Container ! Example
dagger -m github.com/shykes/x/mcp-sdk@b3d45d5fc4927c5992da563148cc36343cc03346 call \
--bin-name string runtimefunc (m *MyModule) Example(binName string) *dagger.Container {
return dag.
McpSdk(binName).
Runtime()
}@function
def example(bin_name: str) -> dagger.Container:
return (
dag.mcp_sdk(bin_name)
.runtime()
)@func()
example(binName: string): Container {
return dag
.mcpSdk(binName)
.runtime()
}mcpTools() 🔗
Return Type
File ! Example
dagger -m github.com/shykes/x/mcp-sdk@b3d45d5fc4927c5992da563148cc36343cc03346 call \
--bin-name string mcp-toolsfunc (m *MyModule) Example(binName string) *dagger.File {
return dag.
McpSdk(binName).
McpTools()
}@function
def example(bin_name: str) -> dagger.File:
return (
dag.mcp_sdk(bin_name)
.mcp_tools()
)@func()
example(binName: string): File {
return dag
.mcpSdk(binName)
.mcpTools()
}withTargetModule() 🔗
Return Type
McpSdk !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| mod | ModuleSource ! | - | No description provided |
Example
echo 'Custom types are not supported in shell examples'func (m *MyModule) Example(binName string, mod *dagger.ModuleSource) *dagger.McpSdk {
return dag.
McpSdk(binName).
WithTargetModule(mod)
}@function
def example(bin_name: str, mod: dagger.ModuleSource) -> dagger.McpSdk:
return (
dag.mcp_sdk(bin_name)
.with_target_module(mod)
)@func()
example(binName: string, mod: ModuleSource): McpSdk {
return dag
.mcpSdk(binName)
.withTargetModule(mod)
}mcpClientBin() 🔗
Return Type
File ! Example
dagger -m github.com/shykes/x/mcp-sdk@b3d45d5fc4927c5992da563148cc36343cc03346 call \
--bin-name string mcp-client-binfunc (m *MyModule) Example(binName string) *dagger.File {
return dag.
McpSdk(binName).
McpClientBin()
}@function
def example(bin_name: str) -> dagger.File:
return (
dag.mcp_sdk(bin_name)
.mcp_client_bin()
)@func()
example(binName: string): File {
return dag
.mcpSdk(binName)
.mcpClientBin()
}mcpClient() 🔗
Return Type
Container ! Example
dagger -m github.com/shykes/x/mcp-sdk@b3d45d5fc4927c5992da563148cc36343cc03346 call \
--bin-name string mcp-clientfunc (m *MyModule) Example(binName string) *dagger.Container {
return dag.
McpSdk(binName).
McpClient()
}@function
def example(bin_name: str) -> dagger.Container:
return (
dag.mcp_sdk(bin_name)
.mcp_client()
)@func()
example(binName: string): Container {
return dag
.mcpSdk(binName)
.mcpClient()
}mcpFrontend() 🔗
Return Type
Service ! Example
dagger -m github.com/shykes/x/mcp-sdk@b3d45d5fc4927c5992da563148cc36343cc03346 call \
--bin-name string mcp-frontendfunc (m *MyModule) Example(binName string) *dagger.Service {
return dag.
McpSdk(binName).
McpFrontend()
}@function
def example(bin_name: str) -> dagger.Service:
return (
dag.mcp_sdk(bin_name)
.mcp_frontend()
)@func()
example(binName: string): Service {
return dag
.mcpSdk(binName)
.mcpFrontend()
}mcpBackend() 🔗
Return Type
Container ! Example
dagger -m github.com/shykes/x/mcp-sdk@b3d45d5fc4927c5992da563148cc36343cc03346 call \
--bin-name string mcp-backendfunc (m *MyModule) Example(binName string) *dagger.Container {
return dag.
McpSdk(binName).
McpBackend()
}@function
def example(bin_name: str) -> dagger.Container:
return (
dag.mcp_sdk(bin_name)
.mcp_backend()
)@func()
example(binName: string): Container {
return dag
.mcpSdk(binName)
.mcpBackend()
}codegen() 🔗
no-op to implement the Dagger SDK interface
Return Type
GeneratedCode !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| modSource | ModuleSource ! | - | No description provided |
| introspectionJson | File ! | - | No description provided |
Example
echo 'Custom types are not supported in shell examples'func (m *MyModule) Example(binName string, modSource *dagger.ModuleSource, introspectionJson *dagger.File) *dagger.GeneratedCode {
return dag.
McpSdk(binName).
Codegen(modSource, introspectionJson)
}@function
def example(bin_name: str, mod_source: dagger.ModuleSource, introspection_json: dagger.File) -> dagger.GeneratedCode:
return (
dag.mcp_sdk(bin_name)
.codegen(mod_source, introspection_json)
)@func()
example(binName: string, modSource: ModuleSource, introspectionJson: File): GeneratedCode {
return dag
.mcpSdk(binName)
.codegen(modSource, introspectionJson)
}