Skip to main content
Glama

Nia Codebase MCP

by nozomio-labs

Nia 代码库 MCP

Nia Codebase MCP 服务器允许您通过 Cursor、Claude Desktop 和其他 MCP 兼容客户端等工具中的函数调用来集成 Nia 的代码库理解功能。

安装

您可以使用 npx 来使用此 MCP 服务器,而无需安装它:

npx -y nia-codebase-mcp@1.0.1 --api-key=YOUR_NIA_API_KEY --transport=stdio

交通选择

Nia Codebase MCP 服务器支持两种传输方式:

1. 标准输入/输出(stdio)-默认

这是默认的传输方法,在未指定传输时使用:

npx -y nia-codebase-mcp --api-key=YOUR_NIA_API_KEY

2. 服务器发送事件(SSE)

要使用 SSE 传输,请指定--transport=sse标志和可选端口(默认为 3000):

npx -y nia-codebase-mcp --api-key=YOUR_NIA_API_KEY --transport=sse --port=3000

在 MCP 客户端中的使用

光标

  1. 打开“游标设置”>“功能”>“MCP 服务器”
  2. 添加新的 MCP 服务器
  3. 名称: nia-codebase
  4. 类型: command
  5. 命令: npx -y nia-codebase-mcp@1.0.1 --api-key=YOUR_NIA_API_KEY

克劳德桌面

~/Library/Application Support/Claude/claude_desktop_config.json添加到您的 Claude Desktop 配置中:

{ "mcpServers": { "nia-codebase": { "command": "npx", "args": ["-y", "nia-codebase-mcp@1.0.1", "--api-key=YOUR_NIA_API_KEY"] } } }

对于 Windows 用户,配置位于%APPDATA%\Claude\claude_desktop_config.json

示例提示

Using the lookup_codebase_context tool, please analyze my project structure and tell me what the main components are.
Using the lookup_codebase_context tool, search the codebase to understand how the authentication system works and explain its key components.

调试

如果服务器无法正常工作,您可以启用调试模式:

npx -y nia-codebase-mcp@1.0.1 --api-key=YOUR_NIA_API_KEY --debug=true

环境变量

您还可以使用环境变量配置服务器:

  • NIA_API_KEY :您的 Nia API 密钥
  • TRANSPORT :要使用的传输方法( stdiosse
  • PORT :用于 SSE 传输的端口(默认值:3000)
  • TOOL_TIMEOUT_MS :工具执行的自定义超时(默认值:300000ms)
  • DEBUG :启用调试模式( truefalse

工具

该 MCP 服务器提供以下工具:

  • lookup_codebase_context :从 Nia 索引的代码库中查找上下文,根据用户查询检索相关的代码片段。

要求

  • Node.js 18 或更高版本
  • 有效的 Nia API 密钥
  • Nia 中索引的代码库

执照

麻省理工学院

Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

MCP 服务器允许通过 Cursor 和 Claude Desktop 等工具中的函数调用与 Nia 的代码库理解功能集成,使用户能够分析项目结构并通过自然语言查询搜索代码库。

  1. 安装
    1. 交通选择
      1. 标准输入/输出(stdio)-默认
      2. 服务器发送事件(SSE)
    2. 在 MCP 客户端中的使用
      1. 光标
      2. 克劳德桌面
      3. 示例提示
    3. 调试
      1. 环境变量
        1. 工具
          1. 要求
            1. 执照

              Related MCP Servers

              • -
                security
                F
                license
                -
                quality
                An MCP server that provides detailed information about your development environment to the Cursor code editor, enabling more context-aware assistance.
                Last updated -
                1
                Python
                • Linux
                • Apple
              • -
                security
                F
                license
                -
                quality
                An MCP server that enables language models to access code intelligence features like completions, definitions, and references across multiple programming languages through the Language Server Protocol.
                Last updated -
                Python
              • -
                security
                A
                license
                -
                quality
                An MCP server that implements Claude Code-like functionality, allowing the AI to analyze codebases, modify files, execute commands, and manage projects through direct file system interactions.
                Last updated -
                179
                Python
                MIT License
                • Apple
                • Linux
              • -
                security
                A
                license
                -
                quality
                An MCP server that analyzes codebases and generates contextual prompts, making it easier for AI assistants to understand and work with code repositories.
                Last updated -
                10
                Python
                MIT License

              View all related MCP servers

              MCP directory API

              We provide all the information about MCP servers via our MCP API.

              curl -X GET 'https://glama.ai/api/mcp/v1/servers/nozomio-labs/nia-mcp'

              If you have feedback or need assistance with the MCP directory API, please join our Discord server