Md Md

io.github.kedarvartak由 GitHub 帳號 kedarvartak 發布v1.0.0更新於 Oct 24, 2026

MCP server for md.md - provides team knowledge context to AI assistants

已驗證STDIO僅桌面知識與記憶開發者工具

概覽

AI 產生的概覽

md.md 的 MCP 伺服器,將團隊已發布的 Markdown 知識區塊解析成可直接注入 AI 的脈絡,並管理知識區塊的生命週期。

可以做什麼
  • 依任務解析並附加團隊知識區塊,產生可直接注入 AI 的脈絡
  • 列出並讀取知識區塊,包含其中的 Markdown 檔案與版本
  • 建立、更新、發布與封存知識區塊及其檔案
  • 檢查後端健康狀態與身分,並檢視注入日誌以利觀測
適用情境
適合以版本化 Markdown 維護工程規範、架構決策與工作流程的團隊,希望 AI 助理自動取得正確的已發布脈絡,不必每次重新說明。
執行需求
以 npm 套件 md-md-mcp-server 透過 stdio 在本機執行,需要 Node.js 18+ 與 npm。需要可連線的 md.md 後端(MD_MD_API_URL)以及 API 金鑰 MD_MD_API_KEY(格式 mdmd_...)。可選用 MD_MD_TEAM_ID 與 MD_MD_WORKSPACE_ID 覆寫作用範圍。後端本身需要 PostgreSQL 資料庫。
安裝前請注意
需要金鑰 MD_MD_API_KEY,可存取團隊知識內容;請勿提交至版本控制,並使用最小權限、定期輪替的金鑰。知識區塊生命週期工具會建立、更新、發布與封存共享的團隊內容。任務脈絡與使用中繼資料會傳送到 md.md 後端並記錄以供觀測。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

md.md

md.md is a team intelligence platform that turns internal engineering knowledge into versioned Markdown blocks, then injects the right context into AI-assisted development workflows.

It combines:

  • A backend registry and policy engine
  • A React dashboard for authoring and publishing knowledge blocks
  • An MCP server for IDE and assistant integrations
  • Integration docs and product design docs

What Problem This Solves

AI coding assistants are strong at general coding but weak on team-specific context. Without shared context, teams repeatedly re-explain standards, architecture decisions, and workflows.

md.md solves this by letting teams:

  • Author knowledge once
  • Publish stable versions
  • Resolve the right context at task time
  • Reuse the same context across IDEs and AI tools

Repository Structure

  • app-backend/: NestJS API for auth, block lifecycle, policy resolution, and observability
  • app-client/: React + Vite dashboard for block authoring, publishing, and resolve preview
  • mcp-server/: Model Context Protocol server that exposes md.md tools over stdio
  • ide-integrations/: IDE integration documentation (currently Cursor-focused)
  • docs/: Product vision, phase plan, and resolution model design docs

High-Level Architecture

  1. Teams author Markdown files inside blocks.
  2. Blocks are versioned and published.
  3. IDE/assistant integrations call resolve tools or APIs with task context.
  4. The backend selects relevant published blocks and composes a payload.
  5. The payload is injected into AI context.
  6. Resolution and usage metadata are logged for observability.

Integration Path

  • IDE or AI client
  • MCP protocol over stdio
  • mcp-server tools
  • Backend REST API
  • Postgres persistence (Supabase-compatible)

Core Concepts

Block

A named unit of team knowledge containing one or more Markdown files.

Draft and Published Versions

Draft content can be edited freely. Published versions are stable and intended for consumption.

Scoped Access

Data and permissions are scoped by team and workspace.

Resolution

At usage time, the system resolves and composes relevant published blocks into an AI-ready payload.

Component Details

1) Backend (app-backend)

Tech stack:

  • NestJS 11
  • PostgreSQL via pg (Supabase-compatible connection)
  • TypeScript

