Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
NEXUS_CODEX_MODELNoDefault model for the Codex runner
NEXUS_CLAUDE_MODELNoDefault model for the Claude runner
NEXUS_CODEX_MODELSNoComma-separated model list for the Codex runner
NEXUS_GEMINI_MODELNoDefault model for the Gemini runner
NEXUS_CLAUDE_MODELSNoComma-separated model list for the Claude runner
NEXUS_GEMINI_MODELSNoComma-separated model list for the Gemini runner
NEXUS_EXECUTION_MODENoGlobal execution mode (default or yolo)default
NEXUS_OPENCODE_MODELNoDefault model for the OpenCode runner
NEXUS_OPENCODE_MODELSNoComma-separated model list for the OpenCode runner
NEXUS_RETRY_MAX_DELAYNoMaximum seconds to wait between retries60.0
NEXUS_TIMEOUT_SECONDSNoSubprocess timeout in seconds (10 minutes)600
NEXUS_RETRY_BASE_DELAYNoBase seconds for exponential backoff2.0
NEXUS_OUTPUT_LIMIT_BYTESNoMax output size in bytes before temp-file spillover50000
NEXUS_RETRY_MAX_ATTEMPTSNoMax attempts including the first (set to 1 to disable retries)3
NEXUS_TOOL_TIMEOUT_SECONDSNoTool-level timeout in seconds (15 minutes); set to 0 to disable900
NEXUS_CLI_DETECTION_TIMEOUTNoTimeout in seconds for CLI binary version detection at startup30

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tasks
{
  "list": {},
  "cancel": {},
  "requests": {
    "tools": {
      "call": {}
    },
    "prompts": {
      "get": {}
    },
    "resources": {
      "read": {}
    }
  }
}
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
extensions
{
  "io.modelcontextprotocol/ui": {}
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
batch_promptA

Send multiple prompts to CLI runners in parallel (primary tool).

Fans out tasks server-side with asyncio.gather and a semaphore, enabling true parallel runner execution within a single MCP call. Single-task usage is perfectly valid — use prompt for convenience when sending one task.

promptA

Send a prompt to a CLI runner as a background task.

Returns immediately with a task ID. Client polls for results. This prevents timeouts for long operations (YOLO mode: 2-5 minutes).

set_preferencesA

Set persistent preferences that apply to subsequent prompt/batch_prompt calls.

Preferences persist across MCP sessions. Call again to update, or use clear_preferences to reset all fields at once.

To clear a single field while keeping others, pass the corresponding clear_* flag: set_preferences(clear_model=True) # clears model, keeps execution_mode

clear_preferencesA

Clear all persistent preferences, reverting to per-call defaults.

Returns: Confirmation string.

set_model_tiersA

Save model tier classifications.

Client sends sampling/benchmark results; server persists to backing store. Overwrites any previously saved tiers entirely.

Prompts

Interactive templates invoked by user choice

NameDescription
code_reviewReview code for issues with structured findings by severity.
debugSystematic diagnosis: reproduce, isolate, root cause, fix.
quick_triageFast assessment: what's wrong, severity, next step.
researchStructured research with source citations.
second_opinionIndependent review of another AI's output.
implement_featureGenerate feature implementation with quality checklist.
refactorRestructure code while preserving behavior.
bulk_generateExpand a template across variable sets for batch generation.
write_testsGenerate tests for existing code with configurable coverage approach.
compare_modelsCompare outputs from multiple AI models.

Resources

Contextual data attached and managed by the client

NameDescription
get_all_runnersReturn all registered CLI runners with full details. Resource URI: nexus://runners
get_configReturn resolved operational config defaults. Resource URI: nexus://config Returns the fully merged defaults (hardcoded + env var overrides). Excludes execution_mode and model (exposed via nexus://preferences).
get_preferences_resourceReturn current session preferences with config fallback. Resource URI: nexus://preferences If ctx is available and session preferences can be read, returns them with source='session'. Otherwise falls back to resolved config defaults with source='defaults'.
get_tiers_resourceReturn saved model tier classifications. Resource URI: nexus://tiers Returns all persisted tier classifications as a JSON object. Returns an empty dict if no tiers have been saved yet.
get_opencode_statusReturn OpenCode server integration status. Resource URI: nexus://opencode Always registered — reports configured=false when server is not set up, so client agents can understand why OpenCode tools are absent.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/j7an/nexus-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server