Augments

dev.augments由 augments.dev 發布官方發布者v2.0.2更新於 Oct 27, 2026

Augments MCP Server - A comprehensive framework documentation provider for Claude Code

已驗證Streamable HTTP可網頁執行知識與記憶開發者工具

概覽

AI 產生的概覽

為助理提供 npm 套件文件(型別、說明與範例),並支援 API 搜尋、版本差異、遷移指南、錯誤診斷與相依套件掃描。

可以做什麼
  • 查詢任意 npm 套件的 API 內容:簽章、說明文件與程式碼範例,支援自然語言提問
  • 依關鍵字或概念跨框架搜尋 API,並做同義詞擴充
  • 比較套件版本並提供以真實變更記錄為依據的破壞性變更,以及跨版本遷移指南
  • 透過精選錯誤模式、GitHub Issues 與疑難排解文件診斷錯誤
  • 並排比較 2 至 5 個套件的下載量、打包大小、星號數、相依套件與匯出的 API
  • 掃描專案 package.json 中過時、已棄用與不安全的相依套件,並檢視伺服器健康狀態
適用情境
適合在 JavaScript 或 TypeScript 專案中,讓助理依據真實的套件型別與文件而非記憶來回答,例如核對 API 簽章、升級主版本、排查執行階段錯誤或稽核相依套件。
執行需求
可透過 npx 在本機執行(需要 Node.js),也可連線 mcp.augments.dev 遠端端點。未宣告身分驗證。可選設定 GITHUB_TOKEN 以提高抓取範例與文件時的 GitHub API 速率上限。需要連線 npm、CDN 與 GitHub 的網路。
安裝前請注意
可選的 GITHUB_TOKEN 是放在環境變數中的憑證,應盡量縮小其權限範圍。伺服器會從 npm、CDN 與 GitHub 抓取套件中繼資料、文件與範例,查詢內容與套件名稱會傳送給這些第三方。相依套件掃描會讀取專案的 package.json;未描述任何寫入操作。

安裝

在 SourceWeft 中

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

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

交給代理程式安裝

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

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

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

其他 MCP 客戶端

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

{
  "mcpServers": {
    "augments": {
      "type": "http",
      "url": "https://mcp.augments.dev/mcp"
    }
  }
}

README

[Augments MCP Server]

A next-generation framework documentation provider for Claude Code via Model Context Protocol (MCP). Returns types + prose + examples with context-aware formatting for any npm package — not just curated ones.

mcp-name: dev.augments/mcp

What's New in v7

Version 7.0 is the biggest upgrade yet — documentation-first search, 4 new tools, BM25 indexing, and production-grade reliability.

v6v7
3 tools8 tools (+ diagnostics)
Types-only searchDocumentation-first BM25 search
8 concept synonyms25 concept synonym clusters
Generic version diffsReal changelog-backed breaking changes
No migration guidesCross-version migration guides
No error diagnosisCurated error patterns + GitHub Issues
No package comparisonSide-by-side package comparison
No dep scanningDependency scanner (outdated/deprecated/security)
FIFO cachesLRU caches with hit/miss stats
Fixed retry delaysExponential backoff + circuit breaker

Quick Start

Claude Code

bash
# Add the MCP server (runs locally via npx)claude mcp add -s user augments -- npx -y @augmnt-sh/augments-mcp-server
# Verify configurationclaude mcp list

Cursor

Add to your MCP config:

json
{  "mcpServers": {    "augments": {      "command": "npx",      "args": ["-y", "@augmnt-sh/augments-mcp-server"]    }  }}

Environment Variables

Set GITHUB_TOKEN for higher GitHub API rate limits when fetching examples and documentation:

json
{  "mcpServers": {    "augments": {      "command": "npx",      "args": ["-y", "@augmnt-sh/augments-mcp-server"],      "env": {        "GITHUB_TOKEN": "ghp_your_token_here"      }    }  }}

