agents-mcp-gateway
Provides project-scoped Git operations including status, diff, log, and file browsing for configured repositories.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@agents-mcp-gatewayrun codex-readonly on agents-mcp-gateway to review the latest git diff"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
agents-mcp-gateway
Secure localhost MCP gateway for Windows-native local agent work.
Only one MCP server is exposed externally: agents-mcp-gateway at http://127.0.0.1:3333/mcp. Codex and Claude are no longer used as child MCP servers. Agent work runs through ordinary non-interactive CLI subprocesses with fixed argv from local config.
Architecture
ChatGPT
-> OpenAI Secure MCP Tunnel
-> http://127.0.0.1:3333/mcp
-> native bounded file/Git/search/check tools
-> codex CLI subprocess adapter
-> claude CLI subprocess adapterRelated MCP server: codex-web-bridge
Configuration
config/projects.yaml has two registries:
projects:
agents-mcp-gateway:
description: Gateway source tree
path: D:\Projects\agents-mcp-gateway
agents:
codex-readonly:
description: Codex CLI non-interactive read-only agent
adapter: codex
args: ["exec", "--json", "-s", "read-only", "-c", "approval_policy='never'"]
claude-readonly:
description: Claude Code non-interactive JSON agent
adapter: claude
args: ["-p", "--output-format", "json", "--permission-mode", "dontAsk"]Remote MCP callers cannot pass command, args, env, model, cwd, or arbitrary filesystem paths for an agent. They can only choose a configured agent, provide a configured project_id, and send a prompt.
Public Agent Tools
list_projects()list_agents()create_task(project_id, agent, prompt) -> task_id, thread_idresume_thread(thread_id, prompt) -> task_idget_task(task_id)await_task(task_id, timeout_ms?)— wait up to 60 seconds for a terminal task state, defaulting to 30 seconds; if the timeout elapses, returns the latest task withwait_timed_out: truecancel_task(task_id)list_tasks(status?, limit?)get_thread(thread_id)list_threads(status?, limit?)close_thread(thread_id)
A task is one CLI subprocess execution. A thread stores the gateway thread ID, provider session ID, adapter, agent, and canonical cwd so later tasks can resume the provider conversation without accepting project_id or agent again.
Native Tools
Native file/Git/search tools remain project-scoped:
list_files(project_id, relative_path, depth)read_file(project_id, relative_path, start_line, end_line)search_code(project_id, query, glob, max_results)git_status(project_id)git_diff(project_id, base, max_chars)git_log(project_id, limit)run_check(project_id, check_id)
run_check does not accept arbitrary commands. It only runs detected package scripts named test, lint, typecheck/check, or build.
CLI Probe Findings
Codex 0.146.0-alpha.3.1:
new session:
codex exec --json -C <cwd> ... <prompt>JSONL event
thread.started.thread_idis the provider session IDresume:
codex exec resume --json <thread_id> <prompt>resume command must run with process cwd set to the original cwd;
resumehas no-Cfixture probe confirmed new session, remembered context, and cwd continuity
Claude Code 2.1.220:
new session:
claude -p --output-format json ...with prompt on stdinJSON result has
session_idresume help exposes
--resume <session_id>current provider probe returned a quota
429, so command shape andsession_idparsing are implemented, while semantic resume could not be completed in this run
Run
cd D:\Projects\agents-mcp-gateway
pnpm install
pnpm build
pnpm startDoctor:
pnpm doctorTests:
pnpm testAutomatic Start
powershell -ExecutionPolicy Bypass -File scripts\install-task-scheduler.ps1Remove:
powershell -ExecutionPolicy Bypass -File scripts\uninstall-task-scheduler.ps1Security Notes
Server binds only to
127.0.0.1.No router port forwarding,
0.0.0.0, or public tunnel URL is used.External access should go through OpenAI Secure MCP Tunnel only.
Agent argv is fixed in local config.
Environment is allowlisted.
Sensitive files, credential folders,
.git,node_modules, browser session stores, symlink/junction escapes, UNC paths, URL paths, and project traversal are blocked.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityFmaintenanceA secure Model Context Protocol server that allows AI models to safely interact with Windows command-line functionality, enabling controlled execution of system commands, project creation, and system information retrieval.Last updated810MIT
- Alicense-qualityCmaintenanceLocal MCP server bridging ChatGPT Web to local tools for file, shell, git, test, and process management with secure policy controls.Last updatedMIT
- Flicense-qualityCmaintenanceSecure local development platform that exposes controlled developer capabilities (FS, Git, search, command execution) to AI assistants via MCP with deny-by-default security and audit logging.Last updated
- Alicense-qualityAmaintenanceLocal-first MCP server that provides project context, verification gates, and structured tools for coding agents to discover knowledge, run diagnostics, and execute allowlisted commands within a repository.Last updated28MIT
Related MCP Connectors
Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.
Give AI agents secure access to ZERNO project briefs, tasks, and context over remote MCP.
User-owned memory for AI agents, Copilot, Claude, IDEs, CLIs, and chat apps over remote MCP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/kangjoseph90/agents-mcp-gateway'
If you have feedback or need assistance with the MCP directory API, please join our Discord server