Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Reason given by maintainers: pre-release, not ready

SureCode

SureCode 是一个代码分析数据库 MCP 服务器。它扫描你的代码,提取结构信息和分析结果,存入本地 SQLite 数据库。

定位

Code Scalpel:     提取 + 分析(手术刀,不存)
codebase-memory:  结构 + 索引(快,但只存结构信息)

surecode:         分析 + 入库(做深度分析,结果持久化,和 SureGuard 联动)

安装

pip install surecode

使用

在 MCP 客户端(Cursor、Claude Desktop 等)中配置:

{
  "mcpServers": {
    "surecode": {
      "command": "python",
      "args": ["-m", "surecode.server"],
      "env": {
        "SURE_Vault_PATH": "./.surecode"
      }
    }
  }
}

MCP 工具

scanner 模块 — 代码扫描分析

工具 描述
scan_project 扫描整个项目,提取符号和依赖
scan_file 扫描单个文件
get_symbols 获取项目符号表
get_quality_issues 获取代码质量问题
get_dependencies 获取项目依赖图
get_function_detail 获取函数详情

vault 模块 — 分析结果持久化

工具 描述
search_symbols FTS5 全文搜索符号
compare_snapshots 两个时间点的代码对比
get_project_summary 项目分析概览
clear_vault 清空 vault

与 SureGuard 配合

  • 扫描入库:surecode 分析 → 存入 vault
  • 门控调用:sureguard 从 vault 读取基线,判断代码变更是否安全
pip install sureguard surecode

Metadata

Release files for surecode 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for surecode 0.1.0
File Size Uploaded Provenance Actions
surecode-0.1.0.tar.gz 14.0 kB Without provenance Details for surecode-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for surecode 0.1.0
File Interpreter ABI Platform Actions
surecode-0.1.0-py3-none-any.whl Python 3 none any Details for surecode-0.1.0-py3-none-any.whl

Total release size: 30.3 kB

Release files / surecode-0.1.0.tar.gz

Download URL surecode-0.1.0.tar.gz
Size 14.0 kB
Tags Source
SHA-256 checksum
How to use checksums
deef2b892e38f5880a7a13612700486bd0a1122f9b989a99e6f142378438f41e
BLAKE2b-256 checksum
How to use checksums
18fc8fe69dec03aac2b2d186672ef27e38bafd2893a505af585af1cae6557ddd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / surecode-0.1.0-py3-none-any.whl

Download URL surecode-0.1.0-py3-none-any.whl
Size 16.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ce7ca79c6556ae171f535b232c53f273a99d3ad721c9bf22c4a058fa96009c84
BLAKE2b-256 checksum
How to use checksums
dcd5d88cc16f5950e550bedcb079f4a2c8b1542d8da9b8eee0cdfda5cac65e66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Security for surecode 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page