NeoGraph 0.16.0
A C++20 Graph Agent Engine Library — LangGraph for C++
Loading...
Searching...
No Matches
neograph::mcp::HarnessService Class Reference

Strict MCP adapter over ProgramCompiler -> ProgramCatalog -> ProgramRuntime. More...

#include <harness.h>

Public Member Functions

bool cancel (const std::string &run_id)
 Request cooperative cancellation. Returns false for unknown/terminal runs.
 
json compile (const json &request)
 Compile and retain an immutable artifact when the request is valid.
 
json get (const std::string &run_id, const std::string &view, std::size_t after_sequence, std::size_t limit) const
 Return a paginated debugger view without changing the compact default.
 
json get (const std::string &run_id, const std::string &view="status") const
 Return a compact snapshot for a run.
 
json read (const std::string &uri) const
 Dereference a neograph://runs/<run_id>/<view> result URI.
 
void register_tools (MCPServer &server)
 Register neograph_schema/compile/start/get/resume/cancel on a server.
 
json resume (const json &arguments)
 Resume the exact pending call with a schema-validated host result.
 
json schema () const
 Build-specific schemas, node palette, presets, and capabilities.
 
json start (const json &arguments)
 Start from {artifact_id} or compile-and-start from {request}.
 

Detailed Description

Strict MCP adapter over ProgramCompiler -> ProgramCatalog -> ProgramRuntime.

Registered callbacks retain shared adapter state. The service object itself may be destroyed before MCPServer; runtime resources drain only after the server releases its callbacks.

Definition at line 242 of file harness.h.


The documentation for this class was generated from the following file: