Code Fundi Mcp

io.github.FelixWaweru由 GitHub 帳號 FelixWaweru 發布v0.1.4更新於 Oct 24, 2026

CodeFundi MCP server for codebase mapping and blast-radius analysis.

概覽

AI 產生的概覽

一個本機 MCP 伺服器,將 AI 助理連接到 Code-Fundi API,用來搜尋、索引與對應程式碼儲存庫,並分析變更影響

可以做什麼
對已索引的程式碼庫進行語意與 grep 搜尋,並對符合的程式碼提供 AI 综合分析。列出、索引儲存庫並查看索引狀態,瀏覽已索引公開儲存庫的目錄。產生跨儲存庫相依圖、儲存庫藍圖,並執行變更影響範圍分析。列出儲存庫檔案並取得 AI 產生的檔案說明文件。查看查詢歷史、對話記錄、用量、活動與程式語言統計。與 Fundi AI 對話、列出聊天模型與模型額度,並透過 OTP 或密碼登入管理 API 金鑰。
適用情境
適用於助理處理已在 Code-Fundi 中索引的程式碼庫,需要自然語言搜尋、儲存庫概觀或在合併變更前做影響分析的情況。也適合探索跨儲存庫相依性與公開儲存庫。
執行需求
以 Node.js 本機程序執行,通常透過 npx 或全域安裝該 npm 套件啟動。需要連線至 Code-Fundi API 的網路存取。驗證方式為 CODEFUNDI_API_KEY 環境變數,或在工作階段內以 OTP 或密碼登入;可用 CODEFUNDI_BASE_URL 覆寫 API 位址。首次註冊會自動建立免費方案帳戶。
安裝前請注意
伺服器會處理帳戶憑證:OTP 驗證碼與密碼會傳送到 Code-Fundi API,密碼透過 X-CodeFundi-Auth-Password 標頭傳送。API 金鑰僅保存在記憶體中,重新啟動後即失效。相關工具可索引儲存庫、重新產生或停用 API 金鑰,並將程式碼查詢傳送給第三方服務。影響範圍分析標示為 PRO+ 方案。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Code Fundi Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Code Fundi

The Codebase Map for AI Agents, Teams and Applications.

[Code Fundi]

[圖片] [圖片]
[圖片] [圖片] [圖片]

Code-Fundi MCP Server

A production-grade Model Context Protocol (MCP) server for the Code-Fundi API: a codebase map and blast-radius engine for AI coding agents. Enables any MCP-compatible AI assistant (Claude, Claude Code, Cursor, Windsurf, VS Code Copilot, and more) to search, research, index, and scan code repositories through natural language, and see what a change breaks before it ships.

Built with FastMCP (TypeScript) and Zod for schema validation.

Getting started for AI agents

If you are an AI agent (or configuring one) and no CODEFUNDI_API_KEY is set, you must self-authenticate before using search, repos, chat, or other authenticated tools. The auth tools (code-fundi-auth-*) work without a pre-existing key.

Which path to use

SituationAction
CODEFUNDI_API_KEY is set in MCP configUse any tool immediately — the server sends it as X-API-Key on every request
No API key configuredRun the OTP self-auth flow below (recommended) or password sign-in

Zero-config MCP setup (no API key)

You can start the MCP server without CODEFUNDI_API_KEY and authenticate at runtime:

json
{  "mcpServers": {    "code-fundi": {      "command": "npx",      "args": ["-y", "@codefundi/code-fundi-mcp"]    }  }}

Self-authenticate with OTP (recommended)

