Skip to main content
Glama
fegone
by fegone

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DELEGATE_LOCAL_KEYNoBearer token / API key. Sent as both x-api-key and Authorization: Bearer.
DELEGATE_LOCAL_URLNoAnthropic-format endpoint. For OpenAI-format models, the server auto-converts the URL to /v1/chat/completions.http://localhost:4000/v1/messages
DELEGATE_LOCAL_MODELNoDefault model alias if the caller doesn't specify one.local-qwen-3-6-35b
DELEGATE_LOCAL_AGENTS_DIRNoWhere to look for global agent definitions.~/.claude/agents

Capabilities

Features and capabilities supported by this server

CapabilityDetails
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
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_batch.

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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/fegone/claude-code-delegate-local'

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