Usage

# Get API context with prose + examples (recommended first tool)@augments get_api_context query="useEffect cleanup" framework="react"
# Natural language queries work great@augments get_api_context query="how to use zustand middleware"
# Search for APIs by concept (synonym-aware)@augments search_apis query="state management"
# Get version info with real breaking changes@augments get_version_info framework="react" fromVersion="18" toVersion="19"
# Migration guide between versions@augments get_migration_guide package="next" fromVersion="14" toVersion="15"
# Diagnose an error@augments diagnose_error error="Objects are not valid as a React child" package="react"
# Compare packages side-by-side@augments compare_packages packages=["zod", "yup", "joi"]
# Scan project dependencies@augments scan_project_deps

Tools

ToolDescription
get_api_contextPrimary tool. Returns API signatures, prose documentation, and code examples for any npm package. Handles natural language queries with intent detection. Now with documentation-first BM25 search.
search_apisSearch for APIs across frameworks by keyword or concept. 25 synonym clusters ("state" matches useState, createStore, atom, etc).
get_version_infoGet npm version info, compare versions, and detect breaking changes backed by real changelogs.
get_migration_guideNew. Cross-version migration guide with breaking changes, new features, deprecations, type diffs, and official migration docs.
diagnose_errorNew. Diagnose errors using curated patterns, GitHub Issues search, and troubleshooting docs.
compare_packagesNew. Compare 2-5 npm packages: downloads, bundle size, GitHub stars, dependencies, exported APIs.
scan_project_depsNew. Scan package.json for outdated, deprecated, and insecure dependencies.
diagnosticsServer health: version, uptime, memory, cache stats, Node.js version.

Architecture

mermaid
flowchart TD    A["Query: 'how to use useEffect cleanup'"] --> B
    B["Intent Detection → howto<br/>Query Parser → react / useEffect"]
    B --> C["Type Fetcher<br/>CDN racing · npm metadata · @types"]    B --> D["Doc Fetcher<br/>GitHub API · BM25 search · 25 synonym clusters"]    B --> E["Example Extractor<br/>GitHub docs · README fallback · Auto-discovery"]
    C --> F["Type Parser<br/>Signatures · Parameters · Related types"]    D --> G["Doc Search Engine<br/>BM25 indexing · Heading-based chunks · API boost"]
    F --> H["Intent-Driven Formatter (howto)<br/>→ Examples first, prose, brief signature<br/>→ ~500-2000 tokens, 10KB max"]    G --> H    E --> H

Source Structure

src/├── cli.ts                   # stdio entry point├── server.ts                # MCP server (8 tools + diagnostics)├── core/                    # Core modules│   ├── query-parser.ts      # Parse natural language → framework + concept│   ├── type-fetcher.ts      # Fetch .d.ts + README from npm/unpkg/jsdelivr│   ├── type-parser.ts       # Parse TypeScript, extract signatures, synonym search│   ├── example-extractor.ts # Fetch examples from GitHub docs + auto-discovery│   ├── version-registry.ts  # npm registry integration + changelog-backed diffs│   ├── doc-fetcher.ts       # GitHub documentation fetcher│   ├── doc-search.ts        # BM25 inverted index search engine│   ├── changelog-fetcher.ts # CHANGELOG.md + GitHub Releases parser│   ├── type-differ.ts       # .d.ts diff between versions│   └── error-patterns.ts    # Curated error pattern database├── tools/v4/                # MCP tools│   ├── get-api-context.ts   # Primary tool (types + docs + examples)│   ├── search-apis.ts       # Cross-framework API search│   ├── get-version-info.ts  # Version comparison│   ├── get-migration-guide.ts # Cross-version migration guides│   ├── diagnose-error.ts    # Error diagnosis│   ├── compare-packages.ts  # Package comparison│   └── scan-project-deps.ts # Dependency scanner└── utils/    ├── logger.ts            # stderr logger    └── lru-cache.ts         # Generic LRU cache with stats

