Repository navigation
v0.2.0 — any MCP server behind a token, in one command
Any MCP server behind a signed token, in one command — and what the agent reads through one server stops what it can do through another.
curl -fsSL https://github.com/cleitonaugusto/cleimesh/releases/latest/download/install.sh | sh
cleimesh mcp add fetch --taints fetch -- uvx mcp-server-fetch
cleimesh mcp add fs --clean-only write_file -- npx -y @modelcontextprotocol/server-filesystem ~/workNew
cleimesh mcp add: creates the keys if missing, asks the server for its tools, issues a token for exactly those, and registers it with Claude Code (--printfor Cursor and other clients). Every server added runs behind onecleimesh-mcpentry (mcp wrap --servers): one receipt log and one view of taint across all of them. Tested with the official fetch and filesystem servers in examples/mcp-add.- Egress decided on the connection, not the argument: the
fetch_urlbuilt-in goes through the host'shttp_fetch, which follows redirects itself, re-checks every hop against the grant (--host name[:port]), pins the resolved address and refuses private, loopback and link-local answers unless--allow-private.cleimesh demo redirectshows an exfiltration through a redirect refused, with receipts.
Fixed
- Allowance roots are checked against the owner key's issuer (step 3k of the AAT draft);
--issis gone. - A server behind
mcp wrap --serversis called under its own token only. - The allowance spend ledger is kept across restarts by default and locked by one gateway (it reset whenever the MCP client restarted the server).
- IPv6 forms that embed or reach a private address (6to4, local-use NAT64, Teredo, site-local) are refused like other private answers.
- Calls to a native MCP server get 60 s (WASM tools keep 5 s).
- WASI preview2 tool calls are refused instead of reporting a fake success.
Breaking
cleimesh allowance grantno longer takes--iss: the issuer is the owner key's RFC 9278 thumbprint. Allowances issued by 0.1.x are refused; issue them again.
Verify a download
Each binary has a .sha256 and signed build provenance:
gh attestation verify cleimesh-x86_64-unknown-linux-musl --repo cleitonaugusto/cleimesh