mcporter CLI lets AI agents call MCP tools without bloating the context window
Developer Nico Bailey has released mcporter, a command-line tool that allows AI agents to call Model Context Protocol (MCP) server tools directly via bash commands. The problem it addresses is that connecting MCP servers to an AI agent loads their full tool schemas into the context window — Playwright MCP alone consumes around 15,000 tokens before any task begins. mcporter routes tool calls to MCP servers and returns results as standard output, keeping those schema definitions entirely out of the context window. The tool also supports listing available tools and generating TypeScript type definitions from any MCP server. It is available via npm and is intended as a drop-in alternative to wiring MCP servers directly into an agent's client configuration.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in