Skip to main content
Glama

Nuanced MCP Server

by MattMorgis

Nuanced MCP 服务器

模型上下文协议 (MCP)服务器通过细致的库为 LLM 提供调用图分析功能。

概述

该 MCP 服务器使 LLM 能够通过标准化工具和资源访问函数调用图来理解代码结构。它允许 AI 助手:

  • 初始化 Python 存储库的调用图
  • 探索函数调用关系
  • 分析函数之间的依赖关系
  • 提供更多上下文感知的代码帮助

API

工具

  • 初始化图
    • 为给定的存储库路径初始化代码图
    • 输入: repo_path (字符串)
  • 切换存储库
    • 切换到不同的初始化存储库
    • 输入: repo_path (字符串)
  • 列出存储库
    • 列出所有已初始化的存储库
    • 无需输入
  • 获取函数调用图
    • 获取特定函数的调用图
    • 输入:
      • file_path (字符串)
      • function_name (字符串)
      • repo_path (字符串,可选)-如果未指定,则使用活动存储库
  • 分析依赖关系
    • 查找代码库中的所有模块或文件依赖项
    • 输入(至少需要一个):
      • file_path (字符串,可选)
      • module_name (字符串,可选)
  • 分析变化影响
    • 分析更改特定功能的影响
    • 输入:
      • file_path (字符串)
      • function_name (字符串)

资源

  • graph://summary
    • 获取当前加载的代码图的摘要
    • 无需参数
  • graph://repo/{repo_path}/summary
    • 获取特定存储库的代码图摘要
    • 参数:
      • repo_path (字符串) - 存储库路径
  • graph://function/{file_path}/{function_name}
    • 获取有关特定功能的详细信息
    • 参数:
      • file_path (字符串) - 包含函数的文件路径
      • function_name (字符串) - 要分析的函数名称

提示

  • 分析函数
    • 创建提示来分析函数及其调用图
    • 参数:
      • file_path (字符串) - 包含函数的文件路径
      • function_name (字符串) - 要分析的函数名称
  • 影响分析
    • 创建提示来分析更改功能的影响
    • 参数:
      • file_path (字符串) - 包含函数的文件路径
      • function_name (字符串) - 要分析的函数名称
  • 分析依赖项提示
    • 创建提示来分析文件或模块的依赖关系
    • 参数(至少一个必需):
      • file_path (字符串,可选) - 要分析的文件路径
      • module_name (字符串,可选)-要分析的模块的名称

与 Claude Desktop 一起使用

将其添加到您的claude_desktop_config.json

紫外线

{ "mcpServers": { "nuanced": { "command": "uv", "args": [ "--directory", "/path/to/nuanced-mcp", "run", "nuanced_mcp_server.py" ] } } }

You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

MCP 服务器使 LLM 能够通过函数调用图理解和分析代码结构,从而允许 AI 助手探索函数之间的关系并分析 Python 存储库中的依赖关系。

  1. 概述
    1. API
      1. 工具
      2. 资源
      3. 提示
    2. 与 Claude Desktop 一起使用
      1. 紫外线

    Related MCP Servers

    • -
      security
      A
      license
      -
      quality
      A Model Context Protocol server that extracts and analyzes Python code structures, focusing on import/export relationships between files to help LLMs understand code context.
      Last updated -
      4
      Python
      MIT License
    • -
      security
      A
      license
      -
      quality
      A MCP server that transforms code repositories from GitHub, GitLab, or local directories into LLM-friendly formats, preserving context and structure for better AI processing.
      Last updated -
      1
      Python
      Apache 2.0
    • -
      security
      -
      license
      -
      quality
      An MCP server that automatically generates documentation, test plans, and code reviews for code repositories by analyzing directory structures and code files using AI models via OpenRouter API.
      Last updated -
      3
      TypeScript
      Creative Commons Zero v1.0 Universal
    • -
      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/MattMorgis/nuanced-mcp'

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