About
PCTX is an open-source framework and Model Context Protocol (MCP) gateway designed to revolutionize how AI agents interact with tools and services. By aggregating multiple upstream MCP servers and handling complex authentication, PCTX presents a unified 'Code Mode' interface to agents. This innovative approach allows agents to generate and execute TypeScript code within secure Deno sandboxes, rather than making sequential, token-heavy tool calls. This significantly reduces token usage, enables complex native control flow (loops, conditionals, error handling), and ensures on-demand loading of tools, making agent-tool interactions more efficient, powerful, and secure.