Ahoy

•

Unify downstream MCP servers behind a single gateway that exposes progressive tool discovery and execution to prevent context window overload in AI agents.

Ahoy acts as an intelligent MCP gateway that aggregates multiple downstream MCP servers and minimizes an agent's context footprint by exposing exactly two universal tools: discover and invoke. Rather than flooding an LLM's initial prompt with hundreds of tool schemas, Ahoy implements progressive discovery where full input schemas are only fetched on demand. It seamlessly routes calls across both stdio and streamable HTTP transports, supports browser-based OAuth authentication with secure token caching, and provides resilient operations with transparent retries if downstream processes disconnect.

Key Features

010 GitHub stars
02Fixed two-tool interface (discover and invoke) that keeps agent context minimal regardless of connected servers
03Progressive discovery engine supporting server listing, tool summaries, and substring search before full schema fetch
04Multi-transport gateway supporting both stdio process spawning and streamable HTTP MCP endpoints
05Built-in OAuth authorization handling with PKCE, dynamic client registration, and local token caching
06Fault-tolerant execution with transparent reconnection and retry logic for crashed downstream stdio processes

Use Cases

01Mitigating prompt bloat and tool confusion when connecting AI agents to large MCP tool suites like GitHub or Sentry
02Centralizing credential management and authentication workflows across disparate local and remote MCP services
03Securing AI agent execution environments by enforcing an explicit separation between discovery and invocation authorization boundaries