This document provides detailed information about all configuration options available for the Code-Reasoning MCP Server. It covers command-line options, configuration file formats, and customization options for various components.
The Code-Reasoning MCP Server supports the following command-line options:
| Option | Description | Default | Example |
|---|---|---|---|
--debug |
Enable debug logging with more verbose output | false |
code-reasoning --debug |
--help, -h |
Show help information | - | code-reasoning --help |
--config-dir |
Specify the configuration directory | config |
code-reasoning --config-dir=/path/to/config |
Basic usage:
code-reasoningDebug mode:
code-reasoning --debugHelp information:
code-reasoning --helpClaude Desktop uses a configuration file to manage MCP server settings. This file is located at:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"code-reasoning": {
"command": "code-reasoning",
"args": ["--debug"]
}
}
}| Option | Description | Type | Required |
|---|---|---|---|
command |
The command to run the MCP server | String | Yes |
args |
Command-line arguments to pass to the server | Array of strings | No |
VS Code integration can be configured in two ways:
-
User Settings (applies to all workspaces):
- Open VS Code settings:
Ctrl+Shift+P(orCmd+Shift+Pon macOS) and typePreferences: Open Settings (JSON) - Add MCP configuration
- Open VS Code settings:
-
Workspace Settings (applies to current workspace only):
- Create a
.vscode/mcp.jsonfile in your workspace
- Create a
{
"mcp": {
"servers": {
"code-reasoning": {
"command": "code-reasoning",
"args": ["--debug"]
}
}
}
}{
"servers": {
"code-reasoning": {
"command": "code-reasoning",
"args": ["--debug"]
}
}
}| Option | Description | Type | Required |
|---|---|---|---|
command |
The command to run the MCP server | String | Yes |
args |
Command-line arguments to pass to the server | Array of strings | No |
The logging system uses direct console.error() calls for logging.
The server uses the following streamlined approach:
- All logs are written to stderr using
console.error() - Debug logs are only shown when the
--debugflag is enabled - The LogLevel enum is still used for compatibility but with simplified implementation
- No log file rotation or custom log directories are supported
Configuration is defined in src/utils/config.ts using the buildConfig helper:
import { buildConfig } from './utils/config.js';
const config = buildConfig(debugFlag ? { debug: true } : undefined);Key characteristics:
- Stateless:
buildConfigreturns a plain object; no runtime persistence or async initialization - Type Safe: The
CodeReasoningConfiginterface documents every option - Override Friendly: Pass a partial object to override defaults (e.g., enable debug mode)
The Code-Reasoning MCP Server includes a prompt system with the following configuration options:
Prompt functionality is controlled through the config object returned by buildConfig:
// Check if prompts are enabled
if (config.promptsEnabled) {
promptManager = new PromptManager(CONFIG_DIR);
console.error('Prompts capability enabled');
}Default configuration values:
{
promptsEnabled: true, // Enables prompt functionality
// Other configuration values...
}The server automatically stores prompt argument values in a JSON file to reduce repetitive data entry:
- Storage Location: Values are stored in
[config_dir]/prompt_values.json - Global Values: Some values like
working_directoryare shared across all prompts - Prompt-Specific Values: Other values are stored for each specific prompt
The structure of the stored values file:
{
"global": {
"working_directory": "/path/to/project"
},
"prompts": {
"architecture-decision": {
"decision_context": "Previous value",
"constraints": "Previous constraints",
"options": "Previous options"
}
// Other prompts...
}
}This system automatically:
- Stores values when prompts are used
- Retrieves values when prompts are applied
- Merges stored values with user-provided values (user input takes precedence)
See the Prompts Guide for more details on using the prompt templates.
The Code-Reasoning MCP Server includes testing functionality for developers who are extending or modifying the server. Most users do not need to be concerned with these testing capabilities.
To run the default quality checks:
npm testThis command currently runs ESLint. For a broader pass that also formats and rebuilds the project, use npm run validate.
For more detailed information about testing, refer to the Testing Guide.