|
cxxmcp 1.2.8
C++ MCP SDK
|
High-level server authoring helpers and typed App builder adapters. More...
#include <cstdint>#include <memory>#include <stdexcept>#include <string>#include <string_view>#include <type_traits>#include <utility>#include "cxxmcp/config.hpp"#include "cxxmcp/server/detail/handler_dispatch.hpp"#include "cxxmcp/server/server.hpp"Go to the source code of this file.
Functions | |
| template<class Tool , class Text > | |
| std::string | mcp::server::detail::static_tool_text (Text value) |
| template<class Args , class Result > | |
| TypedToolBuilder< Args, Result > | mcp::server::tool (std::string name) |
| Starts a typed tool registration builder. | |
| template<class Tool > | |
| auto | mcp::server::tool (Tool value) |
| Builds a typed tool registration from a tool object type. | |
| template<class Tool > | |
| auto | mcp::server::tool () |
| Builds a typed tool registration from a default-constructible tool object type. | |
| template<class Args > | |
| TypedPromptBuilder< Args > | mcp::server::prompt (std::string name) |
| template<class Args > | |
| TypedPromptBuilder< Args > | mcp::server::prompt (protocol::Prompt prompt) |
| template<class Args > | |
| TypedResourceBuilder< Args > | mcp::server::resource (std::string uri, std::string name) |
| template<class Args > | |
| TypedResourceBuilder< Args > | mcp::server::resource (protocol::Resource resource) |
| protocol::ResourceTemplateBuilder | mcp::server::resource_template (std::string uri_template, std::string name) |
High-level server authoring helpers and typed App builder adapters.
|
inline |
Builds a typed tool registration from a tool object type.
Tool must expose using Args, using Result, static name, and a callable operator() compatible with the typed tool handler rules. Optional static title and description members are copied into the advertised tool definition.