claude-code-delegate-local
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DELEGATE_LOCAL_KEY | No | Bearer token / API key. Sent as both x-api-key and Authorization: Bearer. | |
| DELEGATE_LOCAL_URL | No | Anthropic-format endpoint. For OpenAI-format models, the server auto-converts the URL to /v1/chat/completions. | http://localhost:4000/v1/messages |
| DELEGATE_LOCAL_MODEL | No | Default model alias if the caller doesn't specify one. | local-qwen-3-6-35b |
| DELEGATE_LOCAL_AGENTS_DIR | No | Where to look for global agent definitions. | ~/.claude/agents |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| 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
| Name | Description |
|---|---|
| delegate_to_local_agentA | Despacha un agente (cargado desde un .md con frontmatter) a un backend OpenAI/Anthropic- compatible con tool calling completo (read_file / write_file / run_bash). Devuelve resultado consolidado. USAR cuando el usuario quiera ejecutar un agente específico en un backend alternativo (local, cloud, etc.) en vez del default del orquestador. El orquestador sigue intacto. Para despachar VARIOS agentes en paralelo en una sola llamada, ver |
| delegate_batchA | Despacha hasta N agentes EN PARALELO en una sola llamada, usando asyncio.gather. Útil cuando el orquestador quiere ejecutar N sub-tareas independientes simultáneamente en backends que soportan paralelismo nativo (e.g., llama.cpp con --parallel 4). USE WHEN you have multiple independent sub-tasks and your backend has parallel slots available (delegate cap = 4 = heavy-coding throughput sweet-spot; oMLX allows 8). With same agent_name reused across tasks, you also benefit from KV cache prefix reuse on the shared system prompt (~30-50% prompt-processing savings). LIMITATION: Sub-agents launched via Claude Code's Agent/Task tool do NOT inherit parent's MCP servers, so this tool cannot be called from within a sub-agent. It only works from the main orchestrator session. Sub-agents that need parallelism should use httpx.AsyncClient + asyncio.gather directly against your LiteLLM endpoint. |
| list_local_agentsA | Lista los agentes disponibles en ~/.claude/agents/ que pueden delegarse con delegate_to_local_agent(). Devuelve nombre, descripción (del frontmatter) y modelo declarado de cada uno. |
| local_backend_statusA | Health check del backend configurado (LiteLLM proxy por default). Devuelve estado, modelos disponibles y latencia básica. Útil antes de delegar para validar que el backend está alcanzable. |
| delegate_to_providerB | Versión genérica: despacha un agente a CUALQUIER endpoint OpenAI/Anthropic-compatible. Usar para rutear explícitamente a providers no configurados como default (DeepSeek, MiniMax, Alibaba, OpenRouter, etc.). |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 5 tools
Tools have distinct purposes, but delegate_to_local_agent and delegate_to_provider are both delegation variants that could be confused; descriptions clarify the difference but conceptual overlap remains.
All tool names follow a consistent snake_case pattern with clear verb_noun structure (delegate_batch, delegate_to_local_agent, list_local_agents, local_backend_status).
5 tools is a reasonable number for a focused delegation server, though it covers the core workflows without feeling overly slim.
Covers delegation, listing, and health check, but misses obvious lifecycle operations like adding/removing agents or providers, and lacks a way to stop or monitor ongoing delegations.