pctx
View on GitHubpctx 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.
pctx connects agents to custom tools and MCP servers through a unified interface, executing generated code in a restricted Deno sandbox. It supports MCP aggregation, persistent sessions, and a Python client SDK.
Use Cases
Run agent tool calls as code in a sandboxAggregate multiple MCP servers behind one endpointConnect Python agents to custom tools and MCP serversReduce context usage for multi-step tool workflowsExpose unified MCP tools over HTTP or stdio
Built With
- Language
- Rust
- Frameworks
- Deno · OpenAI Agents SDK · LiteLLM
Tags
MCP · AI agents · code execution · sandboxing · tool calling · MCP aggregation · authentication · token efficiency