Expand description
Model Context Protocol (MCP) implementation for microsandbox server.
This module implements MCP endpoints served at the /mcp
endpoint.
MCP is essentially JSON-RPC with specific method names and schemas.
The module provides:
- MCP server initialization and capabilities
- Tool definitions for sandbox operations
- Prompt templates for common sandbox tasks
- Integration with existing sandbox management functions
Functionsยง
- handle_
mcp_ call_ tool - Handle MCP call tool request
- handle_
mcp_ get_ prompt - Handle MCP get prompt request
- handle_
mcp_ initialize - Handle MCP initialize request
- handle_
mcp_ list_ prompts - Handle MCP list prompts request
- handle_
mcp_ list_ tools - Handle MCP list tools request
- handle_
mcp_ method - Handle MCP methods
- handle_
mcp_ notifications_ initialized - Handle MCP notifications/initialized request