Table of Contents

Namespace LMKit.Mcp.Server

Classes

McpContent

A single content block of an MCP tool result.

McpRequestContext

Per-call state handed to a tool: the session it belongs to, the caller identity resolved by the host, and the channel used to report progress on long operations.

McpServer

Hosts a Model Context Protocol server: it exposes registered tools and resources to an MCP client and answers JSON-RPC messages.

McpServerException

A protocol-level fault that should reach the client as a JSON-RPC error.

McpServerOptions

Identity and limits of an McpServer.

McpStdioServer

Runs an McpServer over standard input and output, the transport MCP clients use for locally launched servers.

McpToolResult

The result of an MCP tool call: one or more content blocks, an optional machine-readable projection, and a flag marking tool-level failures.

Interfaces

IMcpCompletionProvider

Suggests values for a prompt or resource-template argument, answering completion/complete.

IMcpPromptProvider

Supplies the prompts an McpServer exposes through prompts/list and prompts/get.

IMcpResourceProvider

Supplies the resources an McpServer exposes through resources/list, resources/templates/list and resources/read.

IMcpTool

A tool that speaks the MCP result model directly, returning content blocks rather than a JSON string.

Enums

McpContentKind

Kind of a content block carried by an MCP tool result.

McpErrorCode

JSON-RPC error codes used by the MCP protocol layer.

Share