JIT Tool Synthesis
JIT-Tool-Synthese v4
LLM-gestützte On-Demand-Tool-Generierung mit Human-in-the-Loop-Genehmigung und sicherer Ausführung.
Übersicht
Dieses System generiert TypeScript-Tools dynamisch mithilfe eines LLM, erfordert eine menschliche Genehmigung vor der Ausführung und führt sie in einer Sandbox-Umgebung aus.
Related MCP server: Code Mode MCP Server
Architektur
┌─────────────┐ ┌──────────────┐ ┌─────────────┐
│ Synthesizer │────▶│ Approval │────▶│ Sandbox │
│ (LLM) │ │ (Human Gate) │ │ (Execution) │
└─────────────┘ └──────────────┘ └─────────────┘
│ │ │
▼ ▼ ▼
Generates TS Waits for Runs in
tool code human approval isolated envKomponenten
Datei | Zweck |
| Generiert Tool-Code unter Verwendung eines beliebigen OpenAI-kompatiblen LLM |
| Human-in-the-Loop-Gate — erfordert Genehmigung vor der Ausführung |
| Sichere Ausführungsumgebung für generierten Code |
| Tool-Persistenz und -Speicherung |
| MCP-Server-Integration |
| Laufzeit-Konfigurationsmanagement |
Provider-agnostisch
Dieses Tool funktioniert mit jedem OpenAI-kompatiblen LLM-API:
OpenRouter — 100+ Modelle (Claude, GPT, Llama, etc.)
OpenAI — GPT-4o, o3, etc.
Ollama — Lokale Modelle (Llama, Qwen, etc.)
LM Studio — Lokale Modelle mit GUI
Groq — Schnelle Inferenz
Jede andere OpenAI-kompatible API
Einrichtung
# Install dependencies
npm install
# Copy environment template
cp .env.example .envKonfigurieren Sie Ihren LLM-Provider
Bearbeiten Sie die .env mit Ihren Provider-Details:
# 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-versatileVerwendung
Build
npm run buildTest mit MCP Inspector
Der schnellste Weg, um zu überprüfen, ob alles funktioniert:
npx @modelcontextprotocol/inspector node dist/server.jsVerbindung zu MCP-Clients
Dieser Server funktioniert mit jedem MCP-Client. Beispiel-Konfigurationen:
Claude Desktop — zu Ihren Claude Desktop MCP-Einstellungen hinzufügen:
{
"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 — zu .cursor/mcp.json hinzufügen:
{
"mcpServers": {
"jit-tools": {
"command": "node",
"args": ["/absolute/path/to/jit-tool-synthesis/dist/server.js"],
"env": { "LLM_API_KEY": "your-api-key" }
}
}
}Laufzeit-Konfiguration
Sie können den LLM-Provider ändern, ohne neu zu starten:
# View current config
get_config
# Change model at runtime
set_config model=openai/gpt-5.4MCP-Tools
Tool | Beschreibung |
| Generiert ein neues Tool aus natürlicher Sprache |
| Testet ein ausstehendes Tool mit Beispielparametern vor der Genehmigung |
| Aktiviert ein ausstehendes Tool |
| Verwirft ein ausstehendes Tool |
| Führt ein genehmigtes Tool aus |
| Listet alle genehmigten Tools auf |
| Zeigt Tool-Details an |
| Löscht ein Tool |
| Listet Tools auf, die auf Genehmigung warten |
| Zeigt die LLM-Konfiguration an |
| Ändert LLM-Provider/Modell zur Laufzeit |
Workflow
Anfrage — Benutzer fragt nach einem Tool (z. B. "Erstelle einen Farbumwandler")
Synthese — LLM generiert Tool-Code
Test — Validierung mit Beispielparametern vor der Übernahme
Genehmigung — Mensch überprüft und genehmigt den Code
Ausführung — Tool läuft in einer Sandbox-Umgebung
Speicherung — Genehmigte Tools bleiben über Sitzungen hinweg erhalten
Umgebungsvariablen
Variable | Beschreibung | Standard |
| API-Schlüssel für Ihren Provider | (erforderlich für Cloud) |
| API-Endpunkt | |
| Zu verwendendes Modell | anthropic/claude-sonnet-4-6 |
Ebenfalls unterstützt (Legacy): OPENROUTER_API_KEY, OPENAI_API_KEY, OPENAI_BASE_URL, SYNTHESIZER_MODEL
Sicherheit
Generierter Code läuft in einer isolierten VM-Sandbox
Blockierte Muster verhindern gefährlichen Code (process, require, eval, etc.)
API-Schlüssel werden nicht in der Konfigurationsdatei gespeichert
Status
Produktionsbereit — Phase 1 abgeschlossen.
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