Code-Fundi uses Supabase-backed auth (POST /v2/auth/authenticate, /v2/auth/verify, /v2/auth/resend). OTP emails contain a 6-digit code — magic links are not supported on this path.

  1. Ask the human user for their email address.
  2. Call code-fundi-auth-authenticate with:
    • auth_mode: "otp"
    • email: the user's email
    • should_create_user: true for a new account, false for a returning user
  3. Tell the user to check their inbox for a 6-digit code. The API may return verification_required: true and api_key.key_state: "agent_pending" until verification completes.
  4. Ask the user for the 6-digit OTP (human-in-the-loop — you cannot guess or bypass this step).
  5. Call code-fundi-auth-verify with the same email and the token (6 digits).
  6. On success, the MCP server automatically configures the API key in memory for all subsequent tool calls in this session.

If the code expired or was not received, call code-fundi-auth-resend with the same email, then repeat step 5.

Example dialogue:

Agent: What email should I use to sign in to Code-Fundi?User:  [email protected]Agent: [calls code-fundi-auth-authenticate] I've sent a 6-digit code to [email protected]. Please paste it here.User:  482913Agent: [calls code-fundi-auth-verify] You're signed in. I can now search and index your repositories.

Password sign-in (alternative)

For existing accounts with a password, call code-fundi-auth-authenticate with auth_mode: "password", the user's email, should_create_user: false, and the password parameter. The MCP client sends the password only in the X-CodeFundi-Auth-Password header (never in the JSON body). Production requires HTTPS. Returning users may receive an active API key immediately without a separate verify step.

After authentication

  • The API key is held in memory for the lifetime of the MCP server process. It is not persisted across IDE or MCP restarts.
  • Recommend the user add the key to their MCP config as CODEFUNDI_API_KEY so future sessions start authenticated.
  • A FREE-tier account and API key are created automatically on first signup.

Errors

HTTP statusWhat to do
401 UnauthorizedNo valid key — run the OTP flow above, or set CODEFUNDI_API_KEY
429 Too many requestsAuth endpoints are rate-limited per IP; wait for Retry-After seconds, then retry

Features

Every tool below is backed by the same codebase map: structural dependencies, call graph, and blast radius, indexed once and queried in milliseconds.

  • 🔍 Semantic & grep code search across your indexed codebase map
  • 🧠 AI-powered research: search plus AI analysis in a single call
  • 📦 Repository management: index, status, README, listing, public catalog
  • 🛰️ Repository intelligence: cross-repo dependency map, blueprint, Blast-Radius Guard (impact analysis before you merge)
  • 📄 File documentation: AI-generated docs for any indexed file
  • 📊 Usage statistics: query usage, activity, language breakdowns
  • 🔐 Agent-driven authentication: sign up/sign in via OTP without pre-configured keys
  • 💬 AI chat & model insight: direct conversation with Code-Fundi AI, model catalog, and per-tier limits

Quick Start

Install from npm (recommended)

Install the package (includes a pre-built dist/). The code-fundi-mcp binary is on your PATH when installed globally, or available via npx without cloning the repo:

bash
npm install -g @codefundi/code-fundi-mcp

Or add it to a project:

bash
npm install @codefundi/code-fundi-mcp

Install from source (this repository)

bash
git clone https://github.com/Code-Fundi/code-fundi-mcp.gitcd code-fundi-mcpnpm installnpm run build

Configure

Option A — API key (fastest): set your key as an environment variable:

bash
export CODEFUNDI_API_KEY=your_api_key_here

Option B — no API key: skip the env var and let the agent self-authenticate at runtime. See Getting started for AI agents.

Zero-config MCP example (no env block):

json
{  "mcpServers": {    "code-fundi": {      "command": "npx",      "args": ["-y", "@codefundi/code-fundi-mcp"]    }  }}

Use with Claude Desktop

After a global install (npm i -g @codefundi/code-fundi-mcp), point MCP at the published binary (no path to dist/index.js required):

json
{  "mcpServers": {    "code-fundi": {      "command": "@codefundi/code-fundi-mcp",      "env": {        "CODEFUNDI_API_KEY": "your_api_key_here"      }    }  }}

If the binary is not on your PATH, use npx (downloads or uses the local package and runs the same entrypoint):

