Skip to main content
Glama

Síntesis de herramientas JIT v4

Generación de herramientas bajo demanda impulsada por LLM con aprobación humana y ejecución segura.

Descripción general

Este sistema genera herramientas de TypeScript de forma dinámica utilizando un LLM, requiere aprobación humana antes de la ejecución y las ejecuta en un entorno aislado (sandbox).

Related MCP server: Code Mode MCP Server

Arquitectura

┌─────────────┐     ┌──────────────┐     ┌─────────────┐
│ Synthesizer │────▶│   Approval   │────▶│  Sandbox    │
│   (LLM)     │     │ (Human Gate) │     │ (Execution) │
└─────────────┘     └──────────────┘     └─────────────┘
       │                   │                    │
       ▼                   ▼                    ▼
  Generates TS        Waits for            Runs in
  tool code          human approval       isolated env

Componentes

Archivo

Propósito

synthesizer.ts

Genera código de herramientas usando cualquier LLM compatible con OpenAI

approval.ts

Puerta de control con intervención humana: requiere aprobación antes de la ejecución

sandbox.ts

Entorno de ejecución seguro para el código generado

registry.ts

Persistencia y almacenamiento de herramientas

server.ts

Integración del servidor MCP

config.ts

Gestión de configuración en tiempo de ejecución

Independiente del proveedor

Esta herramienta funciona con cualquier API de LLM compatible con OpenAI:

  • OpenRouter — Más de 100 modelos (Claude, GPT, Llama, etc.)

  • OpenAI — GPT-4o, o3, etc.

  • Ollama — Modelos locales (Llama, Qwen, etc.)

  • LM Studio — Modelos locales con interfaz gráfica

  • Groq — Inferencia rápida

  • Cualquier otra API compatible con OpenAI

Configuración

# Install dependencies
npm install

# Copy environment template
cp .env.example .env

Configura tu proveedor de LLM

Edita .env con los detalles de tu proveedor:

# Option 1: OpenRouter (default - 100+ models)
LLM_API_KEY=your-openrouter-key
LLM_BASE_URL=https://openrouter.ai/api/v1
LLM_MODEL=anthropic/claude-sonnet-4-6

# Option 2: OpenAI direct
LLM_API_KEY=sk-...
LLM_BASE_URL=https://api.openai.com/v1
LLM_MODEL=gpt-5.4

# Option 3: Ollama (local)
LLM_BASE_URL=http://localhost:11434/v1
LLM_MODEL=llama-3.3

# Option 4: Groq
LLM_API_KEY=gsk_...
LLM_BASE_URL=https://api.groq.com/openai/v1
LLM_MODEL=llama-3.3-70b-versatile

Uso

Compilación

npm run build

Prueba con el inspector MCP

La forma más rápida de verificar que todo funciona:

npx @modelcontextprotocol/inspector node dist/server.js

Conexión a clientes MCP

Este servidor funciona con cualquier cliente MCP. Ejemplos de configuración:

Claude Desktop — añádelo a la configuración MCP de tu Claude Desktop:

{
  "mcpServers": {
    "jit-tool-synthesis": {
      "command": "node",
      "args": ["/absolute/path/to/jit-tool-synthesis/dist/server.js"],
      "env": {
        "LLM_API_KEY": "your-api-key",
        "LLM_BASE_URL": "https://openrouter.ai/api/v1",
        "LLM_MODEL": "anthropic/claude-sonnet-4-6"
      }
    }
  }
}

Claude Code:

claude mcp add jit-tools node /absolute/path/to/jit-tool-synthesis/dist/server.js

VS Code (Copilot):

code --add-mcp '{"name":"jit-tools","type":"stdio","command":"node","args":["/absolute/path/to/jit-tool-synthesis/dist/server.js"]}'

Cursor — añádelo a .cursor/mcp.json:

{
  "mcpServers": {
    "jit-tools": {
      "command": "node",
      "args": ["/absolute/path/to/jit-tool-synthesis/dist/server.js"],
      "env": { "LLM_API_KEY": "your-api-key" }
    }
  }
}

Configuración en tiempo de ejecución

Puedes cambiar el proveedor de LLM sin reiniciar:

# View current config
get_config

# Change model at runtime
set_config model=openai/gpt-5.4

Herramientas MCP

Herramienta

Descripción

synthesize_tool

Generar una nueva herramienta a partir de lenguaje natural

test_tool

Probar una herramienta pendiente con parámetros de muestra antes de la aprobación

approve_tool

Activar una herramienta pendiente

reject_tool

Descartar una herramienta pendiente

execute_tool

Ejecutar una herramienta aprobada

list_generated_tools

Listar todas las herramientas aprobadas

get_tool

Ver detalles de la herramienta

remove_tool

Eliminar una herramienta

list_pending

Listar herramientas en espera de aprobación

get_config

Ver la configuración del LLM

set_config

Cambiar el proveedor/modelo de LLM en tiempo de ejecución

Flujo de trabajo

  1. Solicitud — El usuario pide una herramienta (ej. "crea un conversor de colores")

  2. Síntesis — El LLM genera el código de la herramienta

  3. Prueba — Validar con parámetros de muestra antes de confirmar

  4. Aprobación — Un humano revisa y aprueba el código

  5. Ejecución — La herramienta se ejecuta en un entorno aislado

  6. Almacenamiento — Las herramientas aprobadas persisten entre sesiones

Variables de entorno

Variable

Descripción

Predeterminado

LLM_API_KEY

Clave API para tu proveedor

(requerido para la nube)

LLM_BASE_URL

Punto final de la API

https://openrouter.ai/api/v1

LLM_MODEL

Modelo a utilizar

anthropic/claude-sonnet-4-6

También se admite (legado): OPENROUTER_API_KEY, OPENAI_API_KEY, OPENAI_BASE_URL, SYNTHESIZER_MODEL

Seguridad

  • El código generado se ejecuta en un entorno aislado (sandbox) de VM

  • Los patrones bloqueados previenen código peligroso (process, require, eval, etc.)

  • Las claves API no se almacenan en el archivo de configuración

Estado

Listo para producción — Fase 1 completada.

Install Server
F
license - not found
C
quality
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    F
    maintenance
    Enables AI models to dynamically create and execute their own custom tools through a meta-function architecture, supporting JavaScript, Python, and Shell runtimes with sandboxed security and human approval flows.
    5
    10
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables LLMs to interact with MCP servers by writing TypeScript/JavaScript code instead of direct tool calls. Provides a code execution sandbox that accesses MCP servers through HTTP proxy endpoints.
    20
    123
    Apache 2.0
  • F
    license
    A
    quality
    Not graded
    maintenance
    Enables execution of TypeScript code to call MCP tools instead of direct tool calls, reducing token usage by up to 98% while orchestrating complex multi-tool workflows through secure sandboxed code execution.
    1
  • A
    license
    A
    quality
    D
    maintenance
    Enables AI-powered generation of production-ready CTP (ConveniencePro Tool Protocol) tools from natural language descriptions, including tool definitions, implementations, tests, and TypeScript validation.
    5
    12
    MIT

View all related MCP servers

Related MCP Connectors

  • Runtime permission, approval, and audit layer for AI agent tool execution.

  • Create and manage AI agents that collaborate and solve problems through natural language interacti…

  • See, price, and control every tool call your AI agents make: policy checks, cost, and audit tools.

View all MCP Connectors

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/EyeSeeThru/jit-tool-synthesis'

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