AI Optimizer MCP
AI Optimizer MCP 🧠🔧 - Многозадачный MCP-сервер
Разработано Barack Ndenga ♥️
Подробности
Многозадачный MCP-сервер для VSCode/Cursor, CLI и автономных агентов. Оптимизация кода с помощью ИИ + тестирование + расширяемость.
Транспорты: Stdio (VSCode), subprocess, HTTP (в будущем)
Варианты использования: Чат в VSCode, циклы агентов, CI/CD, удаленные серверы
Безопасность: Переменные окружения, выполнение в песочнице
Related MCP server: VegaMCP
Манифест (Многозадачные возможности)
🛠️ 3+ инструмента: Тестирование/оптимизация кода/цели (+расширяемые)
🔌 VSCode/Cursor: нативный mcp.json
🖥️ CLI Standalone:
ai-optimizer-mcp run🤖 Агенты: цикл examples/agent.py
⚙️ Мультисреда: Local/dev/prod через .env
📊 Память/История: постоянный JSON
🔄 Итеративные циклы: Автоматическое улучшение
Кроссплатформенная конфигурация
1. VSCode/Cursor (Рекомендуется)
Файл .vscode/mcp.json (несколько серверов):
{
"servers": {
"ai-optimizer": {
"command": "python",
"args": ["-m", "ai_optimizer_mcp.server"]
},
"ai-optimizer-dev": {
"command": "python",
"args": ["-m", "ai_optimizer_mcp.cli", "run", "--dev"]
}
}
}Многозадачность: переключение серверов в чате!
2. CLI / Скрипты / Агенты
ai-optimizer-mcp run # Stdio server (pipes)
ai-optimizer-mcp run --dev # Debug
ai-optimizer-mcp --install-mcp # Print mcp.json3. Автономные агенты / Subprocess
# 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})Предварительные требования (.env)
cp .env.example .env
# OPENAI_API_KEY=sk-...
# OBJECTIVE="Your custom goal"Многозадачное использование
Чат в VSCode:
use_mcp_tool("ai-optimizer", "run_tests", ...)CLI Pipe:
echo code | ai-optimizer-mcp runЦикл агента:
python examples/agent.pyCI/CD: Subprocess в GitHub Actions/Jenkins
Пример ответа инструмента:
run_tests → "Tests passed: score=4/4 (f(2)=4)"
generate_improvement → "def f(x): return 2 * x"Устранение неполадок в мультисреде
VSCode: Перезагрузите окно после изменения mcp.json
Нет API-ключа: ValueError → Проверьте .env
Тайм-аут:
TEST_TIMEOUT=10в .envПамять:
rm memory.jsonЛоги:
--devилиLOG_LEVEL=DEBUG
Разработка
pip install -e .[dev]
pre-commit install
pytestИнструменты MCP (Расширяемые)
Инструмент | Аргументы | Вариант использования |
|
| Тестирование кода в VSCode/CLI |
|
| Автоматическая оптимизация |
| - | Чтение цели в любом контексте |
Apache 2.0 - Готов к многозадачности! VSCode, CLI, Агенты, CI. Присоединяйтесь к разработке!
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
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 Connectors
MCP server for building and testing AI agents with multi-model experimentation and insights.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA lightweight MCP server that enhances AI agents with tools for codebase analysis, task delegation to sub-agents, multi-agent coordination through chatrooms, and project todo management.-
- AlicenseCqualityDmaintenanceA production-grade MCP server providing an autonomous AI agent swarm, persistent semantic memory, browser automation, multi-model reasoning, and 78+ tools for AI-first testing and development.63MIT
- AlicenseNot gradedqualityDmaintenanceMCP server that enables AI coding agents to communicate, share state, and coordinate work in real time via MCP tools or REST API.1595MIT
- AlicenseNot gradedqualityBmaintenanceMulti-agent AI orchestrator that runs parallel coding agents in isolated sessions with self-improving intelligence, exposed via an MCP server for task execution and management.MIT
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/BarackNdenga/AI-Task-Optimizer-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server