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(binname: str) -> dagger.McpSdk:
return (
dag.mcp_sdk(binname)
)@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(binname: str) -> dagger.Directory:
return (
dag.mcp_sdk(binname)
.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(binname: str) -> str:
return await (
dag.mcp_sdk(binname)
.binname()
)@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(binname: str) -> dagger.ModuleSource:
return (
dag.mcp_sdk(binname)
.targetmodule()
)@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(binname: str, modsource: dagger.ModuleSource, introspectionjson: dagger.File) -> dagger.Container:
return (
dag.mcp_sdk(binname)
.moduleruntime(modsource, introspectionjson)
)@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(binname: str) -> dagger.Directory:
return (
dag.mcp_sdk(binname)
.targetmoduleroot()
)@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(binname: str) -> dagger.Container:
return (
dag.mcp_sdk(binname)
.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(binname: str) -> dagger.File:
return (
dag.mcp_sdk(binname)
.mcptools()
)@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(binname: str, mod: dagger.ModuleSource) -> dagger.McpSdk:
return (
dag.mcp_sdk(binname)
.withtargetmodule(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(binname: str) -> dagger.File:
return (
dag.mcp_sdk(binname)
.mcpclientbin()
)@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(binname: str) -> dagger.Container:
return (
dag.mcp_sdk(binname)
.mcpclient()
)@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(binname: str) -> dagger.Service:
return (
dag.mcp_sdk(binname)
.mcpfrontend()
)@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(binname: str) -> dagger.Container:
return (
dag.mcp_sdk(binname)
.mcpbackend()
)@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(binname: str, modsource: dagger.ModuleSource, introspectionjson: dagger.File) -> dagger.GeneratedCode:
return (
dag.mcp_sdk(binname)
.codegen(modsource, introspectionjson)
)@func()
example(binName: string, modSource: ModuleSource, introspectionJson: File): GeneratedCode {
return dag
.mcpSdk(binName)
.codegen(modSource, introspectionJson)
}