server-backends-and-async
Use for Dash backend selection, async callbacks, WebSocket callbacks, background callbacks, hooks, and MCP server configuration.
- License 许可
- MIT
- 最近更新
- 2026-10-08
- Stars
- ★ 11
- Forks
- 3
01 前言 Front Matter
- name
- server-backends-and-async
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Use for Dash backend selection, async callbacks, WebSocket callbacks, background callbacks, hooks, and MCP server configuration.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/backend-workflows.md2.4 KB
- 参考文档references/background-and-websocket-callbacks.md3.8 KB
- 参考文档references/mcp-and-hooks.md2.4 KB
- 参考文档references/troubleshooting.md3.4 KB
03 SKILL.md 正文
Dash Server Backends and Async Workflows
Use this sub-skill when a task depends on Dash's server runtime rather than the layout/callback API alone: backend selection, async callbacks, background callbacks, WebSocket callbacks, hooks, or MCP exposure.
Start here
- Read references/backend-workflows.md for backend selection, adapters, and constructor/runtime facts.
- Read references/background-and-websocket-callbacks.md for async, background, and WebSocket behavior.
- Read references/mcp-and-hooks.md for hooks and MCP configuration.
- Read references/troubleshooting.md when a backend import or optional-extra path fails.
- Run scripts/inspect_backends.py for a safe optional-backend diagnostic before promising backend coverage.
Main routes
Choose or inspect a backend
Dash defaults to Flask but can also run on FastAPI or Quart. Use this sub-skill when you need to know which backend constructor to use, which extras are needed, or how to create a Dash app around an existing server instance.
Write async or background callbacks
Use this sub-skill for async def callbacks, background=True,
DiskcacheManager, CeleryManager, progress, running, cancel, and cache
keys.
Use WebSocket callbacks
Route WebSocket tasks here when the callback depends on websocket_callbacks,
websocket=True, persistent=True, ctx.websocket, set_props, or browser/
server disconnect behavior. FastAPI is the backend surface that exposes the
WebSocket path in Dash.
Expose hooks or MCP content
Use this sub-skill for hooks.setup, hooks.layout, hooks.route,
hooks.error, hooks.callback, hooks.websocket_connect,
hooks.websocket_message, configure_mcp_server, and mcp_enabled.
Route elsewhere
- Plain callback, layout, page, asset, and clientside app behavior: app callback workflows.
- Component wrapper generation,
dash-renderer, and resource loading: component renderer development. - Test selection and browser command strategy: testing and maintenance.
Validation checklist
Before marking a backend workflow solved:
- The installed extra or backend package is present.
- If the workflow requires Flask async,
dash[async]is installed. - If the workflow requires FastAPI or Quart, the relevant extra is installed and a safe app/backend construction check passes.
- If the workflow requires Diskcache or Celery, the corresponding dependency set is installed and the service requirement is called out when applicable.
- If the workflow uses WebSocket callbacks, the backend and browser/runtime prerequisites are explicitly named.
- If a hook or MCP change alters route exposure, the sub-skill references explain the request/session/content-type rules and the expected failure modes.
04 同仓库更多 Skills
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
python-api
Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP/mAP semantics, and source-style import diagnostics.
file-evaluation
Folder-based PASCAL VOC AP/mAP evaluation from ground-truth and detection text files.
object-detection-metrics
Guides legacy Object-Detection-Metrics PASCAL VOC AP/mAP evaluation from detection text folders and direct Python API classes.
nx-workspace-patterns
Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.