Agentic MCP

io.github.hugolsramos01-bit由 GitHub 账号 hugolsramos01-bit 发布v1.8.2更新于 Nov 3, 2026

Local coding tools for ChatGPT Developer Mode and MCP clients with safe editing and shell execution.

发布方自己的服务:agentic.no

已验证STDIO仅桌面文件与存储开发者工具

概览

AI 生成的概览

本地 MCP 服务器,让助手在允许的项目目录内读写文件、执行 shell 命令、管理 Git worktree、做 AST 导航和检查点。

可以做什么
  • 打开项目工作区(普通检出或隔离的 Git worktree),并汇总其结构、包管理器和脚本
  • 按行范围读取、搜索和检查文件,支持批量复合读取、目录树和依赖关系图
  • 创建、覆盖文件并进行精确字符串替换,可先试运行预览并查看变更文件摘要
  • 执行 shell 命令和包脚本,带命令策略引擎和命令风险评估预览
  • 管理 Git worktree、在其中安装依赖,并保存、列出、恢复或删除工作区检查点
  • 解析 Next.js 路由和 Payload CMS 结构、估算 token 预算,并按多种视口截取本地网页截图
适用场景
适合让 ChatGPT Web 开发者模式、Claude Desktop 或 Cursor 等客户端直接操作本地代码仓库:查看代码、做精确修改、运行测试和 shell 命令,并在临时 Git worktree 中试验。也适合需要控制上下文体积和可回滚的自主编码会话。
运行要求
以本地 Node.js 进程运行,通常通过 npx 启动,使用 stdio 或经 HTTPS 隧道暴露的本地端口供网页客户端连接。需要设置 AGENTIC_ALLOWED_ROOTS 列出可访问的项目目录,并完成 OAuth 授权。可选设置包括 AGENTIC_TOOL_MODE、AGENTIC_SECURITY_MODE、AGENTIC_HOST 和 AGENTIC_PORT。不需要 OpenAI API 密钥。
安装前请注意
它会在你的机器上执行 shell 命令,且不是操作系统沙箱:不限制网络访问、子进程、凭据或资源占用。full 安全模式会绕过破坏性命令保护,除非确有需要,应保持默认的 safe 模式。编辑、写入、安装依赖和恢复检查点都会改动磁盘文件。通过隧道暴露端口会让服务器可从外部访问,务必审查模型打算执行的命令。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Agentic MCP,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Agentic MCP — Local Coding Tools for ChatGPT Developer Mode

[MCP Registry]

Project website · GitHub repository · npm package · MCP Registry

Connect compatible ChatGPT Web accounts to local coding tools through MCP Developer Mode.

Agentic MCP connects ChatGPT Web Developer Mode to your local repositories through a secure Model Context Protocol (MCP) server. It supports structured file editing, shell execution, Git worktrees, semantic navigation and checkpoints.

text
ChatGPT Web → Developer Mode → HTTPS Tunnel → Agentic MCP → Local Repository

[!WARNING] Security Notice: This tool runs on your local machine and can execute shell commands. A managed Git worktree provides an isolated Git checkout to prevent polluting your main repository, but it is not an operating system sandbox. It does not restrict network access or subprocesses. Always review what the LLM intends to run.

[!NOTE] Disclaimer: Agentic MCP is an independent open-source project and is not affiliated with, sponsored by, or endorsed by OpenAI. ChatGPT and OpenAI are trademarks of OpenAI. Tested by the maintainer with ChatGPT Plus using Developer Mode and an HTTPS tunnel. Availability of MCP capabilities depends on the user's ChatGPT plan, workspace configuration and current OpenAI rollout.

🌐 Official MCP Registry

Agentic MCP is published in the Official MCP Registry as: io.github.hugolsramos01-bit/mcp-agentic-server

Install and run locally for Claude Desktop, Cursor, or other local MCP clients:

bash
npx -y mcp-agentic-server@latest stdio

⚡ Quickstart: ChatGPT Plus Setup in 3 Minutes

