io.github.soluai-spa/solucortex-mcp

السجل الرسمي الذكاء الاصطناعي والوكلاء

Living technical memory for AI agents: recall approved project context, record what was learned.

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

Remote (streamable-http)
Claude Code
claude mcp add --transport http solucortex-mcp 'https://mcp.solucortex.ai/mcp' --header 'Authorization: <Bearer <your SoluCortex project API key (scx_...)>. Get one at https://solucortex.ai.>' --header 'X-Solucortex-Project: <Default project UUID. Optional: the backend infers it from the API key.>'
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "solucortex-mcp": {
            "type": "http",
            "url": "https://mcp.solucortex.ai/mcp",
            "headers": {
                "Authorization": "<Bearer <your SoluCortex project API key (scx_...)>. Get one at https://solucortex.ai.>",
                "X-Solucortex-Project": "<Default project UUID. Optional: the backend infers it from the API key.>"
            }
        }
    }
}
PYPI package solucortex-mcp
Claude Code
claude mcp add solucortex-mcp -e 'SOLUCORTEX_API_KEY=<your solucortex_api_key>' -e 'SOLUCORTEX_PROJECT_ID=<SOLUCORTEX_PROJECT_ID>' -- uvx solucortex-mcp==1.1.2
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "solucortex-mcp": {
            "command": "uvx",
            "args": [
                "solucortex-mcp==1.1.2"
            ],
            "env": {
                "SOLUCORTEX_API_KEY": "<your solucortex_api_key>",
                "SOLUCORTEX_PROJECT_ID": "<SOLUCORTEX_PROJECT_ID>"
            }
        }
    }
}

متغيرات البيئة

  • SOLUCORTEX_API_KEY إلزامي سري SoluCortex project API key (scx_...). Get one at https://solucortex.ai.
  • SOLUCORTEX_PROJECT_ID Default project UUID. Optional: the backend infers it from the API key.

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. SoluCortex MCP
  2. Tools
  3. Requirements
  4. Configuration
  5. Install
  6. Development
  7. Notes
  8. License

SoluCortex MCP

Official Model Context Protocol server for SoluCortex — living technical memory for AI agents.

Connect any MCP-compatible agent (Claude Code, Claude Desktop, Cursor, Codex, Cline, …) to your SoluCortex project so it can recall the decisions, conventions, risks and architecture that matter before it works, and remember what it learns when it's done.

Website: solucortex.ai · Setup guide: solucortex.ai/docs/mcp · Tools reference: solucortex.ai/docs/mcp-tools · PyPI: solucortex-mcp · MCP Registry: io.github.soluai-spa/solucortex-mcp

Tools

ToolWhat it doesWhen to use
solucortex_recallBuilds living context for a task (ranked by semantic similarity + importance)At the start of a task, before touching code
solucortex_searchAd-hoc semantic search over the project's memoriesSpecific questions mid-task
solucortex_rememberRecords a memory (stored approved + traced as an authorized agent)At close, or on a relevant technical decision
solucortex_update_memoryCorrects an existing memory — the edit returns it to pending for human re-approval in the panelWhen a memory is right in spirit but wrong in detail
solucortex_flag_memoryFlags a memory as outdated/incorrect with a reason; a human resolves it in the panelWhen a memory should be reviewed, archived or deleted
solucortex_list_memoriesLists memories without semantic searchQuick inspection / audit

Governance by design: agents propose, humans govern. Agents can never change a memory's status, rewrite its metadata, or delete it — edits go back to pending and deletions only happen from the SoluCortex panel.

Requirements

  • A SoluCortex account and a project API key (prefix scx_) — get it from your SoluCortex dashboard.
  • One of: uv (recommended), Python ≥ 3.10, or Docker.

Configuration

stdio mode (default, local)

The server is configured entirely through environment variables:

VariableRequiredDescription
SOLUCORTEX_API_KEY✅Project API key (scx_…)
SOLUCORTEX_PROJECT_IDoptionalDefault project UUID; if omitted, the backend infers it from the API key
SOLUCORTEX_URLoptionalAPI base URL. Default https://solucortex.ai
HTTP mode (remote, multi-tenant)

Run with MCP_TRANSPORT=http (or --http) to serve Streamable HTTP on $PORT (default 8080) — the mode behind https://mcp.solucortex.ai. Credentials travel with each request and the environment is ignored:

