MCPcopy Index your code
hub / github.com/Kuon-dev/advanced-reason-mcp

github.com/Kuon-dev/advanced-reason-mcp @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
23 symbols 48 edges 7 files 2 documented · 9%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Advanced Reason MCP

A tool for advanced reasoning and reflection using the Gemini API.

Claude Seq Thinking Internal Thought Gemini Critique Deepseek Critique

Requirements

  • Node.js 20.17 or higher
  • Gemini API key
  • Open Router API key

Installation

  1. Clone the repository:
git clone git@github.com:Kuon-dev/advanced-reason-mcp.git
cd advanced-reason-mcp
  1. Install dependencies
npm install

Building

Build the project using:

node ./bin/build.mjs

This will create the necessary files in the dist directory.

Configuration

The tool can be configured through the claude_desktop_config.json settings in your project configuration:

{
  "advanced-reflection-reason": {
    "command": "node",
    "args": ["/path/to/your/advanced-reason-mcp/dist/index.js"],
    "env": {
      "GEMINI_API_KEY": "your-api-key-here",
      "OPENROUTER_API_KEY": "your-api-key-here",
      "OPENROUTER_MODEL": "your-selected-model-here"
    }
  }
}

OPENROUTER_MODEL env variable is optional. Defaults to deepseek/deepseek-r1:free if left empty.

Limitations

  • AI models does not have access to your project context, do be aware
  • If the task is too complex, it is possible for the content to get really long, in which the MCP will timeout and return no response

License

This project is MIT licensed.

You can create your own project and modifying it freely without notifying me

Core symbols most depended-on inside this repo

formatCodeContext
called by 2
src/modules/code/context.ts
detectToolRequest
called by 2
src/modules/sequential/utils.ts
main
called by 1
src/index.ts
isThinkingTooSimilar
called by 1
src/modules/providers/google-ai.ts
generateThoughtWithGemini
called by 1
src/modules/providers/google-ai.ts
isThinkingTooSimilar
called by 1
src/modules/providers/openrouter.ts
getCompletionWithReasoning
called by 1
src/modules/providers/openrouter.ts
generateThoughtWithOpenRouter
called by 1
src/modules/providers/openrouter.ts

Shape

Method 11
Class 6
Function 5
Enum 1

Languages

TypeScript100%

Modules by API surface

src/modules/providers/openrouter.ts7 symbols
src/modules/providers/google-ai.ts6 symbols
src/modules/sequential/index.ts5 symbols
bin/build.mjs2 symbols
src/modules/sequential/utils.ts1 symbols
src/modules/code/context.ts1 symbols
src/index.ts1 symbols

For agents

$ claude mcp add advanced-reason-mcp \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact