Integrations
Analyzes JavaScript files for import statements and require statements to determine file dependencies
Analyzes Python files for import statements, from...import statements, init.py, and relative imports to determine file dependencies
Analyzes Ruby files for require statements and require_relative statements, including those without extensions, to determine file dependencies
MCP Source Relation Server
지정된 디렉토리의 src
아래의 소스 코드의 관련성을 해석하는 MCP 서버입니다. 언어별 가져오기 문을 구문 분석하여 파일 간 종속성을 확인합니다. Claude에 통합하면 Claude가 프로젝트 종속성을 신속하게 확인할 수 있으며 관련 파일을 식별하는 데 도움이 됩니다.
기능
- 다국어 가져오기 분석 지원
- TypeScript/JavaScript:
import
문,require
문 - Python:
import
문,from ... import
문 - Ruby :
require
문,require_relative
문 - Rust:
mod
선언,use
문
- TypeScript/JavaScript:
- tsconfig.json의 경로 별칭(
@/components/...
등)에 대응 - 언어별 특수 기능에 대응
- Python:
__init__.py
, 상대 가져오기 - Rust:
mod.rs
패턴 - TypeScript: 별칭,
index.ts
- Ruby: 확장자 없이 require
- Python:
설정
요건
- 파이썬 3.10 이상
- uv
설치
Claude for Desktop에서 설정
claude_desktop_config.json
에 다음 설정을 추가하십시오.
사용방법
Claude에서 사용
/Users/xxx/GitHub/xxx/ のソースの依存関係を確認して
것처럼 지시하면 작동합니다.
디렉토리를 지정하면 아래의 src
디렉토리를 구문 분석합니다. Choose an integration
source-relation
Attach from MCP
합니다.
출력 형식
해석 결과는 다음과 같은 JSON 형식으로 출력됩니다.
모든 경로는 src
디렉토리를 기준으로 상대 경로로 표시됩니다.
지원되는 가져오기 형식
TypeScript/JavaScript
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'
- 확장자 없이 require
Rust
mod module;
use crate::module;
use super::module;
use self::module;
You must be authenticated.
local-only server
The server can only run on the client's local machine because it depends on local resources.
Tools
Analyzes source code dependencies across multiple programming languages in the specified directory to identify file relationships, assisting in dependency management and project structure understanding.
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityProvides tools for collecting and documenting code from directories.Last updated -48112TypeScriptMIT License
- -securityAlicense-qualityA Model Context Protocol tool for analyzing code repositories, performing security scans, and assessing code quality across multiple programming languages.Last updated -PythonMIT License
- -securityFlicense-qualityAnalyzes codebases to generate dependency graphs and architectural insights across multiple programming languages, helping developers understand code structure and validate against architectural rules.Last updated -5JavaScript
- -securityAlicense-qualityA tool that helps rank codebase files by importance (1-10 scale), track file dependencies, and provide summaries, all accessible through a simple JSON-based interface.Last updated -2TypeScriptGPL 3.0