BSD Ports

misc/cpp-mcp g20260331 MidnightBSD

Lightweight C++ MCP (Model Context Protocol) SDK

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
mit
Categories
misc, devel

Description

Model Context Protocol (MCP) is an open protocol that provides a standardized way for AI models and agents to interact with various resources, tools, and services. This framework implements the core functionality of the MCP protocol, conforming to the 2024-11-05 basic protocol specification.

Core Features: * JSON-RPC 2.0 Communication: Request/response communication based on JSON-RPC 2.0 standard * Resource Abstraction: Standard interfaces for resources such as files, APIs, etc. * Tool Registration: Register and call tools with structured parameters * Extensible Architecture: Easy to extend with new resource types and tools * Multi-Transport Support: Supports HTTP and standard input/output (stdio) communication methods

In the other systems

SystemPortVersion
MidnightBSDmisc/cpp-mcpg20260331
FreeBSDmisc/cpp-mcpg20260331

Install

Binary package:

mport install cpp-mcp

From mports:

cd /usr/mports/misc/cpp-mcp && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	cpp-mcp>0:misc/cpp-mcp
LIB_DEPENDS=	libmcp.so:misc/cpp-mcp

Dependencies

No port depends on this one.

Configuration

No options to configure.

USES
cmake compiler:c++17-lang
Service scripts
none

Files

pkg-plist 10
  • include/mcp/mcp_client.h
  • include/mcp/mcp_logger.h
  • include/mcp/mcp_message.h
  • include/mcp/mcp_resource.h
  • include/mcp/mcp_server.h
  • include/mcp/mcp_sse_client.h
  • include/mcp/mcp_stdio_client.h
  • include/mcp/mcp_thread_pool.h
  • include/mcp/mcp_tool.h
  • lib/libmcp.so
distinfo 1
FileSizeSHA256
hkr04-cpp-mcp-g20260331-b1a4467_GH0.tar.gz512607532b9f111d29b87f637b3d45f836dc2373b059a190c86a3ab0c7bacb30aae6f2