{"repo":"portofcontext/pctx","free":true,"listed":false,"github":"https://github.com/portofcontext/pctx","clone":"git clone https://github.com/portofcontext/pctx.git","description":"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.","language":"Rust","stars":273,"topics":["ai-agents","api","local-development","mcp","mcp-server","open-source","infrastructure"],"license":"MIT","category":"mcp-servers","readme_excerpt":"pctx The open source framework to connect AI agents to tools and mcp with Code Mode — &nbsp; T R U S T E D &nbsp; B Y &nbsp; — &nbsp;&nbsp;&nbsp;&nbsp; Install Core Functionality pctx can be run as a stateless HTTP server for Code Mode sessions or as a unified MCP server that exposes Code Mode functionality for registered upstream MCP servers. Python SDK Use the Python SDK if building agents in Python and want to run Code Mode with custom tools and/or MCP servers. The Python SDK is an HTTP client to the pctx server. Links - Python SDK Quickstart and Docs - Python API Reference Node SDK Coming soon Unified MCP Use the unified MCP to run Code Mode with MCP servers and want to persist the authentication connections and you do not need to use agent tools (non-mcp tools). For complete CLI documentation, see CLI.md. For configuration options, see Configuration Guide. What is pctx? pctx sits between AI agents and MCP servers. It aggregates multiple upstream MCP servers, handles authentication, and exposes tools through a unified Code Mode interface. Instead of agents managing connections to individual MCP servers, they connect once to pctx. What is Code Mode? Code mode replaces sequential tool calling with code execution. Rather than an agent calling tools one at a time and passing results through its context window, it writes code that executes in a sandbox. Read Anthropic's overview here. Traditional MCP flow : 1. Agent calls getSheet(id) 2. Server returns 1000 rows → agent's cont","default_branch":null,"files":null,"tree":[],"storefront":"/r/portofcontext","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/portofcontext/pctx/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}