json
{  "mcpServers": {    "code-fundi": {      "command": "npx",      "args": ["-y", "@codefundi/code-fundi-mcp"],      "env": {        "CODEFUNDI_API_KEY": "your_api_key_here"      }    }  }}

Use with Cursor

Same pattern as Claude: command plus optional args only, no manual path to the repo:

json
{  "mcpServers": {    "code-fundi": {      "command": "npx",      "args": ["-y", "@codefundi/code-fundi-mcp"],      "env": {        "CODEFUNDI_API_KEY": "your_api_key_here"      }    }  }}

When developing inside this repo, you can run npm run dev or npx tsx src/index.ts without building first.

Development Mode

bash
npm run dev                          # Run with tsx (no build needed)npx fastmcp inspect src/index.ts    # Open MCP Inspector UInpx fastmcp dev src/index.ts        # Test with MCP CLI

Tools Reference (27 tools)

Covers the Code-Fundi V2 API for codebase mapping and blast-radius analysis: search (including search-with-chat / research), repositories (list, index, status, readme, public catalog), repository intelligence (map, blueprint, radius), files, history, statistics, API keys, authentication, plus Fundi chat (POST /v1/fundi/chat) and the V2 model catalog / limits (GET /v2/models, GET /v2/models/limits).

Search

ToolDescription
code-fundi-searchSemantic and grep search across your indexed codebase map, with filters
code-fundi-researchSearch plus AI-synthesized analysis of matching code

Repositories

ToolDescription
code-fundi-list-reposList indexed repositories with pagination
code-fundi-index-repoIndex a new GitHub repository into your codebase map
code-fundi-repo-statusCheck repository indexing status
code-fundi-repo-readmeGet repository README documentation (deprecated, prefer blueprint)
code-fundi-list-public-reposBrowse the global catalog of indexed public repositories (no key needed)

Repository Intelligence

ToolDescription
code-fundi-repo-mapCross-repository dependency map: how services and packages actually connect
code-fundi-repo-blueprintREADME plus dependency and convention overview (successor to repo-readme)
code-fundi-repo-radiusBlast-Radius Guard: every file and function that breaks before you merge (PRO+)

Files

ToolDescription
code-fundi-list-filesList files in a repository
code-fundi-file-docsGet AI-generated file documentation

History

ToolDescription
code-fundi-list-historyList query history with filters
code-fundi-history-itemGet full details of a history entry
code-fundi-conversationGet conversation thread messages

Statistics

ToolDescription
code-fundi-usage-statsQuery-type usage breakdown
code-fundi-activity-statsDaily activity statistics
code-fundi-language-statsProgramming language usage

Authentication

ToolDescription
code-fundi-auth-authenticateStart OTP/password auth flow (no key needed)
code-fundi-auth-verifyVerify OTP code and obtain API key
code-fundi-auth-resendResend OTP verification email
code-fundi-list-api-keysList API keys (masked)
code-fundi-regenerate-api-keyRegenerate API key
code-fundi-disable-api-keyDisable an API key by ID (DELETE /v2/keys/{key_id})

Chat & Models

ToolDescription
code-fundi-chatFundi AI chat (POST /v1/fundi/chat; streamed responses are collected to text)
code-fundi-list-modelsList the curated chat model catalog (GET /v2/models)
code-fundi-model-limitsGet AI model limits and tier configuration (GET /v2/models/limits)

Authentication

Two modes: pre-configured API key (CODEFUNDI_API_KEY in MCP config) or agent-driven OTP/password auth at runtime. Full step-by-step instructions, tool names, and error handling are in Getting started for AI agents at the top of this README.

Environment Variables

VariableRequiredDefaultDescription
CODEFUNDI_API_KEYNo*—API key for authentication
CODEFUNDI_BASE_URLNohttps://api.codefundi.appAPI base URL override

* Required unless using agent-driven auth tools.

License

MIT

來源:README.md,提交 ad33034

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.4最新Sep 16, 2026

評分

已滿足適用檢查項的 40%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。