- CacheHint (from mcp.protocol.modern)
public
import mcp.protocol.modern : DiscoverResult, CacheHint, CacheScope, RequestMeta;
Undocumented in source.
- CacheScope (from mcp.protocol.modern)
public
import mcp.protocol.modern : DiscoverResult, CacheHint, CacheScope, RequestMeta;
Undocumented in source.
- DiscoverResult (from mcp.protocol.modern)
public
import mcp.protocol.modern : DiscoverResult, CacheHint, CacheScope, RequestMeta;
Undocumented in source.
- RequestMeta (from mcp.protocol.modern)
public
import mcp.protocol.modern : DiscoverResult, CacheHint, CacheScope, RequestMeta;
Undocumented in source.
- RequestStateBinding (from mcp.server.request_state)
public
import mcp.server.request_state : RequestStateSecurity, RequestStateMode, RequestStateBinding;
Undocumented in source.
- RequestStateMode (from mcp.server.request_state)
public
import mcp.server.request_state : RequestStateSecurity, RequestStateMode, RequestStateBinding;
Undocumented in source.
- RequestStateSecurity (from mcp.server.request_state)
public
import mcp.server.request_state : RequestStateSecurity, RequestStateMode, RequestStateBinding;
Undocumented in source.
mcp — a production-grade Model Context Protocol SDK for D.
Importing mcp re-exports the curated, stable public API:
- the protocol types (mcp.protocol.*: versions, errors, JSON-RPC, capabilities, core types, sampling), - the server / client entry points (McpServer, McpClient, RequestContext), - the declarative UDA / reflection layer (@tool, @resource, @prompt, registerModule, schema generation), and - the error builders (McpException, ErrorCode, toErrorJson, makeErrorResponse).
Transport wiring and auth plumbing are deliberately kept out of the top-level surface to avoid name collisions and to signal stable-public-API vs internal plumbing. Bring them in explicitly when needed:
- import mcp.transport; — stdio / Streamable HTTP / SSE / session / OAuth-proxy mount / modern transport helpers, - import mcp.auth; — token verifiers / OAuth client / login / resource-server / OAuth proxy.