Turn ChatGPT Web into your primary local coding agent using your existing Web plan:

  1. Initialize and start the server:

    bash
    npx -y mcp-agentic-server@latest initnpx -y mcp-agentic-server@latest serve
  2. Expose the local port (7676) via an HTTPS tunnel:

    bash
    ngrok http 7676
  3. Enable Developer Mode in ChatGPT Web:

    • Go to chatgpt.com > Settings > Apps / Developer Mode (or Plugins / Apps).
    • Enable Developer Mode.
  4. Connect the Custom MCP App:

    • Add a new Custom MCP App.
    • Enter your public ngrok HTTPS URL ending with /mcp:
      text
      https://YOUR-SUBDOMAIN.ngrok.app/mcp
  5. Complete OAuth Authentication:

    • Complete the local browser OAuth authorization prompt when presented.
  6. Start Coding:

    • In a new ChatGPT Web chat, enable your custom MCP app and prompt:

      "Open workspace C:/path/to/project using open_workspace and summarize the architecture."


🙋 Frequently Asked Questions (FAQ)

Does this work with ChatGPT Plus?

Tested by the maintainer with ChatGPT Plus via Developer Mode and a public HTTPS tunnel (ngrok, Cloudflare Tunnel, etc.). Availability may vary by account, region, plan, and rollout.

How does this affect my limits and billing?

When connected directly through ChatGPT Developer Mode, model usage is handled by the user's ChatGPT account rather than by an OpenAI Platform API key. Applicable limits depend on the user's plan and OpenAI policies.

Does it require an OpenAI API key?

No OpenAI model API key is required. Authentication for the MCP server and tunnel is separate from model API billing.

Is this an alternative to Codex or Claude Code?

Yes. It gives ChatGPT Web full local coding capabilities: file inspection, structured line-precise editing, shell execution, Git worktrees, AST navigation, and checkpoints.


🔐 Release 1.8.1 Security & Isolation

Version 1.8.1 isolates workspace subprocesses from the Agentic MCP control plane. Shell commands, package scripts, process sessions, dependency installs, and tournament verification no longer inherit AGENTIC_* server credentials/configuration. Use AGENTIC_HOST and AGENTIC_PORT for the MCP server binding; legacy HOST / PORT are still accepted, but when they configure Agentic they are not propagated into workspace commands.

Structured grep is also hardened for local repositories: it excludes .git / Agentic checkpoint internals, secret-like .env and private-key files, and Windows nul paths while correctly honoring the public include glob.

🚀 Release 1.8.0 Highlights

Version 1.8.0 turns read_many into a bounded composite inspection primitive instead of merely a multi-file reader:

  1. One round trip, several related inspections — ordered items can mix exact reads/ranges, scoped lexical matches with context, and scoped globs.
  2. Shared output budgets — approximate serialized-evidence, returned-line, and unique-file limits apply across the whole call; earlier items have explicit priority, glob results return the useful subset that still fits, and the response reports estimated final payload overhead separately.
  3. Context de-duplication — overlapping match windows in the same file are merged before they reach the model.
  4. Progressive narrowing — broad discovery is reserved for genuinely unknown architecture; once a target area is known, agents are directed toward a bounded composite inspection instead of restarting broad context collection.
  5. Cross-platform bounded discovery — Git-aware file listing respects ignored files even for empty scoped results, with a bounded non-Git fallback and explicit scan-truncation metadata. Match items can also filter files with include globs.
  6. Bounded regex opt-in — literal search remains the default; explicit regex mode rejects several high-risk backtracking constructs, limits scanned bytes, and skips abnormally long lines instead of letting one search monopolize the server.
  7. Fail-closed resource bounds — incompatible operation fields are rejected instead of ignored, legacy paths calls remain supported, and composite reads cap path/file/source-byte loading plus diagnostic string sizes so a narrow request cannot accidentally create an oversized filesystem or response payload.

🚀 Release 1.6.0 Highlights

Version 1.6.0 focuses on lower-latency coding loops without weakening the security and verification boundaries introduced in 1.5.0:

  1. Three command security modes — safe remains the default, trusted enables practical inline scripting and shell file writes while retaining destructive-command protections, and full is available for explicitly unrestricted local execution.
  2. Proportional coding workflow — QUICK, STANDARD and CRITICAL changes no longer pay the same PVDL and verification cost; strict PVDL remains an explicit override for environments that require it.
  3. Stop-discovery discipline — known files and symbols are inspected directly instead of triggering broad bootstrap/context exploration merely to reconfirm an already strong target.
  4. Bounded fast context — read_many defaults to 12k tokens, fast task context caps large code-region reads at 160-line anchor windows, and file indexes stay warm across normal model reasoning gaps.
  5. Faster QUICK review — with AGENTIC_WIDGETS=changes, single-file edit/write mutations carry their review UI directly and no longer need a redundant aggregate show_changes round trip.

