Documentation
¶
Index ¶
- type Builder
- func (b *Builder) Build() (Server, error)
- func (b *Builder) Cmd(ctx context.Context, ctr *mcp.CallToolRequest) (*mcp.CallToolResult, error)
- func (b *Builder) Conduit(c *conduit.Conduit) *Builder
- func (b *Builder) Run(ctx context.Context, srv *conduit.Conduit) error
- func (b *Builder) Server(name string) *Builder
- func (b *Builder) UnsafeCmd(ctx context.Context, ctr *mcp.CallToolRequest) (*mcp.CallToolResult, error)
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder helps to construct an MCP server with defined tools.
func (*Builder) Cmd ¶
func (b *Builder) Cmd(ctx context.Context, ctr *mcp.CallToolRequest) (*mcp.CallToolResult, error)
func (*Builder) UnsafeCmd ¶
func (b *Builder) UnsafeCmd(ctx context.Context, ctr *mcp.CallToolRequest) (*mcp.CallToolResult, error)
Click to show internal directories.
Click to hide internal directories.