Pt::Mcp Namespace Reference

Detailed Description

The MCP module (Pt::Mcp) of the Pt framework provides an implementation of the Model Context Protocol for exposing tool-based services. It builds on top of the JSON-RPC module (Pt::JsonRpc) and uses its Formatter and Fault infrastructure. Custom data-types can be used in MCP tool procedures if they are serializable using Pt's serialization API.

Classes

class  ArrayType
 Array type with element type. More...
 
class  ContentType
 Formats a tool result as MCP content. More...
 
class  EnumType
 Enum type with a fixed set of allowed string values. More...
 
class  HttpService
 HTTP service for MCP. More...
 
class  NullableType
 Nullable wrapper that allows null as an alternative value. More...
 
class  ObjectType
 Object type with named properties. More...
 
class  Property
 Property of an ObjectType. More...
 
class  Service
 MCP protocol service over stdio. More...
 
class  StdioService
 MCP protocol service over stdio. More...
 
class  TextContent
 Formats tool results as MCP text content. More...
 
class  Tool
 MCP tool descriptor. More...
 
class  ToolDeclaration
 MCP server and tool registry. More...
 
class  Type
 JSON Schema type descriptor for MCP tool parameters. More...