Api.h
1/* Copyright (C) 2020-2026 by Marc Boris Duerner
2 SPDX-License-Identifier: LGPL-2.1-or-later WITH mif-exception
3*/
4
5#ifndef PT_MCP_API_H
6#define PT_MCP_API_H
7
8#include <Pt/Api.h>
9
10#define PT_MCP_VERSION_MAJOR PT_VERSION_MAJOR
11#define PT_MCP_VERSION_MINOR PT_VERSION_MINOR
12#define PT_MCP_VERSION_REVISION PT_VERSION_REVISION
13#define PT_MCP_VERSION_PRERELEASE PT_VERSION_PRERELEASE
14
15#if defined(PT_MCP_API_EXPORT)
16# define PT_MCP_API PT_EXPORT
17# else
18# define PT_MCP_API PT_IMPORT
19# endif
20
21namespace Pt {
22
31namespace Mcp {
32
33class Type;
34class Property;
35class ObjectType;
36class ArrayType;
37class EnumType;
38class NullableType;
39class Tool;
40class ToolDeclaration;
42class ContentType;
43class TextContent;
44class ImageContent;
45class HttpService;
46class Service;
47class StdioService;
48
49} // namespace Mcp
50
51} // namespace Pt
52
53#endif
JSON array schema with one element type.
Definition Type.h:230
Writer for one MCP content block around a Formatter.
Definition ContentType.h:36
Strategy that formats a tool result as MCP content.
Definition ContentType.h:107
String schema restricted to a fixed set of values.
Definition Type.h:265
HTTP service that serves declared MCP tools.
Definition HttpService.h:40
Formats tool results as MCP image content.
Definition ContentType.h:178
Schema that accepts a type or JSON null.
Definition Type.h:305
JSON object schema with named properties.
Definition Type.h:175
Named slot of an object schema or a tool parameter.
Definition Type.h:118
Synchronous MCP service over standard streams.
Definition Service.h:38
MCP service over standard streams with an event loop.
Definition StdioService.h:41
Formats tool results as MCP text content.
Definition ContentType.h:141
MCP server name, version and tool catalog.
Definition ToolDeclaration.h:126
One MCP tool in a server declaration.
Definition ToolDeclaration.h:39
JSON Schema type for an MCP tool parameter.
Definition Type.h:34
Model Context Protocol (MCP) services.
Core module.
Definition Allocator.h:33