loading…
Search for a command to run...
loading…
A multi-task MCP server for AI code optimization and testing that integrates with VSCode/Cursor, CLI tools, and autonomous agents. It provides tools for running
A multi-task MCP server for AI code optimization and testing that integrates with VSCode/Cursor, CLI tools, and autonomous agents. It provides tools for running tests, generating code improvements, and managing objectives across different environments.
Développer par Barack Ndenga ♥️
Multi-tâche MCP Server pour VSCode/Cursor, CLI, agents autonomes. Optimisation code IA + tests + extensible.
ai-optimizer-mcp runFichier .vscode/mcp.json (multi-servers):
{
"servers": {
"ai-optimizer": {
"command": "python",
"args": ["-m", "ai_optimizer_mcp.server"]
},
"ai-optimizer-dev": {
"command": "python",
"args": ["-m", "ai_optimizer_mcp.cli", "run", "--dev"]
}
}
}
Multi-task: Switch servers en chat!
ai-optimizer-mcp run # Stdio server (pipes)
ai-optimizer-mcp run --dev # Debug
ai-optimizer-mcp --install-mcp # Print mcp.json
# examples/agent.py
import asyncio
from mcp.client.stdio import stdio_client
async def agent_loop():
async with stdio_client(command=["python", "-m", "ai_optimizer_mcp.server"]) as client:
# Multi-task calls
score = await client.call_tool("run_tests", {"code_snippet": code})
improved = await client.call_tool("generate_improvement", {"code": code, "test_result": score})
cp .env.example .env
# OPENAI_API_KEY=sk-...
# OBJECTIVE="Your custom goal"
use_mcp_tool("ai-optimizer", "run_tests", ...)echo code | ai-optimizer-mcp runpython examples/agent.pyExemple Réponse Tool:
run_tests → "Tests passed: score=4/4 (f(2)=4)"
generate_improvement → "def f(x): return 2 * x"
TEST_TIMEOUT=10 in .envrm memory.json--dev ou LOG_LEVEL=DEBUGpip install -e .[dev]
pre-commit install
pytest
| Tool | Args | Use Case |
|---|---|---|
run_tests |
code_snippet: str |
VSCode/CLI test code |
generate_improvement |
code, test_result |
Auto-optimize |
get_objective |
- | Read goal any context |
Apache 2.0 - Multi-task ready! VSCode, CLI, Agents, CI. Contribute!
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"ai-optimizer-mcp": {
"command": "npx",
"args": []
}
}
}PRs, issues, code search, CI status
Database, auth and storage
Reference / test server with prompts, resources, and tools.
Secure file operations with configurable access controls.