solucortex-mcp
OfficialSoluCortex MCP
Официальный Model Context Protocol сервер для SoluCortex — живая техническая память для ИИ-агентов.
Подключите любого MCP-совместимого агента (Claude Code, Claude Desktop, Cursor, Codex, Cline, …) к вашему проекту SoluCortex, чтобы он мог вспоминать решения, соглашения, риски и архитектуру, которые важны до начала работы, и запоминать то, что узнает по завершении.
Инструменты
Инструмент | Что делает | Когда использовать |
| Формирует живой контекст для задачи (ранжированный по семантической близости + важности) | В начале задачи, до касания кода |
| Точечный семантический поиск по памяти проекта | Конкретные вопросы в середине задачи |
| Записывает воспоминание (хранится как | При завершении или при значимом техническом решении |
| Перечисляет воспоминания без семантического поиска | Быстрая проверка / аудит |
Related MCP server: Mindtrail
Требования
Аккаунт SoluCortex и API-ключ проекта (префикс
scx_) — получите его в панели SoluCortex.Один из вариантов:
uv(рекомендуется), Python ≥ 3.10 или Docker.
Конфигурация
stdio-режим (по умолчанию, локальный)
Сервер полностью настраивается через переменные окружения:
Переменная | Обязательность | Описание |
| ✅ | API-ключ проекта ( |
| рекомендуется | UUID проекта по умолчанию (можно переопределить в каждом вызове) |
| необязательно | Базовый URL API. По умолчанию |
HTTP-режим (удалённый, мультитенантный)
Запустите с MCP_TRANSPORT=http (или --http), чтобы обслуживать Streamable HTTP на $PORT (по умолчанию 8080) — это режим, используемый на https://mcp.solucortex.ai. Учётные данные передаются с каждым запросом, а переменные окружения игнорируются:
Заголовок | Обязательность | Описание |
| ✅ | API-ключ проекта вызывающей стороны (без него — 401) |
| рекомендуется | UUID проекта по умолчанию для сессии |
GET /health (и /healthz локально; фронтенд Cloud Run перехватывает /healthz) отвечает без аутентификации. Конечная точка MCP — /mcp, работает без сохранения состояния и ничего не разделяет между запросами/тенантами.
Никогда не коммитьте свой API-ключ. Держите его в блоке env конфигурации вашего MCP-клиента или в локальном .env (см. .env.example).
Установка
Удалённо (рекомендуется — ничего устанавливать не нужно)
Размещённый сервер на https://mcp.solucortex.ai/mcp поддерживает Streamable HTTP; ваш ключ передаётся с каждым запросом:
claude mcp add --transport http solucortex https://mcp.solucortex.ai/mcp \
--header "Authorization: Bearer scx_xxx" \
--header "X-Solucortex-Project: your-project-uuid"Или в любом клиенте с поддержкой удалённого MCP:
{
"mcpServers": {
"solucortex": {
"type": "http",
"url": "https://mcp.solucortex.ai/mcp",
"headers": {
"Authorization": "Bearer scx_xxx",
"X-Solucortex-Project": "your-project-uuid"
}
}
}
}Claude Code (локально, stdio)
claude mcp add solucortex \
-e SOLUCORTEX_API_KEY=scx_xxx \
-e SOLUCORTEX_PROJECT_ID=your-project-uuid \
-- uvx --from git+https://github.com/soluai-spa/solucortex-mcp solucortex-mcp(После публикации в PyPI замените команду на uvx solucortex-mcp.)
Claude Desktop / Cursor / Cline (JSON-конфигурация)
Добавьте в конфигурацию MCP клиента (claude_desktop_config.json, Cursor mcp.json и т. д.):
{
"mcpServers": {
"solucortex": {
"command": "uvx",
"args": ["--from", "git+https://github.com/soluai-spa/solucortex-mcp", "solucortex-mcp"],
"env": {
"SOLUCORTEX_API_KEY": "scx_xxx",
"SOLUCORTEX_PROJECT_ID": "your-project-uuid"
}
}
}
}Из локального клона
git clone https://github.com/soluai-spa/solucortex-mcp
cd solucortex-mcp
cp .env.example .env # fill in your key
./run.sh # loads .env, then runs via uv
# or, with SOLUCORTEX_* already exported: uv run solucortex-mcpDocker
docker build -t solucortex-mcp .
docker run --rm -i \
-e SOLUCORTEX_API_KEY=scx_xxx \
-e SOLUCORTEX_PROJECT_ID=your-project-uuid \
solucortex-mcpСервер общается по MCP через stdio, поэтому клиенты запускают его как подпроцесс (-i держит stdin открытым).
Разработка
uv sync
uv run solucortex-mcp # run (stdio)
MCP_TRANSPORT=http uv run solucortex-mcp # run (HTTP on :8080)
uv run pytest # test suite
npx @modelcontextprotocol/inspector uv run solucortex-mcp # interactive testПримечания
Словарь значений
typeпамяти: канонический набор —architecture, decision, risk, convention, bug_history, tech_debt, sensitive_module, learning, external_integration. Некоторые бэкенды принимают более старый набор (technical_decision, historical_bug, current_state, task_closure). Сервер пропускаетtypeкак есть и возвращаетHTTP 422, чтобы вы могли повторить запрос с другим набором.Никогда не храните настоящие секреты в памяти. Записывайте вместо этого местоположение, тип, серьёзность и предпринятые действия.
Лицензия
MIT — см. LICENSE.
Available Tools
4 toolssolucortex_list_memoriesARead-onlyInspect
List the project's memories without semantic search (GET /memories).
Useful for quick inspection/audit or to confirm a just-created memory was stored. Does not consume OpenAI quota.
Inputs: limit, project_id. Returns: object
solucortex_recallARead-onlyInspect
Build living context for a task (POST /context/build).
Call this at the START of a task, before touching code: returns approved, active memories (decisions, conventions, risks, sensitive modules, architecture) ranked by semantic similarity + importance. Uses OpenAI embeddings (slower, 20 req/min).
Inputs: query (required), project_id. Returns: object
solucortex_rememberAInspect
Record a memory in SoluCortex (POST /memories).
Call when closing a task or making a relevant technical decision. As an authorized agent (Bearer api_key), the memory is stored with status 'approved' and traced. Never store real secrets: if you find one, record location/type/severity and action taken, with a redacted reference.
Inputs: type (required), title (required), content (required), importance, +1 more. Returns: object
solucortex_searchARead-onlyInspect
Ad-hoc semantic search of memories (POST /search/semantic).
Use for specific questions during a task (e.g. 'how is authentication implemented?'), distinct from recall which builds the full startup context. Uses OpenAI embeddings (20 req/min).
Inputs: query (required), limit, project_id. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Mostly distinct: recall and search both perform semantic retrieval, but their use cases are clearly separated (start-of-task context building vs. ad-hoc queries). list_memories and remember are unambiguously different. The overlap is minor and well-documented.
All tools share the solucortex_ prefix and use lowercase snake_case, but the naming convention is mixed: recall, search, and remember are single verbs, while list_memories includes an object. Consistent enough to be predictable.
Four tools cover the core memory interactions (list, recall, search, record) without unnecessary bloat. The count is well-scoped for a memory-oriented MCP server.
The set provides create and multiple read/search paths, but lacks update/delete or memory-status management. This creates a moderate lifecycle gap, though the primary agent workflows (build context, ask questions, record decisions) are covered.
Maintenance
Related MCP Connectors
Persistent memory, knowledge graph, task management and more for AI agents via MCP.
Project memory, documentation and controlled secret access for AI coding agents.
Shared memory for connected AI tools. Projects, rules and skills over MCP. OAuth or API key.
Hosted long-term memory for AI agents via MCP. Recalld updates facts as information changes and retrieves relevant context. Connect with a Recalld EU account.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceProvides coding agents with governed semantic memory and code-graph context via MCP, enabling code-linked recall, blast-radius impact analysis, and lifecycle-aware memory management.528 PyPI3Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables coding agents to persistently remember, recall, and forget facts, preferences, and decisions through MCP, keeping project-scoped and personal memory available across sessions and clients.1MIT
- FlicenseNot gradedqualityAmaintenanceEnables AI coding agents to store, search, and recall persistent project and cross-project memories locally over MCP, keeping architectural decisions, conventions, and error patterns available across sessions. Also optionally exposes a task server for autonomous task execution driven by that same memory store.-
- FlicenseNot gradedqualityAmaintenanceEnables AI coding agents to store and retrieve persistent project and cross-project memory over MCP, so decisions, preferences, error patterns, and guidelines survive across sessions. Searches that memory semantically and locally, with an optional task queue that reuses the same context for autonomous execution.-