🔥 Key Innovations

1. Smart Context Anti-Bloat

Stop melting your LLM context windows and preserve your ChatGPT Web message limits.

  • workspace_summary: Instead of a massive unified file dump, returns a compact, high-level map of the workspace (git status, package manager, key scripts, and schemas).
  • Hardened File Reads: The read tool forces offset/limit paginations and strict line-range constraints. The model gets exactly what it needs, down to the line, preventing catastrophic token bloat on large files.

2. True Git Worktree Sandboxing

Running experimental code, tests, or destructive LLM edits in your main directory can break your Hot Module Replacement (HMR), trigger infinite loops in Next.js/Vite, or mess up your node_modules.

  • open_workspace (mode="worktree"): Automatically spins up an isolated, detached git worktree outside your project's main directory (e.g., ~/.agentic/worktrees/).
  • The LLM can break things, install new dependencies via worktree_install_deps (with allowLifecycleScripts safely controlled), or sync uncommitted changes via worktree_sync_changes, all without touching your live development environment.

3. Semantic AST Navigation

The server parses TypeScript and JavaScript dynamically (with an in-memory LRU cache to save CPU) to provide the model with semantic maps of your architecture.

  • next_route_map: Maps out Next.js App Router and Pages Router dynamically, showing roles (api, page, layout) and dynamic segments.
  • payload_schema_map: Analyzes Payload CMS collections to return a clean map of fields, hooks, and relationships.
  • file_dependencies: Maps outward (what a file imports) and inward (who imports the file) dependencies instantly.

4. Safe Editing & Dry-Runs

  • edit_dry_run: Simulates replacements to validate exact string matching and uniqueness, returning the surrounding context of the would-be edit without saving to disk.
  • changed_files_summary: Fast, accurate summaries of modified and newly staged files using git status --porcelain.

5. Checkpoint System

For long autonomous sessions, the agent can save point-in-time snapshots of the workspace (checkpoint_save), list them (checkpoint_list), and roll back (checkpoint_restore) if it goes down a bad architectural path.


💻 Local & Desktop MCP Clients (Claude Desktop, Cursor, Roo Code)

If you prefer using desktop MCP hosts, configure your client configuration file to use the stdio transport:

json
{  "mcpServers": {    "agentic-mcp": {      "command": "npx",      "args": ["-y", "mcp-agentic-server@latest", "stdio"],      "env": {        "AGENTIC_ALLOWED_ROOTS": "C:/path/to/projects"      }    }  }}

🛠 Available Tools Reference

The tool surface depends on the AGENTIC_TOOL_MODE setting.

ModeTools includedUse case
assistant (default)Canonical coding workflow: workspace, context, read/search, Git, checkpoints, edit/dry-run, package scripts, worktrees, diagnostics, and semantic maps.Full coding-agent workflow with curated model instructions.
fullBase tools + grep, glob, lsManual inspection via shell
minimalopen_workspace, read, write, edit, bashRestricted surface

Note: The assistant mode is recommended for the full agentic coding experience. Set AGENTIC_TOOL_MODE=assistant in your .env or environment.

Command security modes

Tool mode and command security are separate. AGENTIC_SECURITY_MODE controls what shell commands may pass the policy engine:

Security modeBehavior
safe (default)Strict command policy. Blocks inline scripting/file-writing shell constructs and destructive commands.
trustedAllows python -c, node -e, redirects, heredocs and in-place shell writes, while destructive operations remain protected.
fullBypasses command-policy restrictions, including destructive-command rules.

Persist the setting with agentic config set securityMode safe|trusted|full, then restart the server. OAuth remains required. The shell is not an OS sandbox and may access anything available to the local user account, so trusted and especially full should only be enabled intentionally.

Core tools (always available)

ToolDescription
open_workspaceOpens a project. Supports mode="checkout" or mode="worktree".
readHardened file reader with startLine, endLine, offset, limit.
writeCreate or overwrite files.
editTargeted string replacements.
bashFallback for shell interactions that have no typed tool; prefer run_package_script for package scripts and the Git tools for Git.
visual_reviewCapture a local web app at responsive desktop/laptop/tablet/mobile viewports and return PNG screenshots directly to the model. Supports custom viewports; local URLs only.

Assistant tools (mode: assistant)

