NeoGraph 0.16.0
A C++20 Graph Agent Engine Library — LangGraph for C++
Loading...
Searching...
No Matches
hook_rpc.h
Go to the documentation of this file.
1
2#pragma once
3
4#include <neograph/hook_rpc.h>
6
7namespace neograph::mcp {
8
10class NEOGRAPH_API StdioJsonRpcTransport final : public RpcTransport {
11public:
12 explicit StdioJsonRpcTransport(std::shared_ptr<MCPClient> client);
13 asio::awaitable<std::string> request_async(RpcRequest request) override;
14private:
15 std::shared_ptr<MCPClient> client_;
16};
17
23class NEOGRAPH_API HttpJsonRpcTransport final : public RpcTransport {
24public:
25 explicit HttpJsonRpcTransport(std::shared_ptr<MCPClient> client);
26 asio::awaitable<std::string> request_async(RpcRequest request) override;
27private:
28 std::shared_ptr<MCPClient> client_;
29};
30
31} // namespace neograph::mcp
Injectable wire boundary for hook RPC.
Definition hook_rpc.h:29
Reuses MCPClient's HTTP session.
Definition hook_rpc.h:23
Reuses MCPClient's shell-free stdio subprocess session.
Definition hook_rpc.h:10
Optional transport-neutral JSON-RPC hook execution.
MCP (Model Context Protocol) client for connecting to remote tool servers.
A raw JSON-RPC exchange.
Definition hook_rpc.h:19