Stromy Workflows MCP
Hosted workflow discovery, validation, execution, and lifecycle facade for Stromy, with Entra ID role-based scoping and Azure Container Apps integration.
README
Stromy Workflows MCP
Hosted workflow discovery, validation, execution, and lifecycle facade for Stromy
Built with FastMCP 3.0 and managed with uv.
The facade is deliberately thin and client-agnostic: verified Entra app roles scope every run; Stromy owns the Postgres schema and execution worker; this service performs DML only, validates tiered contracts, and starts ACA Job executions with server-controlled templates.
Tools
list_workflows/describe_workflow/validate_configstart_run/run_status/list_runsresume_run/cancel_run/get_resultsfs_list/fs_readfor the hostedwf-*skills
Tier 1 keys are interview questions, tier 2 keys are caller-overridable
defaults, and tier 3 keys are provider-locked. Client tokens cannot see or set
tier 3. Run ownership comes only from verified client.<slug> roles; a
chat-supplied slug can narrow scope but never grant it.
Setup
uv sync
cp .env.example .env
Run
# stdio (default)
uv run python -m stromy_workflows_mcp.server
# Or via the FastMCP CLI (reads fastmcp.json):
uv run fastmcp run
uv run fastmcp dev # with the Inspector UI
HTTP transport is enabled by default — the server listens on http://127.0.0.1:8000/mcp/.
Project layout
src/stromy_workflows_mcp/server.py FastMCP server entrypoint (instance: `mcp`)
src/stromy_workflows_mcp/config.py Settings via pydantic-settings (reads .env)
components/
├── tools/ @tool functions, auto-discovered
├── resources/ @resource functions, auto-discovered
└── prompts/ @prompt functions, auto-discovered
skills/
└── server-guide/ Skill served via the fs_read/fs_list tools
components/resources/contracts/ Generated from Stromy's authored contracts
tests/ pytest + in-memory FastMCP Client
Components are loaded by FileSystemProvider. Drop a new .py file into any
subdirectory of components/ with a standalone @tool / @resource /
@prompt decorator — no registration required. Set MCP_DEV_MODE=true
in .env to enable hot-reload during development.
Skills
The skills/ directory is served through the generic fs_read / fs_list
tools rather than MCP resources, so skills reach every client (the Claude
app, ChatGPT, etc.) — not only clients that surface resources. Discover skills
with fs_list("skills") and load one with fs_read("skills/<name>/SKILL.md").
The tools are jailed to the configured fs_roots (default ["skills"]); paths
that escape via .., absolute paths, or symlinks are rejected.
Drop a new folder into skills/ with a SKILL.md — no registration needed.
Tests
uv run pytest
uv run ruff check
uv run pyright
python3 scripts/sync_contracts.py --source-root ../../Stromy --check
GET /health is a readiness check, not a cosmetic liveness response. It returns
503 when Postgres is unreachable or schema_meta.version is outside the
facade's supported range. Deploy order is therefore Stromy migration first,
facade second.
Use with Claude Code
The included .mcp.json registers this server as stromy-workflows-mcp for any
Claude Code session opened in this directory.
OAuth (Microsoft Entra ID)
This server supports optional OAuth authentication via Microsoft Entra ID. When enabled, HTTP/SSE clients must authenticate via browser-based Azure login before accessing MCP tools. Stdio transport is unaffected.
Azure App Registration
- Go to Azure Portal → App registrations → New registration
- Name:
stromy-workflows-mcp-oauth - Supported account types: Single tenant (Accounts in this organizational directory only)
- Redirect URI: Web →
http://localhost:8000/auth/callback(update for production) - After creation, go to Authentication and ensure Access tokens and ID tokens are checked under "Implicit grant and hybrid flows"
Token version
Go to Manifest and set "accessTokenAcceptedVersion": 2 (required by FastMCP's AzureProvider).
Expose an API
- Go to Expose an API → Set Application ID URI (accept default
api://<client-id>) - Add a scope:
mcp.access— "Access MCP server" — Admins and users
Client secret
- Go to Certificates & secrets → New client secret
- Copy the Value (not the Secret ID) — this is
OAUTH_CLIENT_SECRET
Configuration
Fill in .env:
OAUTH_ENABLE=true
OAUTH_CLIENT_ID=<Application (client) ID from Overview>
OAUTH_CLIENT_SECRET=<Client secret Value>
OAUTH_TENANT_ID=<Directory (tenant) ID from Overview>
OAUTH_BASE_URL=http://localhost:8000
OAUTH_REQUIRED_SCOPES=mcp.access
Production deployment on Azure Container Apps
Store secrets separately from plain env vars:
APP=stromy-workflows-mcp
RG=rg-stromy-workflows-mcp
az containerapp secret set --name $APP --resource-group $RG \
--secrets oauth-client-secret="<your-secret>"
az containerapp update --name $APP --resource-group $RG \
--set-env-vars \
OAUTH_ENABLE=true \
OAUTH_CLIENT_ID=<client-id> \
OAUTH_TENANT_ID=<tenant-id> \
OAUTH_BASE_URL=https://<your-app-fqdn> \
OAUTH_REQUIRED_SCOPES=mcp.access \
OAUTH_CLIENT_SECRET=secretref:oauth-client-secret
Durable sessions
FastMCP keeps OAuth state — the JWT signing key, dynamically-registered clients, and upstream tokens. The keys it needs (signing key, storage encryption key, storage path) are derived deterministically from the stable OAuth client secret, so they already survive restarts with no configuration. The only ephemeral piece is the store directory contents on the container's local disk, which Azure Container Apps wipes on every cold start / scale-to-zero — invalidating the tokens clients hold and forcing them to re-authenticate.
The fix is infrastructure, not app code: a persistent Azure Files share mounted at
FastMCP's home path (/home/appuser/.local/share/fastmcp) makes the store dir survive
restarts. No Redis, no extra dependencies, no extra env vars, no extra secrets
(ORG-PLAN-073).
On Azure this is provisioned automatically when the server is registered with
enable_oauth = true — the generated terraform fragment carries "oauth_sessions": "files",
which mounts the share. BENIGN under the cost policy (a per-use file share). Nothing to
configure by hand.
Locally, the default on-disk / in-memory store needs no configuration, so
uv run pytest and fastmcp run work out of the box.
Deploy to Azure Container Apps
Production runs on Azure Container Apps with scale-to-zero. CI/CD is handled by .github/workflows/deploy-aca.yml on every push to main.
See azure_aca/README.md for the full setup guide (automated script or manual commands).
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。