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 分