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.0

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.0
File Size Uploaded
ddd23331_afsim_optimization_mcp-0.1.0.tar.gz 33.9 kB Details

Built distribution (wheel)

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

Total release size: 75.0 kB

Release files / ddd23331_afsim_optimization_mcp-0.1.0.tar.gz

Download URL ddd23331_afsim_optimization_mcp-0.1.0.tar.gz
Size 33.9 kB
Tags Source
SHA-256 checksum
How to use checksums
0a8aecd8c0c7d540319612af44426e5f61434e36da661b9605db927e663b9782
BLAKE2b-256 checksum
How to use checksums
3e83102e0431f7099bf1c0801b6e922236b5444be7131b3cf81be93f5f1a83cb
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.0-py3-none-any.whl

Download URL ddd23331_afsim_optimization_mcp-0.1.0-py3-none-any.whl
Size 41.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
916e0ee1f52c37f66a7a980e1d96d71a17e09a4af72f01e65dc33da889920ff1
BLAKE2b-256 checksum
How to use checksums
ebbf933e734366ad64c6d0769076aee70b384e4ec8fd914c3221d62e092710d4
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

0.1.1

2 release files

This release

0.1.0 This release

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