MCP Source Relation Server
지정된 디렉토리의 src 아래의 소스 코드의 관련성을 해석하는 MCP 서버입니다. 언어별 가져오기 문을 구문 분석하여 파일 간 종속성을 확인합니다. Claude에 통합하면 Claude가 프로젝트 종속성을 신속하게 확인할 수 있으며 관련 파일을 식별하는 데 도움이 됩니다.
기능
다국어 가져오기 분석 지원
TypeScript/JavaScript:
import문,require문Python:
import문,from ... import문Ruby :
require문,require_relative문Rust:
mod선언,use문
tsconfig.json의 경로 별칭(
@/components/...등)에 대응언어별 특수 기능에 대응
Python:
__init__.py, 상대 가져오기Rust:
mod.rs패턴TypeScript: 별칭,
index.tsRuby: 확장자 없이 require
설정
요건
파이썬 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 modulefrom module import namefrom .module import namefrom ..module import name
루비
require 'module'require_relative './module'확장자 없이 require
Rust
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.
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
- Asecurity-licenseAqualityProvides tools for collecting and documenting code from directories.Last updated -47315MIT License
- Asecurity-licenseAqualityAnalyzes codebases to generate dependency graphs and architectural insights across multiple programming languages, helping developers understand code structure and validate against architectural rules.Last updated -6914
- -security-license-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.
- Asecurity-licenseAqualityProvides code context and analysis for AI assistants by extracting directory structures and code symbols using WebAssembly Tree-sitter parsers with zero native dependencies.Last updated -14318MIT License