Constellation

com.shiftinbits由 shiftinbits.com 发布v1.3.0更新于 Oct 29, 2026

Code Intelligence Platform for AI Coding Agents

已验证STDIO仅桌面知识与记忆开发者工具

概览

AI 生成的概览

Constellation 为 AI 编程助手提供项目代码智能图谱,可查询符号、调用方、依赖与影响范围,而不必靠文本搜索。

可以做什么
  • 在已索引项目中搜索符号(函数、方法、类、变量),返回文件、行号与源码片段
  • 对符号做影响分析,评估破坏性变更风险,并列出文件的直接依赖方
  • 通过 Code Mode 的 api 对象用 JavaScript 串联查询,并可列出方法、查看内联帮助、检查索引状态
  • 通过将 cwd 指向已索引的项目根目录来跨多个项目工作
适用场景
适合需要关于代码库的结构性答案的场景,例如符号定义在哪、谁在调用、改动会破坏什么,而不是纯文本匹配。对已由 Constellation CLI 完成索引的较大型或多文件项目最有用。
运行要求
通过 npx 从 npm 包 @constellationdev/mcp 以 stdio 在本地运行,需要 Node.js。需要 Constellation 账号与服务,并在 CONSTELLATION_ACCESS_KEY 环境变量中提供访问密钥。项目须先用 Constellation CLI 分析并建立索引,调用时需将 cwd 设为已索引的项目目录。需要访问 Constellation 服务的网络连接。
安装前请注意
需要 Constellation 访问密钥,属于付费服务的凭据,请勿写入共享配置。项目的结构性元数据(符号、导入、调用、引用)会上传到 Constellation 云服务,README 称不会传输原始源码。查询会发往第三方 API,结果取决于当前分支的索引是否最新。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Constellation MCP Server

[NPM Version] [TypeScript v5.9+] [Node.js v24+] [MCP Badge] [License: AGPL-3.0] [Snyk Monitored]

Give your AI coding assistant instant, intelligent access to your entire codebase's structure, dependencies, and relationships without transmitting any source code. Constellation provides code intelligence as a service to AI coding assistant tools.

Quick Start

Add the Constellation MCP server to your AI assistant project-level config (or system-level if your tooling doesn't support project-level configuration):

json
{  "mcpServers": {    "constellation": {      "type": "stdio",      "command": "npx",      "args": ["-y", "@constellationdev/mcp@latest"],      "env": {        "CONSTELLATION_ACCESS_KEY": "${CONSTELLATION_ACCESS_KEY}"      }    }  }}

[!NOTE]
The above example is a generic format for the .mcp.json file used by some tools such as VSCode and Claude Code.

Rather than directly configuring the MCP server, it is recommended to install and utilize official Constellation Plugins for optimal performance and behavior!

For information on configuring other AI assistants see the MCP Server > Installation doc.

For further instructions regarding authentication, project setup, and configuration refer to the official docs.

How It Works

mermaid
%%{init: {'theme': 'dark', 'themeVariables': { 'primaryColor': '#4A90E2', 'primaryTextColor': '#EEEEEE', 'primaryBorderColor': '#2B2C34', 'lineColor': '#4A90E2', 'secondaryColor': '#1F1F28', 'tertiaryColor': '#0B0C10', 'edgeLabelBackground': '#1F1F28' }}}%%flowchart LR    subgraph local["💻 Your Environment"]        direction TB        code["📂 Source Code"]        cli["⚙️ Constellation CLI"]        ai["🤖 AI Coding Assistant"]        mcp["🧩 Constellation MCP"]        code --> cli    end
    subgraph cloud["✨ Constellation Service"]        direction TB        api["🔌  API"]        graphdb[("🧠 Knowledge Graph")]        api <--> graphdb    end
    cli a1@-->|"Metadata Upload"| api    ai <-->|"Tool Calls"| mcp    mcp a2@<-->|"Queries"| api
    a1@{ animation: fast }    a2@{ animation: fast }
    style local fill:#1F1F28    style cloud fill:#1F1F28,stroke:#4A90E2    style cli stroke:#4A90E2    style mcp stroke:#4A90E2    style api stroke:#4A90E2    style graphdb stroke:#4A90E2
  1. Parse and Analyze: The CLI tool analyzes source code in your environment, extracting structural metadata (functions, classes, variables, imports, calls, references, etc.)
  2. Upload: Only the metadata is securely sent to Constellation, never raw source code
  3. Query: AI assistants use the Constellation MCP tool to send complex queries, and get rapid answers derived from the knowledge graph

Documentation

Find the full and comprehensive documentation at docs.constellationdev.io/mcp/

Privacy & Security

  • No source code transmission - Only metadata and relationships
  • Access control - API keys required for all requests
  • Branch isolation - Each git branch maintains discrete code intelligence

For comprehensive information regarding privacy and security, see the official Privacy & Security documentation and the Privacy Policy.

Support

License

AGPL-3.0 - See LICENSE for details.

Copyright © 2026 ShiftinBits Inc.

来源:README.md,提交 fba36d5

工具

1

code_intel

Code Intelligence

DECISION RULE: Structure questions → this tool. Text search → Grep. Before using Grep, ask: Is this a STRUCTURE question (definitions, callers, impact) or a TEXT question (strings, config)? QUICK START: `return await api.searchSymbols({query: "AuthService"})` — simple queries are one-liners. Run `api.listMethods()` for full API reference with signatures and descriptions. Run `api.help("methodName")` for inline TypeScript type definitions — no resource reads needed. Compose: `const [impact, deps] = await Promise.all([api.impactAnalysis({symbolId}), api.getDependents({filePath})]);` WHY THIS TOOL: Graph-backed intelligence finds indirect relationships, transitive dependencies, and breaking change risks that text search cannot detect. "What uses X?" disambiguation: getDependents (file imports) vs getCallGraph (call chain) vs traceSymbolUsage (all usages). USE IMMEDIATELY WHEN: • BEFORE using Edit on a function/class → run impactAnalysis({symbolId}) first • BEFORE exploring an unfamiliar codebase → run getArchitectureOverview() • BEFORE refactoring → trace getDependencies + getDependents for blast radius • Running 3+ Grep calls for structure? STOP → use code_intel instead TOP 5 QUESTIONS (query is case-insensitive substring match): • "Where is X defined?" / "Find function Y" → searchSymbols({query}) • "What calls X?" / "What imports this?" → getDependents({filePath}) or getCallGraph({symbolId}) • "What does X depend on?" → getDependencies({filePath}) • "Safe to modify X?" / "Blast radius?" → impactAnalysis({symbolId}) • "Find dead code" / "Unused exports?" → findOrphanedCode() • "Complex functions?" / "Refactoring targets?" → searchSymbols results include complexity.cyclomaticComplexity + complexityRisk per function NOT FOR: literal string search, log messages, config values, or reading source code. Use Grep/Glob/Read for those. Supports TypeScript, JavaScript, Python, and more — run api.getCapabilities() to check your project. File-path-scoped methods (getDepend

输入参数cwd必填code必填hooktimeout

版本历史

3
  1. v1.3.0最新Oct 21, 2026
  2. v1.2.11Oct 1, 2026
  3. v1.2.10Sep 16, 2026

评分

已满足适用检查项的 90%

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

  • 近 30 天内可连通25 分
  • 已声明认证方式10 分

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

  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分