HeaderRequiredDescription
Authorization: Bearer scx_…✅The caller's project API key (401 without it)
X-Solucortex-ProjectoptionalDefault project UUID; if omitted, the backend infers it from the API key

GET /health (and /healthz locally; Cloud Run's frontend intercepts /healthz) responds without auth. The MCP endpoint is /mcp, runs stateless, and shares nothing between requests/tenants.

Never commit your API key. Keep it in your MCP client config's env block or a local .env (see .env.example).

Install

The hosted server at https://mcp.solucortex.ai/mcp speaks Streamable HTTP; your key travels with each request:

claude mcp add --transport http solucortex https://mcp.solucortex.ai/mcp \
  --header "Authorization: Bearer scx_xxx" \
  --header "X-Solucortex-Project: your-project-uuid"

Or in any client with remote MCP support:

{
  "mcpServers": {
    "solucortex": {
      "type": "http",
      "url": "https://mcp.solucortex.ai/mcp",
      "headers": {
        "Authorization": "Bearer scx_xxx",
        "X-Solucortex-Project": "your-project-uuid"
      }
    }
  }
}
Claude Code (local, stdio)
claude mcp add solucortex \
  -e SOLUCORTEX_API_KEY=scx_xxx \
  -e SOLUCORTEX_PROJECT_ID=your-project-uuid \
  -- uvx solucortex-mcp
Claude Desktop / Cursor / Cline (JSON config)

Add to the client's MCP config (claude_desktop_config.json, Cursor mcp.json, etc.):

{
  "mcpServers": {
    "solucortex": {
      "command": "uvx",
      "args": ["solucortex-mcp"],
      "env": {
        "SOLUCORTEX_API_KEY": "scx_xxx",
        "SOLUCORTEX_PROJECT_ID": "your-project-uuid"
      }
    }
  }
}
From a local clone
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-mcp
Docker

Prebuilt image on GHCR:

docker run --rm -i \
  -e SOLUCORTEX_API_KEY=scx_xxx \
  ghcr.io/soluai-spa/solucortex-mcp:latest

Or build it yourself:

docker build -t solucortex-mcp .
docker run --rm -i \
  -e SOLUCORTEX_API_KEY=scx_xxx \
  -e SOLUCORTEX_PROJECT_ID=your-project-uuid \
  solucortex-mcp

The server speaks MCP over stdio, so clients launch it as a subprocess (-i keeps stdin open).

Instructions for your agent (AGENTS.md)

Once connected, give your agent the methodology too: copy templates/AGENTS.md into the root of your repo (it works as AGENTS.md or CLAUDE.md). The MCP handshake already carries these instructions — the file lets you version them alongside your code, extend them with your own conventions, and optionally enable the commented Claude Code hook recipe for guaranteed recall.

Development

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

Notes

  • Memory type vocabulary: the canonical set is architecture, decision, risk, convention, bug_history, tech_debt, sensitive_module, learning, external_integration. Some backends accept an older set (technical_decision, historical_bug, current_state, task_closure). The server passes type through and surfaces HTTP 422 so you can retry with the other set.
  • Never store real secrets in a memory. Record location, type, severity and action taken instead.

License

MIT — see LICENSE.

الأسئلة الشائعة

ما هو io.github.soluai-spa/solucortex-mcp؟

Living technical memory for AI agents: recall approved project context, record what was learned.

كيف أثبّت io.github.soluai-spa/solucortex-mcp؟

يعمل كخادم بعيد. في Claude Code: claude mcp add --transport http solucortex-mcp 'https://mcp.solucortex.ai/mcp' --header 'Authorization: <Bearer <your SoluCortex project API key (scx_...)>. Get one at https://solucortex.ai.>' --header 'X-Solucortex-Project: <Default project UUID. Optional: the backend infers it from the API key.>'. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج io.github.soluai-spa/solucortex-mcp إلى مفتاح API؟

نعم. يتطلب SOLUCORTEX_API_KEY, Authorization, X-Solucortex-Project، وتضبطها في إعداداته.

هل io.github.soluai-spa/solucortex-mcp مفتوح المصدر؟

نعم. شيفرته متاحة على GitHub بترخيص MIT.

من يصون io.github.soluai-spa/solucortex-mcp؟

ينشره soluai-spa. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.