A
securityA
licenseA
qualityProvides tools for collecting and documenting code from directories.
Last updated -
4
81
12
TypeScript
MIT License
这是一个分析指定目录的src
目录下源代码相关性的MCP服务器。它分析每种语言的导入语句并识别文件之间的依赖关系。通过与 Claude 集成,它可以让 Claude 快速查看项目依赖关系并帮助识别相关文件。
import
语句、 require
语句import
语句, from ... import
语句require
语句、 require_relative
语句mod
声明、 use
语句@/components/...
)__init__.py
,相对导入mod.rs
模式index.ts
将以下内容添加到claude_desktop_config.json
:
/Users/xxx/GitHub/xxx/ のソースの依存関係を確認して
并像这样指示它,它将起作用
如果指定目录,则会分析其下的src
目录。如果您指定一个文件,则分析将基于该文件。它还支持从提示符输入路径。要与提示一起使用它,请选择Attach from MCP
-> Choose an integration
-> source-relation
。
分析结果以JSON格式输出如下:
所有路径都相对于src
目录。
import { Component } from './Component'
import type { Type } from '@/types'
import './styles.css'
require('./module')
@/components/...
)import module
from module import name
from .module import name
from ..module import name
require 'module'
require_relative './module'
mod module;
use crate::module;
use super::module;
use self::module;
local-only server
The server can only run on the client's local machine because it depends on local resources.
分析指定目录中跨多种编程语言的源代码依赖关系,以识别文件关系,协助依赖关系管理和项目结构理解。
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/owayo/mcp-source-relation'
If you have feedback or need assistance with the MCP directory API, please join our Discord server