code-smell-detection-mcp

code-smell-detection-mcp

Enables static analysis and code smell detection by connecting to an external analysis API.

Category
Visit Server

README

code-smell-detection-mcp

MCP server for static analysis / code smell detection. Minimal TypeScript stdio transport implementation and tool registration stubs.

목표

  • CodeVi 내부의 codevi-metrics-server.ts 단일 파일 중심 구현을 분리하여, 독립적인 MCP 도구 서버로 전환.
  • NestJS, TypeORM, MySQL, Docker 구성 등 CodeVi 본체 종속 항목은 제외.
  • 우선 npm 배포/사용을 목표로 함. (PyPI는 추후 Python 포팅 시 고려)

사용법

  1. 설치
npm install
  1. 개발 모드
npm run dev
  1. 빌드
npm run build
  1. 실행 (빌드 후)
npm start

환경 변수

복사하여 .env로 사용:

  • ANALYSIS_API_BASE_URL (예: http://localhost:13000/api)
  • REQUEST_TIMEOUT_MS
  • DEFAULT_TEAM_PROJECT_ID

원본 코드 분리 가이드

  • 복사할 파일: code-vi-internal/code-vi-back/src/mcp/codevi-metrics-server.ts
  • 옮겨야 할 항목:
    • axios 기반 REST 호출 로직 → src/clients/analysis-client.ts로 이동
    • 도구(tool) 등록 부분 → src/tools/*.ts로 분리
    • 타입 정의(인터페이스)만 src/types/*로 이동
    • stdio transport 또는 MCP SDK 초기화 부분 → src/stdio/stdio-transport.ts
  • 제외할 항목:
    • NestJS 모듈/컨트롤러 전체
    • TypeORM 엔티티 / DB 설정
    • Docker/Jenkins 구성
    • 기존 CodeVi 프론트/백엔드 의존성

Cursor / Codex / Claude 실행 예시

  • Cursor/Codex 등의 도구에서 이 MCP를 사용할 때는 stdio를 통해 JSON 메시지를 주고받는 방식을 사용합니다.
  • 메시지 형식 예:
{ "id": "uuid-1234", "tool": "get_latest_pyexamine_result", "params": { "repo": "owner/repo", "ref": "main" } }
  • 응답 형식 예:
{ "id": "uuid-1234", "result": { /* result payload */ } }

향후 작업

  • 원본 codevi-metrics-server.ts에서 실제 핸들러 로직을 옮겨 오기
  • 오류/타입 재검토, 테스트 케이스 추가
  • 필요 시 MCP 공식 SDK(stdio 외)로 transport 전환
  • npm 패키지화 및 배포

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured