mcp-exec
Greentic's executor for Wasm tools that implement the wasix:mcp interface.
The crate handles lookup, verification, and execution of MCP-compatible
components while exposing host capabilities such as secrets, telemetry, and
HTTP fetch.
Features
- Local and remote (HTTP) tool stores with SHA-256 integrity checks.
- Signature policy stubs ready for digest/signature enforcement.
- Wasmtime component runtime with the
runner-host-v1imports fromgreentic-interfaceswired in. - Describe helpers that prefer the
greentic:component/component@1.0.0world and fall back to legacy actions.
Usage
use ;
use ;
use json;
let tenant = TenantCtx ;
let cfg = ExecConfig ;
let output = exec?;
Development
Set RUN_ONLINE_TESTS=1 to exercise the live weather integration test that
retrieves the published Wasm component over HTTPS.
MCP node schemas live with the component crate itself. When a tool exports
describe-json, mcp-exec forwards that blob upstream so flows can validate
against the component-owned schema/defaults instead of mirroring JSON locally.