原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Codecanvas

作者:donggyun112版本 0.1.20i★ –i在你的电脑上运行
注册名称io.github.donggyun112/codecanvas

安装

概览

作者提供的说明(英文原文)

Python code intelligence for coding agents: call paths, control flow, and change impact.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 其他

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 注册中心没有列出需要填写的密钥。

你需要

  • PyPI已安装 Python 的 uv(用于 uvx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "codecanvas": {
      "command": "uvx",
      "args": [
        "codecanvas-mcp"
      ]
    }
  }
}

在终端中运行这条命令

claude mcp add codecanvas -- uvx codecanvas-mcp

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "codecanvas": {
      "command": "uvx",
      "args": [
        "codecanvas-mcp"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "codecanvas": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "codecanvas-mcp"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 donggyun112 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“其他”中的其他服务器比较i

  • 星标数多于此分类中其他 32680 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 32680 个服务器的 42% 更新
  • 基础检查结果等于或优于此分类中其他 32680 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Codecanvas 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.1.20)于2个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, EmbeddedCI BenchPod

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Spec Driven Development

作者:formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

在你的电脑上运行★ 440MIT14个月前更新
安装

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

在云端运行★ 211前天更新
安装

EmbeddedCI BenchPod

作者:embeddedci-com

Drive a BenchPod hardware-in-the-loop bench: power, flash, UART, I2C, CAN, analog and logic.

在你的电脑上运行今天更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

CodeCanvas MCP

Understand an unfamiliar Python system before spending thousands of tokens reading it file by file.

CodeCanvas is a local static-analysis Model Context Protocol server for Python. It turns project-wide call paths and control flow into compact, citation-ready answers about branches, callers, callees, side effects, and change impact.

The benchmark now spans pinned revisions of Google ADK, LangGraph, and FastAPI. On an Apple M4 Pro, measured cold analysis ranged from 4.38s to 61.62s, and median warm find_symbols latency ranged from 48.264ms to 293.778ms across those repositories. In a controlled 54-session agent suite, both conditions kept the same built-in code-search tools; the treatment added only logic_flow. That single addition used a median 22.95% fewer total tokens across three paired repetitions, demonstrating meaningful incremental value on top of ordinary code exploration. Uncached tokens increased by 0.78%, and the answers are not yet blind-graded. See the methodology, full tables, and limitations.

Use it to answer questions such as:

  • Who calls this function, directly or transitively?
  • What can this function reach, and where do side effects happen?
  • Under which guards can this return or exception occur?
  • Does this source really reach that target in the requested mode?
  • Which API routes, scripts, or public exports are affected by a diff?

CodeCanvas is Python-only and requires Python 3.10 or newer.

See the difference

Ask one question:

Use logic_flow on UserService.update_user. Show its branches, outcomes,

downstream effects, and evidence quality.

Excerpt from the actual response on the included FastAPI sample:

{

"function": "app.services.user_service.UserService.update_user", "source": "app/services/user_service.py:13", "flow": [ "15 user = await self.user_repo.find_by_id(...)", "16 if user is None:", "17 → return None", "18 → return await self.user_repo.update(user_id, user)" ], "outcomes": [ {"at": 17, "detail": "None", "guards": ["user is None"]}, {"at": 18, "detail": "await self.user_repo.update(user_id, user)", "guards": []} ], "downstream": [ { "function": "app.repositories.user_repo.UserRepository.find_by_id", "location": "app/repositories/user_repo.py:13", "effects": ["db"] }, { "function": "app.repositories.user_repo.UserRepository.update", "location": "app/repositories/user_repo.py:18", "effects": ["db"] } ], "evidence_grade": "inferred", "safe_to_summarize": false, "response_guidance": "Do not turn inferred call edges into unconditional claims." }

That single response exposes the early return, success path, downstream database work, exact source locations, and how cautiously the agent may summarize the result.

Quick start

Install uv if uvx is not already available. The repository includes one shared plugin package with native manifests for both Claude Code and Codex. Install it from the CodeCanvas marketplace:

# Claude Code

claude plugin marketplace add donggyun112/codecanvas claude plugin install codecanvas@codecanvas

Codex

codex plugin marketplace add donggyun112/codecanvas codex plugin add codecanvas@codecanvas

Both plugins start uvx codecanvas-mcp and expose the complete tool catalog. See the plugin package for local-checkout testing and validation commands.

If your client does not support plugins, register the server directly. For Claude Code:

claude mcp add codecanvas -- uvx codecanvas-mcp

That command exposes the complete tool catalog. Keep the full catalog enabled when your MCP client supports on-demand tool discovery or tool search: the client can load the relevant schemas only when they are needed, so the other CodeCanvas tools remain available without paying their schema cost on every model request.

[mcp_servers.codecanvas]

command = "uvx" args = ["codecanvas-mcp"]

If your client eagerly injects every enabled tool schema into every model request, use this compatibility profile instead:

[mcp_servers.codecanvas]

command = "uvx" args = ["codecanvas-mcp"] enabled_tools = ["logic_flow", "who_calls", "call_tree"]

The three-tool allow-list is a fallback for eager-schema clients, not a recommendation to discard the rest of CodeCanvas. For another MCP client, use the equivalent stdio configuration:

{

"mcpServers": { "codecanvas": { "command": "uvx", "args": ["codecanvas-mcp"] } } }

Pass an absolute project_path on the first tool call. CodeCanvas remembers the last explicitly selected project for the rest of the server session.

With the complete catalog enabled, project_status reports candidate analysis roots for nested Python projects. Compact-profile users should pass the intended nested root explicitly.

Teach your agent when to use it

Adding tools does not guarantee that an agent will choose them at the right time. Put a short instruction like this in AGENTS.md, CLAUDE.md, or the equivalent file used by your coding agent:

## Code analysis

Use CodeCanvas before text search when you need to know:

  • how a Python function branches, returns, and produces side effects;
  • who calls it directly or transitively;
  • what it reaches downstream through project-internal calls.

Pass project_path once, then reuse the active project. Treat safe_to_summarize: false, inferred edges, ambiguity, and truncation as qualifications rather than unconditional facts.

Start with logic_flow. Use who_calls for upstream impact and call_tree for a deeper downstream trace.

Then ask your agent naturally:

Use logic_flow first to understand checkout without repeated source searches.

What calls UserService.update_user, up to three hops? What does checkout reach downstream, including HTTP or database effects?

With the complete catalog enabled, CodeCanvas can also answer:

List the entrypoints in this project.

Under exactly what conditions can authenticate raise? Verify that dry-run publish reaches _call_api. Analyze the impact of the current diff.

Why not just grep or an LSP?

CodeCanvas complements both. It is for behavioral questions that otherwise require repeated searches and manual reconstruction.

NeedgrepLSPCodeCanvas
Exact textBest fitNot its jobKeep using grep
Definitions and direct referencesManualBest fitResolves symbols inside structural results
Transitive callers and calleesRepeated manual hopsReferences are not a call pathBounded upstream and downstream graphs
Branch guards and outcomesRead and reconstruct sourceUsually not modeledStructured flow and guarded returns/raises
Side effects and change impactInfer manuallyUsually not modeledEffects attributed through call paths and entrypoints
UncertaintyNo confidence modelResolution-dependentEvidence grade, ambiguity, truncation, and guidance

What makes the answers trustworthy

Static analysis is not runtime truth, so CodeCanvas makes uncertainty visible instead of hiding it.

Every successful MCP response identifies the selected analysis_root and includes metadata that helps an agent decide how strongly it may state the result:

  • evidence_grade describes the strength of the resolved evidence.
  • inferred_edge_count and ambiguous_calls expose uncertain call edges.
  • truncated says whether the bounded response omitted results.
  • safe_to_summarize says whether the result supports an unconditional claim.
  • response_guidance explains how to qualify a result when it does not.

verify_claim goes further by combining candidate call paths with branch and return/raise guards. It returns true, false, or uncertain; unsupported qualifiers and inferred-only paths cannot silently become a definite true.

Tools

Discover and understand
ToolUse it for
project_statusInspect the active root, Python file count, cache, worker interpreter, and nested project candidates
list_entrypointsFind FastAPI routes, scripts, function entrypoints, and distributed library exports
find_symbolsLocate functions, methods, and classes with exact-first name, semantic, or hybrid search
logic_flowGet one compact, citation-ready view of a function's branches, outcomes, downstream calls, and effects
what_doesTriage a function from its signature, docstring, calls, effects, exceptions, and direct risk
function_flowInspect a structured branch tree with subjects, conditions, scopes, and nesting
reaching_conditionsGet the enclosing guards for each return or raise, plus complexity and unreachable code
Follow behavior and assess change
ToolUse it for
who_callsWalk direct or transitive callers upstream
call_treeWalk project-internal callees downstream and attribute direct/transitive effects
verify_claimConservatively check a qualified source reaches target claim against paths and guards
analyze_impactMap an inline diff or git ref to changed functions and affected entrypoints/public surfaces
Reproduce state-shaped bugs
ToolUse it for
validate_state_schemaCompare a function's state reads, writes, and mapping returns with a caller-provided schema
simulate_state_transitionExecute focused generated or explicit state cases with invariants and dependency overrides

Large result sets are capped. Use each tool's filter, kind, path, depth, or pagination arguments to narrow the answer before treating it as complete.

How it works

  1. Select a project. CodeCanvas resolves and remembers an explicit Python project root. Ambiguous nested roots must be selected rather than guessed.
  2. Build structural indexes. Python AST analysis builds a project-wide call graph and per-function control-flow data. Extractors add FastAPI routes and Depends() chains, scripts, generic function entrypoints, and package exports.
  3. Reuse compatible analysis. The call graph and entrypoints are cached in /.codecanvas/; an in-process builder is reused during the MCP session.
  4. Project compact answers. Each MCP tool queries the shared analysis and returns bounded results with origin, evidence, ambiguity, and truncation metadata.

The default analysis limit is 5,000 Python files. Tune large-project behavior with:

VariableDefaultDescription
CODECANVAS_MAX_FILES5000Maximum Python files to analyze
CODECANVAS_BATCH_SIZE50Files processed before yielding
CODECANVAS_THROTTLE_MS10Delay between batches in milliseconds

Safety and limitations

  • CodeCanvas analyzes Python source; it does not model every possible dynamic import, monkey patch, reflection path, or runtime value.
  • Inferred and ambiguous edges are reported as qualifications, not promoted to definite evidence.
  • Static-analysis tools read project files and write the local .codecanvas/ cache. No remote CodeCanvas service is required.
  • simulate_state_transition is different: it imports and executes trusted project code in a separate process. It is isolation for focused repros, n

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx