Skip to main content

DcisionAI MCP Client — stdio↔HTTP proxy to the hosted DcisionAI optimization MCP.

Project description

dcisionai-mcp-client

Local stdio MCP server that forwards every JSON-RPC call to the DcisionAI hosted streamable-HTTP MCP endpoint at https://platform.dcisionai.com/mcp (or wherever DCISIONAI_MCP_URL points).

Why this exists

The DcisionAI optimization pipeline (Domain Agent → Consultant Agent → solver → explanation, with the Solver Intelligence layer) runs as a multi-service deployment on Railway. Some MCP hosts (older Claude Desktop / Cursor builds, sandboxed environments) only accept stdio MCP servers launched via command + args. This package is the official stdio↔HTTP bridge for those hosts.

For newer MCP hosts that speak streamable-HTTP natively (Claude Desktop ≥1.0, Cursor ≥0.42, Claude Code ≥0.5), use the direct URL config instead — there's no advantage to running this proxy.

Install

# One-shot launch (recommended for MCP host configs)
uvx --from dcisionai-mcp-client@latest dcisionai-mcp-client

# Or pin a version
uvx --from dcisionai-mcp-client==3.4.0 dcisionai-mcp-client

# Or install globally
pipx install dcisionai-mcp-client
dcisionai-mcp-client

MCP host configuration

Claude Desktop / Cursor / Claude Code

Add to your mcpServers config:

{
  "mcpServers": {
    "dcisionai-optimization": {
      "command": "uvx",
      "args": [
        "--from",
        "dcisionai-mcp-client@latest",
        "dcisionai-mcp-client"
      ],
      "env": {
        "DCISIONAI_MCP_URL": "https://platform.dcisionai.com/mcp"
      },
      "disabled": false,
      "autoApprove": [
        "preflight_optimization",
        "submit_optimization_job",
        "get_job_status",
        "get_job_result",
        "get_job_raw",
        "get_job_thinking",
        "get_hitl_questions",
        "respond_to_hitl",
        "run_optimization_headless"
      ]
    }
  }
}

env.DCISIONAI_MCP_URL is optional — omit to default to production.

URL by environment

Environment URL
dev https://dcisionai-platform-v3-testing.up.railway.app/mcp
qa https://dcisionai-platform-qa.up.railway.app/mcp
prod (default) https://platform.dcisionai.com/mcp

Environment variables

Variable Default Purpose
DCISIONAI_MCP_URL https://platform.dcisionai.com/mcp Remote streamable-HTTP MCP endpoint
DCISIONAI_MCP_TOKEN (unset) Optional Bearer token for the remote endpoint (reserved for future auth)
DCISIONAI_MCP_TIMEOUT_S 60 Per-request HTTP timeout in seconds

What it does NOT do

This proxy is a transport adapter, not a local solver. The optimization work — Domain Agent, codegen, Pyomo/HiGHS solve, Solver Intelligence, explanation generation — all runs on the hosted endpoint. No Anthropic / Pinecone / Neo4j / Voyage / Supabase keys are needed locally. That's the whole point.

If you need a self-contained server (the pipeline running entirely on your machine, BYO credentials, no network dependency on DcisionAI infrastructure), look at dcisionai-mcp-server@3.3.0 (separate heavyweight package). The two coexist; the -client package is the recommended path for the vast majority of integrations.

Tool surface

The 9 tools the remote endpoint exposes (you'll see these in your MCP host's tool panel after a successful handshake):

Tool Use
preflight_optimization Identify missing data before submitting
submit_optimization_job Kick off an async solve
get_job_status Poll progress
get_job_result Fetch executive-summary formatted result
get_job_raw Fetch complete unformatted JSON (for downstream tooling)
get_job_thinking Fetch agent reasoning trace
get_hitl_questions When status=needs_input, fetch missing-data questions
respond_to_hitl Submit answers and resume a paused job
run_optimization_headless Single-call: submit + KB auto-answer + solve + return result

Tool surface is authoritative on the server (mcp/public/server.py); the proxy doesn't filter or transform — whatever the remote advertises is what your host sees.

Architecture

┌─────────────────┐   stdio JSON-RPC   ┌─────────────────────────┐
│   MCP host      │ ◄────────────────► │   dcisionai-mcp-client  │
│ (Claude Desktop,│                    │   (this package)        │
│  Cursor, etc.)  │                    └────────────┬────────────┘
└─────────────────┘                                 │ HTTPS POST + SSE
                                                    │ /mcp
                                                    ▼
                                        ┌─────────────────────────┐
                                        │   DcisionAI platform    │
                                        │   (Railway / Cloud)     │
                                        │  Domain → Consultant →  │
                                        │   solver → explain      │
                                        └─────────────────────────┘

Each stdin line is a JSON-RPC message. The proxy POSTs it, captures Mcp-Session-Id from the initialize response, forwards it on subsequent requests, parses the SSE response body, writes the JSON-RPC payload to stdout.

License

Proprietary. © DcisionAI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dcisionai_mcp_client-3.6.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dcisionai_mcp_client-3.6.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file dcisionai_mcp_client-3.6.0.tar.gz.

File metadata

  • Download URL: dcisionai_mcp_client-3.6.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for dcisionai_mcp_client-3.6.0.tar.gz
Algorithm Hash digest
SHA256 95339acd4b6a5c338584763e697e9477efa28613e7eaf5c92cf2a759ad85cbe7
MD5 9748c3ba879f6f891021b04a91558d7b
BLAKE2b-256 be17c66a21c7cfdc319e8d434e5a41f17d31ee910dee549c760d349e6a0e432b

See more details on using hashes here.

File details

Details for the file dcisionai_mcp_client-3.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for dcisionai_mcp_client-3.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9ecebe22ff92a300048999b9ad8e2b22f6fc84dfbda4286f4991832c082c51a8
MD5 21377d43a769cc160de0bf73fa02f5e9
BLAKE2b-256 135a62208fabab39305124f8a5a5245c1cef452518863a2db6806fa7b8ed677a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page