Dagger
Search

mcp-sdk

No long description provided.

Installation

dagger install github.com/shykes/x/mcp-sdk@811fa8a47958c484441304cec08d6fe30a7550b3

Entrypoint

Return Type
McpSdk !
Arguments
NameTypeDefault ValueDescription
sourceDirectory -No description provided
binNameString !"mcp-runtime"No description provided
Example
dagger -m github.com/shykes/x/mcp-sdk@811fa8a47958c484441304cec08d6fe30a7550b3 call \
 --bin-name string
func (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@811fa8a47958c484441304cec08d6fe30a7550b3 call \
 --bin-name string source
func (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@811fa8a47958c484441304cec08d6fe30a7550b3 call \
 --bin-name string bin-name
func (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@811fa8a47958c484441304cec08d6fe30a7550b3 call \
 --bin-name string target-module
func (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
NameTypeDefault ValueDescription
modSourceModuleSource !-No description provided
introspectionJsonFile !-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@811fa8a47958c484441304cec08d6fe30a7550b3 call \
 --bin-name string target-module-root
func (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@811fa8a47958c484441304cec08d6fe30a7550b3 call \
 --bin-name string runtime
func (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@811fa8a47958c484441304cec08d6fe30a7550b3 call \
 --bin-name string mcp-tools
func (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
NameTypeDefault ValueDescription
modModuleSource !-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@811fa8a47958c484441304cec08d6fe30a7550b3 call \
 --bin-name string mcp-client-bin
func (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@811fa8a47958c484441304cec08d6fe30a7550b3 call \
 --bin-name string mcp-client
func (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@811fa8a47958c484441304cec08d6fe30a7550b3 call \
 --bin-name string mcp-frontend
func (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@811fa8a47958c484441304cec08d6fe30a7550b3 call \
 --bin-name string mcp-backend
func (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
NameTypeDefault ValueDescription
modSourceModuleSource !-No description provided
introspectionJsonFile !-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)
}

OSZAR »