@gatorsecurity/mcp-gateway
v0.3.0
Published
MCP Gateway - stdio proxy for Claude Code with policy enforcement and telemetry
Maintainers
Readme
@gatorsecurity/mcp-gateway
MCP Gateway - stdio MCP proxy with telemetry and policy enforcement.
Overview
G8R MCP Gateway sits between your client (Claude Code, VSCode Copilot, etc.) and your MCP servers, providing:
- Policy enforcement: Block tools, filter arguments, restrict domains
- Telemetry: Log all tool calls to G8R platform for audit
- Observability: See what AI agents are doing in real-time
Installation
npm install -g @gatorsecurity/mcp-gatewayOr use via npx:
npx @gatorsecurity/mcp-gateway --config ./mcp-config.jsonUsage with VSCode / Claude Code
In VSCode:
MCP: Add Server...: choose stdio, then enter the command:npx @g8r/mcp-gateway ...For Claude Code, add the server configuration in
.claude/mcp_servers.json:{ "mcpServers": { "g8r": { "type": "stdio", "command": "npx", "args": ["@gatorsecurity/mcp-gateway", "--upstream", "npx", "--upstream-args", "@modelcontextprotocol/server-filesystem,/path/to/allowed"] } }
Configuration
The gateway requires authentication. First login with the G8R CLI:
npx @gatorsecurity/cli loginThen configure your upstream MCP servers in ~/.g8r/mcp.json:
{
"servers": {
"filesystem": {
"command": "npx",
"args": ["@modelcontextprotocol/server-filesystem", "/allowed/path"]
}
}
}Environment Variables
G8R_API_URL- Platform API URL (default: https://api.g8r.dev)G8R_DEBUG- Enable debug logging
Related Packages
- @gatorsecurity/cli - G8R CLI for authentication and server management
License
MIT
