greentic-mcp-client
Client for remote MCP servers over Streamable HTTP (JSON-RPC 2.0,
protocol 2025-06-18).
Not to be confused with
greentic-mcp(greentic-mcp-exec), which loads and executeswasix:mcpWASM components locally. This crate is the network-client side.
Layout
proto— sans-io protocol core: request builders, SSE-aware response parsing, tool mapping. Compiles forwasm32-wasip2(default-features = false).client—McpHttpClient(featurenative, default): reqwest transport,Mcp-Session-Idthreading, configurable auth header.
Usage (native)
use ;
use Url;
let mut client = new?;
let info = client.initialize.await?;
let tools = client.list_tools.await?;
let out = client.call_tool.await?;
Usage (wasm extension)
= { = "0.1", = false }
Use the proto builders/parsers with your host's HTTP imports.
Consumers
greentic-designer-admin— tenant MCP-server test-connection endpointgreentic-designer— flow-prompt MCP tool source (planned)greentic-aw-runtime— agentic-worker MCP tool dispatch (planned)component-github-mcp-ext— proto layer inside the WASM extension (planned refactor)