MCP Advanced Reasoning Server

by AzDeltaQQ
Verified

local-only server

The server can only run on the client’s local machine because it depends on local resources.

Integrations

  • Supports performance optimization analysis for React components through the advanced reasoning tools

주목할만한 언급 :

https://github.com/Jacck/mcp-reasoner

잭, 아이디어를 주셔서 고맙습니다.

커서 AI를 위한 MCP 고급 추론 서버

Cursor AI의 Claude에 고급 추론 기능을 제공하는 MCP(Model Context Protocol) 서버입니다.

특징

  • 몬테카를로 트리 탐색(MCTS) : 복잡한 문제 해결 과제에 MCTS 추론을 활용합니다.
  • 빔 검색 : 여러 추론 경로를 동시에 탐색합니다.
  • R1 Transformer : 복잡한 문제에 대한 Transformer 기반 추론을 활용합니다.
  • 하이브리드 추론 : 변압기 분석과 MCTS를 결합하여 추론을 강화합니다.
  • 자동 반복 추론 : 모든 다단계 추론 방법은 단일 도구 호출로 모든 추론 단계를 자동으로 완료합니다.

설치

지엑스피1

용법

Cursor AI로 구성

  1. 먼저 서버를 빌드하세요.
    cd mcp-reasoning-server npm run build
  2. 오픈 커서 AI
  3. 설정 > 기능 > MCP로 이동하세요.
  4. "+ 새로운 글로벌 MCP 서버 추가" 버튼을 클릭하세요.
  5. 다음 세부 정보를 입력하세요.
    • 명령 필드에서: node C:\\Users\\[YourUsername]\\path\\to\\mcp-reasoning-server\\dist\\index.js
    • 프로젝트의 dist/index.js 파일에 대한 전체 경로를 사용해야 합니다.
    • Windows 경로에는 이중 백슬래시를 사용하세요
  6. "추가"를 클릭하세요
  7. 목록에서 서버를 찾으세요(처음에는 "비활성화됨"으로 표시됩니다)
  8. "비활성화"를 클릭하여 "활성화"로 전환합니다.
  9. 새로 고침 버튼을 클릭하여 사용 가능한 도구를 로드하세요.
  10. 명령 프롬프트 창이 자동으로 열립니다. 이것은 서버가 실행 중임을 나타냅니다.
  11. 이 명령 프롬프트 창이 열려 있는 한 추론 도구를 사용할 수 있습니다.

또는 C:\Users\[Username]\.cursor\mcp.json (Windows)에서 Cursor MCP 구성 파일을 수동으로 편집할 수 있습니다.

{ "mcpServers": { "mcp-reasoner": { "command": "node", "args": ["C:\\Users\\[Username]\\path\\to\\mcp-reasoning-server\\dist\\index.js"] } } }

중요 참고 사항

  • 서버 실행 중 : 도구는 명령 프롬프트 창이 열려 있고 실행 중인 동안에만 사용할 수 있습니다.
  • 변경 사항 만들기 : 서버 코드를 변경한 경우 재시작하기 전에 npm run build 로 다시 빌드해야 합니다.
  • 다시 시작 : 서버를 다시 시작하려면 명령 프롬프트 창을 닫고 커서 설정에서 서버를 켜거나 끕니다.

추론 도구 사용

Claude와의 Cursor AI 대화에서 추론 도구를 직접 사용할 수 있습니다.

MCTS 추론

MCTS 기반 추론 체인을 시작하려면 /reason-mcts 명령 다음에 쿼리를 사용하세요.

/reason-mcts How can I optimize the performance of this React component?

빔 검색 추론

빔 검색 기반 추론을 위해 /reason-beam 명령을 사용하세요.

/reason-beam What architecture would be best for this microservice system?

R1 변압기 추론

단일 단계 Transformer 기반 추론을 위해 /reason-r1 명령을 사용하세요.

/reason-r1 Analyze the complexity of this algorithm.

하이브리드 추론

/reason-hybrid 명령을 사용하여 Transformer와 MCTS 추론을 결합합니다.

/reason-hybrid How should we approach refactoring this legacy codebase?

클로드 통합

Claude가 이러한 추론 도구를 더 쉽게 사용할 수 있도록 다음과 같은 사용자 지정 지침을 추가할 수 있습니다.

When I use commands like /reason-mcts, /reason-beam, /reason-r1, or /reason-hybrid in chat, interpret them as requests to use the corresponding reasoning tools: /reason-mcts: Use the reason_mcts tool with the text following the command as the query Example: "/reason-mcts How do I solve this problem?" should call the reason_mcts tool /reason-beam: Use the reason_beam tool with the text following the command as the query Example: "/reason-beam What's the best approach for this complex problem?" should call the reason_beam tool /reason-r1: Use the reason_r1 tool with the text following the command as the query Example: "/reason-r1 Analyze this code for performance issues" should call the reason_r1 tool /reason-hybrid: Use the reason_hybrid tool with the text following the command as the query Example: "/reason-hybrid How should we restructure this architecture?" should call the reason_hybrid tool When these commands are used, extract the text after the command as the query parameter and use the corresponding tool to perform advanced reasoning.

개발

프로젝트 구조

  • src/index.ts : 메인 서버 진입점
  • src/tools/reasoning-tools.ts : 추론 도구 구현
  • src/tools/reasoning-wrapper.ts : 커서에서 더 쉽게 사용할 수 있는 명령 래퍼
  • src/utils/errors.ts : 오류 처리 유틸리티

자동 반복 추론

추론 도구는 단일 도구 호출 시 모든 추론 단계를 내부적으로 자동으로 완료하도록 구현됩니다. 각 추론 방법은 다음 프로세스를 따릅니다.

  1. 첫 번째 생각/단계를 초기화하세요
  2. 이후의 생각/단계를 자동으로 생성합니다.
  3. 최종 결과와 함께 모든 생각을 반환하세요

이 접근 방식을 사용하면 여러 번의 수동 도구 호출 없이도 추론 프로세스가 완전히 완료됩니다.

새로운 추론 방법 추가

새로운 추론 방법을 추가하려면 다음 단계를 따르세요.

  1. src/tools/reasoning-tools.ts 에 새로운 도구 구현을 추가합니다.
  2. src/tools/reasoning-wrapper.ts 에 해당 명령 래퍼를 추가합니다.
  3. 기존 도구의 패턴을 따르고 매개변수와 응답 형식을 정의합니다.
  4. 다단계 추론 방법인 경우 자동 반복을 구현합니다.
  5. npm run build 로 프로젝트를 다시 빌드하세요.

제한 사항

이는 시뮬레이션된 추론 서버입니다. 실제 구현에서는 현재 사용되는 플레이스홀더 응답 대신 실제 추론 알고리즘에 연결하게 됩니다.

특허

아이에스씨

-
security - not tested
F
license - not found
-
quality - not tested

몬테카를로 트리 탐색, 빔 탐색, R1 변환기 및 하이브리드 추론 방법을 포함한 고급 추론 기능을 통해 Cursor AI의 Claude를 향상시키는 모델 컨텍스트 프로토콜 서버입니다.

  1. Features
    1. Installation
      1. Usage
        1. Configuring with Cursor AI
        2. Important Notes
        3. Using the Reasoning Tools
        4. Claude Integration
      2. Development
        1. Project Structure
        2. Auto-Iterative Reasoning
        3. Adding New Reasoning Methods
      3. Limitations
        1. License
          ID: ir1gqmzhty