Documentation
¶
Overview ¶
Package mcpserver is the JSON-RPC of the runtime's MCP server for agents: stateless Streamable HTTP, every POST carrying one message (or a batch) and getting its answer as plain JSON, nothing kept between calls. The tools come from toolsets (the preview's DevTools, the conversations an agent delegates), each answering for its own names.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Toolset ¶
type Toolset interface {
// Instructions is what the server tells the agent of these tools at initialize.
Instructions() string
// Tools are the tools' definitions as tools/list gives them.
Tools() []any
Has(name string) bool
// Call runs a tool the set has with its arguments (an object, empty when none were given): the tools/call result.
Call(ctx context.Context, name string, args *jsvalue.Object) *jsvalue.Object
}
Toolset is a group of tools of the server.