Skip to main content

ddd23331-afsim-optimization-mcp

ddd23331-afsim-optimization-mcp packages the governed AFSIM planning Tool suite for Python, FastAPI, and MCP clients. It exposes the same eight domain Tools through a Streamable HTTP MCP server, an SSE MCP server for local development, and a FastAPI OpenAPI surface for Dify.

Install

pip install ddd23331-afsim-optimization-mcp

For development and package tests:

pip install "ddd23331-afsim-optimization-mcp[test]"

Run an MCP server

The default command starts local SSE transport on 127.0.0.1:8001.

ddd23331-afsim-optimization-mcp

For remote Streamable HTTP MCP:

MCP_TRANSPORT=streamable_http MCP_BIND_HOST=127.0.0.1 MCP_PORT=8001 ddd23331-afsim-optimization-mcp

Set MCP_STAGING_API_KEY to require Authorization: Bearer <key>. The default scope is the read-only scenario.read; expand MCP_ALLOWED_SCOPES only after controlled staging validation.

FastAPI / Dify

Run the OpenAPI service with:

uvicorn mcpdemo.main:app --host 127.0.0.1 --port 8000

For Dify, import /openapi/domain-tools.json. It deliberately publishes only the eight registered domain Tools and excludes legacy compatibility and knowledge routes. Configure ADAPTER_STAGING_API_KEY as a Bearer credential.

Included Tool IDs

scenario_context, validate_object, evaluate_coa_quality, evaluate_effectiveness, build_task_timeline, validate_resources_and_state, render_oplan_artifacts, and afsim_execution.

The bundled runner uses deterministic development fixtures. Its afsim_execution output is explicitly marked runner_mode=SIMULATED; it is not real AFSIM execution evidence.

ModelScope Hosted MCP

ModelScope managed deployment launches this package over stdio. After this package has been published to PyPI, use the following Server config in the repository root README or in ModelScope custom creation:

{
  "command": "uvx",
  "args": ["ddd23331-afsim-optimization-mcp"],
  "env": {
    "MCP_TRANSPORT": "stdio",
    "MCP_ALLOWED_SCOPES": "scenario.read"
  }
}

The stdio transport is intended for managed MCP runtimes. Use MCP_TRANSPORT=streamable_http with an HTTP server only when a remote /mcp endpoint is required.

Release files for ddd23331-afsim-optimization-mcp 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ddd23331-afsim-optimization-mcp 0.1.1
File Size Uploaded
ddd23331_afsim_optimization_mcp-0.1.1.tar.gz 33.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ddd23331-afsim-optimization-mcp 0.1.1
File Interpreter ABI Platform
ddd23331_afsim_optimization_mcp-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 75.0 kB

Release files / ddd23331_afsim_optimization_mcp-0.1.1.tar.gz

Download URL ddd23331_afsim_optimization_mcp-0.1.1.tar.gz
Size 33.9 kB
Tags Source
SHA-256 checksum
How to use checksums
473d5ce536a7d082ea7f3898f045984f411f2a54c97c6befb0b3b5433ab43bf8
BLAKE2b-256 checksum
How to use checksums
761dd50ebc8071b7b767e2c08c857791816c1bffe052ace07fcc60899e065bc5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / ddd23331_afsim_optimization_mcp-0.1.1-py3-none-any.whl

Download URL ddd23331_afsim_optimization_mcp-0.1.1-py3-none-any.whl
Size 41.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
02e16fcce86cac29c6659ece8982e609622abe9837215ae23d13d5bd2f905a74
BLAKE2b-256 checksum
How to use checksums
99ab78bac561a17e6792170d3d597a32c728e21799ee95ff58c63235b8a1ffe3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page