Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions mcpb/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,15 @@
},
{
"name": "execute_code",
"description": "Execute Python code against the OpenSTAAD API in a sandboxed environment."
"description": "Execute Python code against the OpenSTAAD API in a sandboxed environment. Supports a progress callback and long-running/background execution."
},
{
"name": "get_status",
"description": "Check the connection to STAAD.Pro. Returns connection state, STAAD version, model path, and analysis status."
"description": "Check the connection to STAAD.Pro. Returns connection state, STAAD version, model path, analysis status, and whether the executor is busy."
},
{
"name": "get_job_result",
"description": "Wait for a background `execute_code` job (started with `mode='poll'`) and return its progress or final result."
}
],
"tools_generated": false,
Expand Down
14 changes: 10 additions & 4 deletions mcpb/openstaad-mcp.spec
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ STAAD skills content.
import os
from pathlib import Path

from PyInstaller.utils.hooks import copy_metadata
from PyInstaller.utils.hooks import collect_all, copy_metadata

block_cipher = None

Expand All @@ -30,11 +30,16 @@ if skills_dir.exists():
# Include distribution metadata so frozen builds can resolve it.
package_metadata = copy_metadata("fastmcp")

# fastmcp bundles `docket`, whose memory client backend dynamically imports
# `burner_redis` (a native extension) via importlib at lifespan startup.
# PyInstaller's static analysis misses this, so collect it explicitly.
burner_datas, burner_binaries, burner_hiddenimports = collect_all("burner_redis")

a = Analysis(
[str(ROOT / "src" / "openstaad_mcp" / "main.py")],
pathex=[str(ROOT / "src")],
binaries=[],
datas=skills_data + package_metadata,
binaries=burner_binaries,
datas=skills_data + package_metadata + burner_datas,
hiddenimports=[
"openstaad_mcp",
"openstaad_mcp.server",
Expand All @@ -45,7 +50,8 @@ a = Analysis(
"openstaadpy.os_analytical",
"uvicorn",
"fastmcp",
],
]
+ burner_hiddenimports,
hookspath=[],
hooksconfig={},
runtime_hooks=[],
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ classifiers = [
"License :: OSI Approved :: MIT License",
]
dependencies = [
"fastmcp>=3.2.3,<4",
"fastmcp[tasks]>=3.2.3,<4",
"packaging>=24",
"starlette>=1.0.0,<2.0.0",
"pydantic>=2,<3",
Expand Down
Loading