ToolDescription
workspace_summaryCompact architectural summary of the workspace.
project_bootstrapScans package managers, monorepo bounds, and base dependencies.
read_manyComposite bounded inspection: exact reads/ranges, scoped match+context (with optional file include glob), and scoped globs in one ordered call with shared serialized-evidence/line/file budgets and payload-cost reporting.
treeDirectory tree visualization.
next_route_map / payload_schema_mapNext.js / Payload CMS schema extraction.
file_dependenciesInward and outward dependency map.
checkpoint_*Save, restore, list, or delete snapshots.
edit_dry_runPreview edits without writing.
worktree_*Manage isolated git worktrees (create, list, sync, teardown).
worktree_install_depsInstall dependencies in a managed worktree; use verify: true to load native bindings.
agentic_doctorDiagnose Node, package managers, Git and native SQLite availability.
semantic_packCompact goal-relevant summary with token budget.
context_budgetEstimate token count for files.
expand_compressed_blockExpand omitted blocks from read_compressed.
token_auditAnalyze token usage across files read.
tournament_*Autonomous evaluation and judgment of changes.
risk_assess_commandPreview policy assessment before bash.
changed_files_summaryFast Git status and diff abstraction.
task_contextComputes a RiskProfile (risk level, score, blast radius) from focused paths.
suggest_checksAdvisory planner returning a deterministic VerificationPlan.

Verification & Risk (Expanded in 1.5.0)

The risk and verification pipeline enforces strict, deterministic planning.

  • task_context now produces a RiskProfile accounting for sensitive configuration, fan-out, test proximity, and analysis confidence.
  • suggest_checks returns a VerificationPlan and is advisory only (commands are not executed). Mutating checks and non-existent scripts are excluded. Low confidence can elevate policyLevel without altering the intrinsic riskLevel. When local Git metadata is unavailable, the planner uses goal_discovery from the stated goal and focused paths instead of inheriting an ancestor repository.

Supported Inputs:

typescript
{  workspaceId: string;  changedPaths?: string[]; // Actual paths changed  goal?: string;           // Optional goal for discovery  taskType?: "auto" | "bug_fix" | "feature" | "refactor" | "security_review" | "migration" | "frontend" | "release";  focusPaths?: string[];   // Specific files to focus on
  // Legacy compatibility transition (deprecated)  paths?: string[];  scope?: "changed" | "workspace";  level?: "minimal" | "recommended" | "full";}

Deprecated compatibility aliases are hidden by default and never appear in the model's standard workflow. Existing clients can temporarily opt in with AGENTIC_LEGACY_ALIASES=1; they will be removed in the next major release. New clients must use the canonical names above: edit_dry_run, next_route_map, payload_schema_map, changed_files_summary, and project_bootstrap.

🧠 Mental Model for Agents

This server is designed to act as the "hands and eyes" of a remote AGI. If you are building an autonomous agent or using Claude/ChatGPT for coding, instruct your agent to:

  1. Narrow progressively. If the relevant files are unknown, use task_context; if a strong target is already known, skip broad discovery.
  2. Use read_many to batch related exact reads, match+context inspections, and scoped globs in one round trip. Put the most important items first because item order is budget priority.
  3. Use semantic_pack only when broad domain structure or inter-file relationships are genuinely unknown; stop broad discovery once implementation targets are strong enough.
  4. Use read_compressed for large whole-file orientation — expand omitted blocks before editing them.
  5. Use mode="worktree" if the task involves running complex shell commands or destructive tests, and use edit_dry_run before ambiguous or risky replacements.

Isolation boundaries

A managed worktree is an isolated Git checkout, not an operating-system sandbox. It keeps experiments out of the primary checkout, but it does not restrict network access, subprocesses, credentials, CPU/memory use, or paths that are otherwise allowed to the server. Treat scripts as real local commands and use the typed Git/script tools first. Git tools only operate when the opened workspace itself is the repository root; an ancestor repository is rejected rather than exposing sibling projects.

📝 License & Acknowledgements

Licensed under the MIT License. See LICENSE for more details.

This project uses components heavily inspired by internal security architectures, with thanks to standard best practices in the open source community.

We welcome contributions! Please see CONTRIBUTING.md for details on how to get started.

来源:README.md,提交 398ad98

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

2
  1. v1.8.2最新Sep 25, 2026
  2. v1.3.0Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Agentic 集成