Skip to main content

SureCode — 代码分析数据库。扫描、分析、入库。和 SureGuard 配合使用效果更佳。

Reason this release was yanked:

pre-release, not ready

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

surecode-0.1.0.tar.gz (14.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

surecode-0.1.0-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file surecode-0.1.0.tar.gz.

File metadata

  • Download URL: surecode-0.1.0.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for surecode-0.1.0.tar.gz
Algorithm Hash digest
SHA256 deef2b892e38f5880a7a13612700486bd0a1122f9b989a99e6f142378438f41e
MD5 014de42e76a509b8ee83bd55ed7a3546
BLAKE2b-256 18fc8fe69dec03aac2b2d186672ef27e38bafd2893a505af585af1cae6557ddd

See more details on using hashes here.

File details

Details for the file surecode-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: surecode-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for surecode-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ce7ca79c6556ae171f535b232c53f273a99d3ad721c9bf22c4a058fa96009c84
MD5 23dca3cae9b88ea39cebfc305b5e5abc
BLAKE2b-256 dcd5d88cc16f5950e550bedcb079f4a2c8b1542d8da9b8eee0cdfda5cac65e66

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page