NeoGraph 0.10.0
A C++17 Graph Agent Engine Library — LangGraph for C++
Loading...
Searching...
No Matches
client.h File Reference

MCP (Model Context Protocol) client for connecting to remote tool servers. More...

#include <neograph/api.h>
#include <neograph/tool.h>
#include <asio/awaitable.hpp>
#include <memory>
#include <mutex>
#include <string>
#include <vector>
Include dependency graph for client.h:

Go to the source code of this file.

Classes

class  neograph::mcp::MCPClient
 Client for connecting to MCP (Model Context Protocol) servers. More...
 
class  neograph::mcp::MCPTool
 Wraps a remote MCP server tool as a local Tool. More...
 

Detailed Description

MCP (Model Context Protocol) client for connecting to remote tool servers.

Provides MCPClient for discovering and calling tools on MCP servers, and MCPTool for wrapping remote tools as local Tool objects.

Two transports are supported:

  • HTTP (Streamable HTTP) — remote server, reachable over the network.
  • stdio — subprocess launched by the client; newline-delimited JSON-RPC messages exchanged over the child's stdin/stdout. The subprocess lives as long as any MCPTool produced by the client.

Definition in file client.h.