AA

aj47/auggie-context-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

39 stars 6 forks 质量 73 趋势 12MIT

作为MCP的增强代码上下文引擎

概览

https://docs.augmentcode.com/context-services/mcp/overview 一个模型上下文协议(MCP)服务器,提供 Auggie CLI 用于代码库上下文检索。这使得像 Claude、Cursor 等 AI 代理能够利用 Augment 强大的上下文引擎查询代码库。 该MCP服务器设计用于与MCP客户端使用,如或。无法单独使用。 1. : https://docs.augmentcode.com/cli/overview 2.: 这会打开一个用于认证的浏览器。一旦登录,你就可以开始了! 1. 编辑 ~/Library/Application Support/Claude/claude_desktop_config.json(macOS)或 %APPDATA%\Claude\claude_desktop_config.json(Windows)2.添加此配置: 3. 重启 Claude Desktop 4。你现在应该能看到 Claude 中可用的query_codebase工具 : 如果你需要用特定的令牌代替 Auggie CLI 登录,可以添加带有 AUGMENT_SESSION_AUTH 的 env 部分。详情请参见认证部分。 1. 在您的项目中或全局创建或编辑 .cursor/mcp.json 2.

概述(AI 翻译)

https://docs.augmentcode.com/context-services/mcp/overview


奥吉上下文MCP服务器

一个模型上下文协议(MCP)服务器,提供 Auggie CLI 用于代码库上下文检索。这使得像 Claude、Cursor 等 AI 代理能够利用 Augment 强大的上下文引擎查询代码库。

快速启动

该MCP服务器设计用于与像Claude Desktop或Cursor这样的MCP客户端一起使用。它不能单独使用。

先决条件

  1. 安装Auggie CLI: https://docs.augmentcode.com/cli/overview
  2. 用奥吉认证:

这会打开一个浏览器进行身份验证。登录后,你就可以开始了!

使用 Claude Desktop 设置

  1. 编辑 ~/Library/Application Support/Claude/claude_desktop_config.json(macOS)或%APPDATA%\Claude\claude_desktop_config.json(Windows)

  2. 添加以下配置:

  3. 重启 Claude Desktop

  4. 你现在应该会看到 Claude 中可用的 query_codebase 工具

注意:如果你需要使用特定的令牌代替 Auggie CLI 登录,可以添加带有 AUGMENT_SESSION_AUTH 的 env 部分。详情请参见认证部分。

光标设置

  1. 创建或编辑“.cursor/mcp”。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

There is now an official Augment Code Context Engine MCP:

https://docs.augmentcode.com/context-services/mcp/overview


Auggie Context MCP Server

A Model Context Protocol (MCP) server that exposes Auggie CLI for codebase context retrieval. This allows AI agents like Claude, Cursor, and others to query codebases using Augment’s powerful context engine.

Quick Start

This MCP server is designed to be used with MCP clients like Claude Desktop or Cursor. It cannot be used standalone.

Prerequisites

  1. Install Auggie CLI: https://docs.augmentcode.com/cli/overview
  2. Authenticate with Auggie:
    auggie login
    
    This opens a browser for authentication. Once logged in, you’re ready to go!

Setup with Claude Desktop

  1. Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
  2. Add this configuration:
{
  "mcpServers": {
    "auggie-context": {
      "command": "npx",
      "args": ["-y", "auggie-context-mcp@latest"]
    }
  }
}
  1. Restart Claude Desktop
  2. You should now see the query_codebase tool available in Claude

Note: If you need to use a specific token instead of your Auggie CLI login, you can add an env section with AUGMENT_SESSION_AUTH. See the Authentication section for details.

Setup with Cursor

  1. Create or edit .cursor/mcp.json in your project or globally
  2. Add the same configuration as above
  3. Restart Cursor

See Installation & Usage section for detailed instructions.

Features

  • 🔍 Codebase Query: Intelligent Q&A over repositories using Augment’s context engine
  • 🚀 Simple Setup: Pure TypeScript/Node.js implementation (no Python required)
  • 🔒 Read-Only: Safe context retrieval without file modification capabilities
  • ⚡ Fast: Direct integration with Auggie CLI
  • 📦 Easy Distribution: Single npm package, works with npx

Requirements

  • Node.js 18+
  • Auggie CLI installed and available on PATH
  • Augment Authentication (see Authentication section below)

Authentication

The server supports two authentication methods:

Simply log in using the Auggie CLI:

auggie login

This opens a browser for authentication. Once logged in, the MCP server will automatically use your Auggie CLI session. No additional configuration needed!

Option 2: Environment Variable (AUGMENT_SESSION_AUTH)

Alternatively, you can provide an explicit access token via the AUGMENT_SESSION_AUTH environment variable.

在 GitHub 查看完整 README

安装

npx -y auggie-context-mcp@latest
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "auggie-context": { "command": "npx", "args": ["-y", "auggie-context-mcp@latest"] } } }