Key Features

Documentation-First Search (New in v7)

Queries like "prisma findMany with pagination" and "zustand create store with middleware" now return real documentation content. The BM25 search engine indexes docs fetched from GitHub by heading-based chunks, with API name boosting and synonym expansion.

Concept Synonyms

25 synonym clusters cover state, form, fetch, animation, routing, auth, cache, effect, middleware, pagination, validation, testing, streaming, error handling, database, layout, modal, table, upload, realtime, deployment, i18n, SSR, component, and context patterns. Bidirectional lookup means "usestate" expands to the "state" cluster.

Intent-Aware Formatting

IntentTriggerFormat
howto"how to", "example of", "guide"Examples → prose → brief signature
reference"signature", "types", "parameters"Full signature → related types → 1 example
migration"migrate", "upgrade", "breaking"Prose → signature → examples
balancedDefaultSignature → prose → examples

Production Reliability (New in v7)

  • Exponential backoff with jitter for npm registry retries, with 429 Retry-After support
  • CDN circuit breaker — skips repeatedly failing CDN endpoints (3 failures / 5 min)
  • GitHub rate limiting — tracks remaining quota, skips fetches when exhausted
  • LRU caches with hit/miss statistics across all cache-using modules

Coverage

Any npm Package

Every npm package is supported out of the box — no curation or configuration needed. Augments resolves documentation automatically through four layers:

  1. Documentation search — fetches real docs from GitHub repos, indexes with BM25
  2. TypeScript types — bundled ("types" in package.json) or DefinitelyTyped (@types/*)
  3. Auto-discovered docs — parses the npm repository field, finds the GitHub repo, probes docs/ directories
  4. README fallback — extracts concept-relevant code blocks and prose from README.md

This means augments works with the entire npm ecosystem (~2.5M packages), not just a curated subset.

Enhanced Results for Popular Frameworks

22 frameworks have curated doc sources for richer examples: React, Next.js, Vue, Prisma, Zod, Supabase, TanStack Query, tRPC, React Hook Form, Framer Motion, Express, Zustand, Jotai, Drizzle, SWR, Vitest, Playwright, Fastify, Hono, Solid, Svelte, Angular, Redux

Barrel Export Handling

Special sub-module resolution for: React Hook Form, TanStack Query, Zustand, Jotai, tRPC, Drizzle ORM, Next.js

Local Development

bash
# Clone and installgit clone https://github.com/augmentscode/augments-mcp-server.gitcd augments-mcp-servernpm install
# Build with tsupnpm run build
# Run locallynpm start
# Watch modenpm run dev
# Run testsnpm test
# Run e2e tests (real network calls)npm run test:e2e
# Type checknpm run type-check

How Augments Compares to Context7

AspectContext7Augments v7
SourceParsed prose docsTypes + BM25-indexed docs + README
AccuracyDocs can be wrongTypes must be correct, docs supplement
Context size~5-10KB chunks~500-2000 tokens (intent-aware)
CoverageManual submissionAny npm package (auto-discovery)
FormatOne-size-fits-allIntent-aware (how-to vs reference)
SearchKeyword matchBM25 + 25 concept synonym clusters
FreshnessCrawl scheduleOn-demand from npm + GitHub
MigrationNoCross-version migration guides
Error helpNoCurated patterns + GitHub Issues
Dep scanningNoOutdated/deprecated/security checks

Contributing

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Make your changes
  4. Run tests: npm test
  5. Submit a pull request

License

MIT License - see LICENSE for details.

Support


Built for the Claude Code ecosystem | Version 7.0.0

來源:README.md,提交 9ab9ca9

工具

0
SourceWeft 尚未讀取此伺服器的工具。

版本歷史

1
  1. v2.0.2最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

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

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

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

  • 已宣告認證方式必需10 分

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

  • 已列出工具15 分

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

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

其他 Augments 整合