v0.2.0 · World
tools-resources-prompts-transport
Serves TOOLS + RESOURCES + PROMPTS
Imports
I
mcp-types
ICore type definitions for the Model Context Protocol, shared by other interfaces.
prompts-types
IType definitions for prompts
prompts
IPrompts allow servers to provide structured messages and instructions for interacting with language models. Clients can discover available prompts, retrieve their contents, and provide arguments to customize them.
resources-types
IType definitions for resources
resources
IResources allow servers to share data that provides context to language models, such as files, database schemas, or application-specific information. Each resource is uniquely identified by a URI.
authorization-types
IType definitions for authentication and authorization
tools-types
IType definitions for tools
tools
ITools enable models to interact with external systems, such as querying databases, calling APIs, or performing computations. Each tool is uniquely identified by a name and includes metadata describing its schema.
lifecycle-types
IType definitions for the MCP lifecycle
lifecycle
IA lifecycle for client-server connections that ensures proper capability negotiation and state management. Initialization: Capability negotiation and protocol version agreement Operation: Normal protocol communication Shutdown: Graceful termination of the connection
authorization
Authorization capabilities are provided at the transport level, enabling MCP clients to make requests to restricted MCP servers on behalf of resource owners.