Documentation
¶
Overview ¶
Package agentmcp exposes the bounded agent service through MCP tools.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeRequest ¶
DecodeRequest validates a bounded CLI request with the same narrow schemas as MCP. An explicit operation may fill an absent operation, but cannot override it. Returned errors are sanitized; the request's operation is usable on failure.
func Failure ¶
Failure creates a public failure without echoing unknown operation names. Callers must supply fixed, non-sensitive codes and messages.
func NewServer ¶
NewServer creates an MCP server. The caller owns the service and must close it after all sessions end. Trust is exclusively configured when creating service.
func Schema ¶
Schema returns standalone request, response, batchRequest, and batchResponse schemas, plus input/output unions for a complete CLI invocation. Data schemas are inferred from each operation's concrete DTO, including nested results.
func StdioTransport ¶
func StdioTransport() *mcp.IOTransport
StdioTransport bounds each incoming JSON-RPC frame to 128 KiB, including its newline, before the SDK decodes it. Invalid/oversized frames end the session with a fixed error and are never partially forwarded to the SDK.
Types ¶
This section is empty.