Responsibilities:

  • Authentication and authorization
  • RBAC and API key management
  • Block CRUD, versioning, publishing, and archiving
  • Resolution orchestration
  • Injection log and audit log APIs

Notable backend capabilities:

  • API key format: mdmd_<token>
  • Roles: reader, author, admin
  • Per-block permission overrides
  • Health and observability endpoints used by MCP

2) Client Dashboard (app-client)

Tech stack:

  • React 19
  • Vite
  • TypeScript
  • MUI + Emotion

Responsibilities:

  • Create and edit blocks
  • Manage block files
  • Publish versions
  • Preview resolution output
  • Configure auth/scope information for usage

3) MCP Server (mcp-server)

Tech stack:

  • Node.js + TypeScript
  • @modelcontextprotocol/sdk
  • Zod for argument validation

Responsibilities:

  • Expose md.md capabilities as MCP tools
  • Forward tool calls to backend APIs
  • Handle retries, timeouts, and health checks

Primary tools include:

  • resolve_context
  • attach_blocks
  • list_blocks
  • get_block
  • health_check
  • Block lifecycle tools (create_block, update_block, publish_block, etc.)
  • Access and observability tools (whoami, list_injection_logs)

4) IDE Integrations (ide-integrations)

Contains setup patterns for connecting editors to the MCP server.

Current documented integration:

  • Cursor (MCP client configuration)

5) Product and Design Docs (docs)

  • idea_1.0.md: product rationale and system vision
  • phases_1.0.md: implementation roadmap (phase-oriented)
  • resolution_model.md: detailed target model for selection, ordering, and composition

Local Development Setup

Prerequisites

  • Node.js 18+
  • npm
  • PostgreSQL database (Supabase Postgres recommended)

1) Backend

bash
cd app-backendnpm install

Create app-backend/.env with at least:

env
SUPABASE_DATABASE_URL=postgresql://<user>:<password>@<host>:<port>/<db>

Start backend:

bash
npm run start:dev

2) Create Admin API Key

From app-backend:

bash
npm run create-admin -- \  --email [email protected] \  --name "Admin User" \  --team team-alpha \  --workspace workspace-core

Save the generated mdmd_... key securely.

3) Client Dashboard

bash
cd ../app-clientnpm installnpm run dev

4) MCP Server

bash
cd ../mcp-servernpm installnpm run buildnpm start

Set environment variables for MCP runtime (either shell or IDE config):

env
MD_MD_API_URL=http://localhost:3000MD_MD_API_KEY=mdmd_your_key_here

Common Developer Workflows

Backend

bash
cd app-backendnpm run start:devnpm run buildnpm run testnpm run test:e2enpm run lint

Client

bash
cd app-clientnpm run devnpm run buildnpm run lintnpm run preview

MCP Server

bash
cd mcp-servernpm run devnpm run buildnpm start

Security and Secrets

  • Do not commit API keys or token files.
  • Keep secrets in environment files or secure secret managers.
  • Use least-privilege API keys for integrations.
  • Rotate keys regularly.
  • Review audit logs for sensitive actions.

Recent local ignore defaults in mcp-server/.gitignore include:

  • .mcpregistry_github_token
  • .mcpregistry_registry_token

Current Product Status

Implemented:

  • End-to-end block lifecycle (create, edit, publish)
  • Dashboard authoring and resolve preview
  • Backend RBAC and API key management
  • MCP server with tooling for context resolution and block operations

In progress or planned:

  • Smarter policy-based contextual selection and ordering
  • Expanded IDE integrations
  • Additional analytics and governance features

Where To Go Next

  • Backend implementation and auth docs: app-backend/docs/
  • MCP usage and integration details: mcp-server/README.md
  • IDE setup notes: ide-integrations/README.md
  • Product vision and roadmap: docs/

License

See license declarations in each package (app-backend, app-client, mcp-server).

來源:README.md,提交 e71126d

工具

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

版本歷史

1
  1. v1.0.0最新Sep 16, 2026

評分

已滿足適用檢查項的 40%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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

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