JIT Tool Synthesis
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 envComponentes
Archivo | Propósito |
| Genera código de herramientas usando cualquier LLM compatible con OpenAI |
| Puerta de control con intervención humana: requiere aprobación antes de la ejecución |
| Entorno de ejecución seguro para el código generado |
| Persistencia y almacenamiento de herramientas |
| Integración del servidor MCP |
| 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 .envConfigura 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-versatileUso
Compilación
npm run buildPrueba con el inspector MCP
La forma más rápida de verificar que todo funciona:
npx @modelcontextprotocol/inspector node dist/server.jsConexió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.jsVS 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.4Herramientas MCP
Herramienta | Descripción |
| Generar una nueva herramienta a partir de lenguaje natural |
| Probar una herramienta pendiente con parámetros de muestra antes de la aprobación |
| Activar una herramienta pendiente |
| Descartar una herramienta pendiente |
| Ejecutar una herramienta aprobada |
| Listar todas las herramientas aprobadas |
| Ver detalles de la herramienta |
| Eliminar una herramienta |
| Listar herramientas en espera de aprobación |
| Ver la configuración del LLM |
| Cambiar el proveedor/modelo de LLM en tiempo de ejecución |
Flujo de trabajo
Solicitud — El usuario pide una herramienta (ej. "crea un conversor de colores")
Síntesis — El LLM genera el código de la herramienta
Prueba — Validar con parámetros de muestra antes de confirmar
Aprobación — Un humano revisa y aprueba el código
Ejecución — La herramienta se ejecuta en un entorno aislado
Almacenamiento — Las herramientas aprobadas persisten entre sesiones
Variables de entorno
Variable | Descripción | Predeterminado |
| Clave API para tu proveedor | (requerido para la nube) |
| Punto final de la API | |
| 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.
Maintenance
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
- AlicenseAqualityFmaintenanceEnables 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.510MIT
- AlicenseNot gradedqualityDmaintenanceEnables 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.20123Apache 2.0
- AlicenseAqualityDmaintenanceEnables AI-powered generation of production-ready CTP (ConveniencePro Tool Protocol) tools from natural language descriptions, including tool definitions, implementations, tests, and TypeScript validation.512MIT
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.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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