lightfield

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

MCP server for lightfield documentation, generated by doc2mcp.

已驗證Streamable HTTP可網頁執行網頁搜尋與抓取知識與記憶

概覽

AI 產生的概覽

託管型 MCP 伺服器,將已擷取的 lightfield 文件網站以可搜尋、可閱讀的工具提供給 AI 助理。

可以做什麼
列出所有已擷取的文件頁面,並取得含索引的文件集摘要。讀取單一頁面或全部頁面合併後的完整 Markdown 內容。依標題結構搜尋文件。針對文件提問並取得附引用的回答。
適用情境
當希望助理依據 lightfield 文件回答問題或撰寫程式碼、又不想把頁面內容貼進對話,且可接受託管端點時使用。
執行需求
需要連線到 doc2mcp.site 的遠端 streamable HTTP 端點。需要在 Authorization 標頭提供 bearer 權杖,該權杖取自專案的 Connect 分頁。需要能連線至該託管服務的網路。
安裝前請注意
Authorization 中的 bearer 權杖屬於專案憑證,應像密碼一樣保管,避免出現在共用設定與日誌中。文件內容由第三方 doc2mcp 服務擷取並提供,查詢與頁面請求都會傳送給該服務商。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 lightfield,將其新增到工作區。
  2. 連接 Authorization token 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.doc2mcp%2Flightfield/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "lightfield": {
      "type": "http",
      "url": "https://doc2mcp.site/api/mcp/24fd8d23-16a6-4eb9-bee0-f8080a6b31b2/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_TOKEN>"
      }
    }
  }
}

README

doc2mcp

Documentation infrastructure for AI agents

Paste any docs URL → get a hosted, Cursor-ready MCP server in under 60 seconds.

Live · Docs · SDK · Marketplace · Open Source

[MCP Registry] [npm CLI] [npm SDK] [License: MIT] [GitHub stars]

⭐ Star this repo — it helps developers discover doc2mcp on GitHub and the MCP Registry.


Three ways to use doc2mcp

[Web · CLI · SDK]

SurfaceBest forStart here
WebInstant convert in the browserdoc2mcp.site
CLITerminal + one-shot install into Cursornpm i -g doc2mcp
SDKCode, CI, LangChain / LangGraph / agentsdoc2mcp-sdk

API keys always come from doc2mcp.site (User PAT + project token). The SDK has no separate login.


The pipeline

[The doc2mcp pipeline]

Docs URL → crawl → analyze → MCP tools → hosted endpoint → Cursor / Claude / LangChain / LangGraph.


1) Web (normal)

  1. Sign in at doc2mcp.site/login
  2. Paste a docs URL (Stripe, LangChain, Mintlify, GitHub…)
  3. Copy the hosted MCP URL + Bearer token into Cursor / Claude / VS Code
json
{  "mcpServers": {    "my-docs": {      "url": "https://doc2mcp.site/api/mcp/{project_id}/mcp",      "headers": { "Authorization": "Bearer <project-token>" }    }  }}

2) CLI

bash
npm install -g doc2mcpdoc2mcp login                 # creates User PAT (d2mcp_pat_…)doc2mcp https://docs.example.com

Lists the same projects as the dashboard. Install helpers for Cursor / VS Code / Claude / Windsurf.


3) SDK (doc2mcp-sdk)

[SDK architecture]

bash
npm i doc2mcp-sdk
ts
import { Doc2MCP } from "doc2mcp-sdk";
// User PAT from doc2mcp.site / `npx doc2mcp login` — SDK has no auth of its ownconst client = new Doc2MCP({ token: process.env.DOC2MCP_API_TOKEN! }); // Settings → d2mcp_usr_…
const ready = await client.convertAndWait({  sourceUrl: "https://js.langchain.com/docs",});
const answer = await client.callToolText({  mcpUrl: ready.mcp.url,  mcpToken: ready.mcp.token, // project token d2mcp_…  name: "search_documentation",  arguments: { query: "how do runnables work?" },});

Full handbook (API keys, Cursor, Claude, LangChain, LangGraph, LangSmith, OpenAI, Vercel AI SDK, CrewAI, AutoGen, Mastra):

doc2mcp/doc2mcp-sdk → docs/

Product docs page: doc2mcp.site/docs/sdk


MCP tools generated per project

ToolWhat it does
list_documentation_pagesEvery crawled page
get_documentation_pageFull markdown of one page
search_documentationHeading-aware search
get_documentation_overviewSummary + index
read_full_documentationAll pages combined
ask_documentationQ&A with citations

Repos

RepoPurpose
doc2mcp/doc2mcp (this)Next.js app, CLI, pipeline, MCP runtime
doc2mcp/doc2mcp-sdkProgrammatic JS/TS SDK + framework examples
doc2mcp/doc2mcp-registryMCP Registry gateway manifest

Contribute

  1. Read CONTRIBUTING.md and CODE_OF_CONDUCT.md
  2. Branch from staging → open PR → staging
  3. AI review (Gemini PR review) fails the check on must-fix — fix blockers before merge
  4. Coupon opensourcedoc2mcp → Starter free for 12 months on Pricing

More: doc2mcp.site/open-source

Local development

bash
pnpm installcp .env.example .env.localpnpm dev
bash
pnpm checkpnpm exec tsc --noEmit --skipLibCheck

CI / CD

Feature → staging (preview) → main → v* tag deploys production on Vercel.

PR checks: Biome/Ultracite, TypeScript, Next build, CLI build, Gemini AI review (must-fix → failed check).

License

MIT — see LICENSE.

來源:README.md,提交 4fe7ee7

工具

0
該伺服器需要 API 金鑰等憑證,因此 SourceWeft 無法在沒有憑證的情況下讀取其工具,也未收錄。

版本歷史

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

評分

已滿足適用檢查項的 60%

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

  • 近 30 天內可連通必需25 分

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

  • 已宣告認證方式必需10 分
  • 已列出工具15 分

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

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