portofcontext/pctx
pctx is the execution layer for agentic tool calls. It auto-converts agent tools and MCP servers into code that runs in secure sandboxes for token-efficient workflows.
Replaces sequential tool calling with sandbox code execution, reducing token usage by ~98% through persistent MCP server aggregation and direct function access. Runs as either a stateless HTTP server or unified MCP server that handles authentication and upstream connection management, with generated code isolated in Deno sandboxes. Offers Python and CLI-based integration for agents using any framework (OpenAI Agents SDK, etc.) to access both custom tools and MCP servers through a unified Code Mode interface.
212 stars.
Stars
212
Forks
23
Language
Rust
License
MIT
Category
Last pushed
Feb 25, 2026
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/mcp/portofcontext/pctx"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
AndrewAltimit/template-repo
Agent orchestration & security template featuring MCP tool building, agent2agent workflows,...
Chimera-Protocol/csl-core
Deterministic safety layer for AI agents. Z3-verified policy enforcement.
agentralabs/agentic-contract
Policy engine for AI agents — enforceable rules, risk limits, approval gates, obligation...
behrensd/mcpwall
Deterministic security proxy for MCP tool calls — iptables for MCP
postralai/masquerade
The Privacy Firewall for LLMs