Sandboxed workspace MCP: file ops, argv-only run_command, list_files; BYO LLM prompts.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Workspace-scoped MCP tools for building Cursor-style agents: read_file, write_file, edit_file, run_command, list_files. Includes strict, versioned system prompts (SYSTEM_PROMPT_V1) and OpenAI-style tool definitions so your app can wire any LLM with one import.
The LLM and API keys stay in your app. This package provides tool execution, sandboxing, and promptsβnot a hosted model.
OpenAI + in-process tools: the Tier B section below is self-containedβcopy the Python into a script, module, or REPL; no separate artifact is required.
Editable / dev:
Migrating from mcp-agent-tools: uninstall the old package, install agent-godmode, change Python imports from mcp_agent_tools to agent_godmode, the CLI from mcp-agent-tools to agent-godmode, and environment variables from MCP_AGENT_TOOLS_* to AGENT_GODMODE_* (for example AGENT_GODMODE_ROOT).
All tools are scoped to a single workspace root. Paths are relative to that root (or absolute only if they resolve under it). The same operations are available over MCP (the agent-godmode server) and in-process via AgentWorkspace / WorkspaceTools.
| Tool | Purpose |
|---|---|
read_file | Read a UTF-8 text file; optional line range and byte cap. |
write_file | Create or overwrite/append UTF-8 text; creates parent directories. |
edit_file | Search-and-replace in an existing UTF-8 file: non-empty old_string, optional replace_all. With replace_all=false, old_string must match exactly once (use surrounding context from read_file for uniqueness). Invalid UTF-8 returns an error instead of corrupting binary data. |
list_files | List directory entries with optional recursion, glob, depth cap, dotfile control. |
run_command | Run a subprocess from an argv list only (no shell); optional cwd under the root. |
For LLM integrations, tool shapes and descriptions are centralized in OPENAI_TOOL_DEFINITIONS and TOOL_DESCRIPTIONS; agent behavior is guided by SYSTEM_PROMPT_V1.
1. Pick a workspace directory (only paths under this root are allowed).
2. Add a server entry (stdio). Example for a global MCP config (paths use forward slashes on Windows):
Or with an explicit CLI root (overrides env for that process):
3. Paste SYSTEM_PROMPT_V1 (from agent_godmode.prompts or below) into your hostβs system prompt if the client does not load server instructions automatically.
| Variable | Meaning |
|---|---|
AGENT_GODMODE_ROOT | Required unless --root is passed. Absolute workspace root. |
AGENT_GODMODE_MAX_READ_BYTES | Max bytes per read (default 512000). |
AGENT_GODMODE_COMMAND_TIMEOUT | Subprocess timeout in seconds (default 120). |
AGENT_GODMODE_MAX_COMMAND_OUTPUT_BYTES | Truncate stdout/stderr combined (default 256000). |
AGENT_GODMODE_LIST_MAX_ENTRIES | Cap for list_files (default 2000). |
AGENT_GODMODE_ALLOWED_COMMANDS | Comma-separated basenames allowed as argv[0] (e.g. python,uv,node). If unset, all commands allowed under the sandbox. |
Design notes
D:\Avi-assign as a placeholder; point WORK_DIR at any directory you control.OPENAI_API_KEY is required only for Chat Completions. Imports set client = OpenAI() if HAS_OPENAI_KEY else None; workspace setup and direct edit_file run without a key.write_file, persist only text returned by the model. For edit_file, the model must copy old_string exactly from read_file (see SYSTEM_PROMPT_V1).In a shell or any interactive Python session:
If your environment supports line magics (for example %pip in IPython), you can run the same installs there; do not place shell comments on the same line as %pip.
Requires OPENAI_API_KEY. Skip if you are only exercising tools without the API.
edit_file (no Chat Completions)No API key required. The next lines create ws if you have not run the workspace section yet (same root).
write_fileRequires OPENAI_API_KEY.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/agent-godmode)<a href="https://allmcps.com/mcp/agent-godmode"><img src="https://allmcps.com/api/badge/agent-godmode?style=directory" alt="Agent Godmode on AllMCPs" /></a>