# pascal-mcp-sdk > A FreePascal-native MCP (Model Context Protocol) server library with zero third-party dependencies. pascal-mcp-sdk lets a FreePascal program expose tools, resources and prompts to AI agents. It uses only packages that ship with FPC (the RTL, fpjson and fcl-base, plus fcl-web for HTTP). Over stdio it serves both protocol eras, so Claude Code, Claude Desktop and Codex connect to it as they are; its Streamable HTTP binding speaks only the stateless 2026-07-28 protocol, for clients that send per-request _meta instead of opening with initialize. It is not tina4stack/pascal-mcp (formerly claude-pascal-mcp, a Python MCP server that compiles and runs Pascal programs) and not @pascal-app/mcp (the MCP server of the Pascal 3D editor). ## Documentation - [Documentation](https://frostney.github.io/pascal-mcp-sdk/llms.mdx/docs/content.md): pascal-mcp-sdk lets any FreePascal program expose tools, resources, and prompts to AI agents over the Model Context Protocol — no second language runtime,… - [All of the documentation in one file](https://frostney.github.io/pascal-mcp-sdk/llms-full.txt) ## Guides - [MCP for Pascal developers](https://frostney.github.io/pascal-mcp-sdk/llms.mdx/docs/guides/introduction/content.md): You know Pascal; you keep hearing about AI agents; this page connects the two. No AI background assumed. - [Quick Start](https://frostney.github.io/pascal-mcp-sdk/llms.mdx/docs/guides/quick-start/content.md): Add pascal-mcp-sdk to your project (lwpt add or vendor seven files), register tools with a name, description, schema, and a handler function, and call… - [Your First Conversation](https://frostney.github.io/pascal-mcp-sdk/llms.mdx/docs/guides/first-conversation/content.md): What talking to an MCP client actually looks like — a complete session between an AI agent and the demo server, shown twice: as the user saw it, and as your… - [Tools](https://frostney.github.io/pascal-mcp-sdk/llms.mdx/docs/guides/tools/content.md): A tool is a function your server exposes for an AI agent to call: a name, a description the model reads, a JSON Schema for its arguments, and a Pascal… - [Returning Images](https://frostney.github.io/pascal-mcp-sdk/llms.mdx/docs/guides/images/content.md): A tool can answer with an image instead of (or alongside) text: MCPImageResult builds the spec's image content block —… - [Schemas](https://frostney.github.io/pascal-mcp-sdk/llms.mdx/docs/guides/schemas/content.md): Tool schemas are written in Pascal, not JSON. The fluent builder (ObjectSchema.AddString(...)) covers the flat object schemas most tools need; argument… - [Prompts](https://frostney.github.io/pascal-mcp-sdk/llms.mdx/docs/guides/prompts/content.md): A prompt is a reusable message template your server offers to the user of an MCP client (tools are model-invoked; prompts are user-invoked — a slash… - [Resources](https://frostney.github.io/pascal-mcp-sdk/llms.mdx/docs/guides/resources/content.md): A resource is data your server exposes for the client to read — a file, a config, a report — addressed by URI, listed via resources/list, fetched via… - [Configuration](https://frostney.github.io/pascal-mcp-sdk/llms.mdx/docs/guides/configuration/content.md): A free-text description of how to use your server, surfaced to clients via server/discover (and the classic initialize result). Clients typically place it… - [Progress and Logging](https://frostney.github.io/pascal-mcp-sdk/llms.mdx/docs/guides/progress-and-logging/content.md): Two channels, two audiences. In-request notifications — MCPReportProgress and MCPLogMessage — go to the client inside the protocol, strictly when the client… - [Shipping Your Server](https://frostney.github.io/pascal-mcp-sdk/llms.mdx/docs/guides/shipping/content.md): A server built with pascal-mcp-sdk deploys as a single native binary per platform: build in release mode, ship the executable, register its absolute path in… - [Deploying the HTTP Binding](https://frostney.github.io/pascal-mcp-sdk/llms.mdx/docs/guides/deployment/content.md): A stdio server never deploys anywhere — the MCP client launches the binary on the user's machine and owns its lifetime (Shipping your server covers that… - [Troubleshooting](https://frostney.github.io/pascal-mcp-sdk/llms.mdx/docs/guides/troubleshooting/content.md): The failure modes everyone hits once, and what they mean. - [Cookbook](https://frostney.github.io/pascal-mcp-sdk/llms.mdx/docs/guides/cookbook/content.md): Complete, runnable patterns. Every snippet here is lifted from — or directly runnable against — the demo server, mcpdemo.pas: the smallest complete… ## Reference - [Server API](https://frostney.github.io/pascal-mcp-sdk/llms.mdx/docs/reference/server/content.md): The registration and serving surface: TMCPServer from MCP.Server, plus the two transports. The task-oriented walkthroughs live in the guides; this page is… - [Results and Content](https://frostney.github.io/pascal-mcp-sdk/llms.mdx/docs/reference/results/content.md): Handlers build their answers with these helpers, all from MCP.Server. - [Client Requests (MRTR)](https://frostney.github.io/pascal-mcp-sdk/llms.mdx/docs/reference/client-requests/content.md): The Multi Round-Trip Request surface: how a tools/call or prompts/get handler asks the client for more input mid-call — elicitation, sampling, roots —… - [Protocol Coverage](https://frostney.github.io/pascal-mcp-sdk/llms.mdx/docs/reference/protocol-coverage/content.md): What the library implements of MCP spec revision 2026-07-28, surface by surface. This table is the authoritative coverage record; the README links here. ## Internals - [Architecture](https://frostney.github.io/pascal-mcp-sdk/llms.mdx/docs/internals/architecture/content.md): pascal-mcp-sdk is six units layered strictly bottom-up. Four form the request chain — MCP.JSONRPC (the JSON-RPC 2.0 profile MCP mandates), MCP.Protocol (the… - [Contributing Changes](https://frostney.github.io/pascal-mcp-sdk/llms.mdx/docs/internals/contributing/content.md): A change lands here by proving itself: a failing test first, the implementation in the one unit that owns the rule, the local gate (lwpt install --frozen,… - [Tooling](https://frostney.github.io/pascal-mcp-sdk/llms.mdx/docs/internals/tooling/content.md): lwpt is the single toolchain entry point: install resolves the one dev-time dependency and regenerates lwpt.cfg/lwpt.lock, build compiles the two apps, test… - [Code Style](https://frostney.github.io/pascal-mcp-sdk/llms.mdx/docs/internals/code-style/content.md): FPC 3.2.2, Delphi mode, one shared flags block (MCP.inc), lwpt format as the only formatting authority. Namespaced units (MCP..pas) with co-located tests,… - [Releasing](https://frostney.github.io/pascal-mcp-sdk/llms.mdx/docs/internals/releasing/content.md): The library follows semver via lwpt package versions and git tags. Protocol-revision changes (adopting a newer MCP revision, adding dual-era support) are…