Duck Framework MCP

io.github.duckframework由 GitHub 帳號 duckframework 發布v1.2.0更新於 Oct 24, 2026

Official Duck Framework MCP server for AI-assisted development and project scaffolding.

已驗證Streamable HTTP可網頁執行知識與記憶開發者工具

概覽

AI 產生的概覽

Duck Framework 官方 MCP 伺服器,讓助理取得該框架的文件、元件 API、專案與藍圖結構,以及專案腳手架產生能力。

可以做什麼
依分類瀏覽或以模糊搜尋查詢 Duck Framework 文件,並列出與取得官方 AI 指南。查詢內建元件 API,包含匯入路徑、容器型別與支援的關鍵字參數。取得標準專案與藍圖目錄結構,以及藍圖可放置位置的說明。為較複雜的功能擬定實作計畫,提供建議的閱讀順序與步驟。產生新專案或藍圖腳手架,回傳產生的檔案內容與設定,而非直接寫入檔案。檢查元件或頁面程式碼中的已知錯誤,例如錯誤的匯入與 Heading 用法。
適用情境
在使用 AI 助理建置或擴充 Duck Framework 網頁應用時,希望答案根據官方文件與已確認的元件 API,而不是猜測框架細節。也適合依官方慣例建立新的 Duck 專案或藍圖。
執行需求
透過 streamable HTTP 連線至 duckframework.com 的遠端端點;未宣告任何套件、環境變數或請求標頭。reindex_docs 工具需要 admin 權限範圍。
安裝前請注意
reindex_docs 會抓取線上網站地圖重建文件索引,新增並移除頁面,且需要 admin 權限範圍,應視為寫入操作。腳手架工具只回傳產生的程式碼,不寫入檔案。程式碼檢查僅針對已知模式,並非完整的正確性驗證。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Duck Framework MCP,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.duckframework%2Fduckframework-mcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "duck-framework": {
      "type": "http",
      "url": "https://duckframework.com/mcp"
    }
  }
}

README

[Duck Wordmark]

Duck Framework is an open-source Python web framework and web server with a built-in reactive UI engine and real-time WebSocket support.

Build high-performance, flexible, scalable, server-side reactive web applications — without a separate frontend framework or a complex JavaScript stack.

[Python >=3.10] [GitHub stars] [License] [Build Status]

(More badges — security, performance, integrations — on the Features page.)


Quickstart

sh
# Install Duck Frameworkpip install duckframework
# Create a projectduck makeproject myproject
# Change directory to myprojectcd myproject
# Run the webserverpython web/main.py # Optionally use duck runserver

Visit http://localhost:8000 — you're running Duck. For the full walkthrough (install options, project types, what gets generated), see Getting Started.


HTML & Lively Components

Duck includes everything you need to build your UI, while Quirl, the official component library, provides modern, reusable HTML and Lively components for building richer interfaces and interactions.


Documentation

New to Duck? Start with Getting Started, then Understanding the Project. You'll have everything you need to build your first app. Explore the other guides as your project grows.

1. Start Here

2. Build with Duck

  • Native Apps — get started with Duck Native and native app development.
  • Django Integration — add Duck's HTTP/2, HTTPS, and security features to an existing Django project.
  • Features — explore Duck's capabilities and planned features.

3. Resources

  • AI Guidelines — use Duck with AI assistants and AI-assisted development.
  • About & Links — discover real-world apps, useful links, and fun facts.
  • Contributing — learn about contributing, reporting issues, sponsorship, and premium components.
  • Official Documentation — explore the full documentation.

Duck is updated regularly — check the repo for improvements and bug fixes.

來源:README.md,提交 12b74cc

工具

13

fetch_ai_guide

Fetch an official Duck Framework AI guide. Use this after get_ai_guides() to retrieve the full guide content for AI-assisted Duck Framework development. Always read the relevant guide before generating code instead of relying on memory.

輸入參數guide必填

get_ai_guides

List available Duck Framework AI guides. Use this to discover available guides before fetching one with fetch_ai_guide(). Returns guide identifiers and their descriptions.

無需輸入參數。

get_blueprint_locations

Explain where Duck Framework blueprints can be located. Describes the supported blueprint layouts and when each organization approach is appropriate.

無需輸入參數。

get_blueprint_structure

Return the standard internal structure of a Duck Framework blueprint. Use this before generating a new blueprint or adding files to an existing one to understand where components, pages, templates, automations, and views belong.

無需輸入參數。

get_component_api

Look up a built-in Duck Framework component API. Returns the confirmed import path, container type, and supported keyword arguments for a component without requiring the full HTML components guide to be loaded. Use this before using any component that has not already been confirmed. Returns close-name suggestions when the component does not exist.

輸入參數component_name必填

get_project_structure

Return the standard Duck Framework project directory structure. Use this before creating or modifying projects to understand where files and directories belong.

無需輸入參數。

lint_component_code

Check Duck Framework component or page code for common mistakes. Detects known patterns such as incorrect component imports, invalid page imports, incorrect Heading usage, leading-underscore method names, and separator comments. This is a pattern check for known issues, not a complete correctness validator. An empty result only means no known issues were detected. Run this on generated component code before presenting it as final.

輸入參數code必填

list_doc_categories

List all Duck Framework documentation categories and their pages. Use this when browsing available documentation without a specific search query.

輸入參數version

plan_feature

Analyze a Duck Framework feature request and create an implementation plan. Returns relevant documentation to read and a suggested order of operations before writing code. Use this before implementing non-trivial Duck Framework features.

輸入參數request必填version

reindex_docs

Rebuild the Duck Framework documentation index. Crawls the live documentation sitemap for a given version and merges the result in: curated tags/summary/category are preserved, new pages are added, and pages no longer in the sitemap are removed. Requires the admin scope.

輸入參數version

scaffold_blueprint

Scaffold a new Duck Framework blueprint. Generates a blueprint structure containing blueprint.py, views.py, and optional UI, template, and static directories following the documented Duck blueprint conventions. Returns generated file contents and the settings configuration needed to register the blueprint. This tool does not write files.

輸入參數urlpatternsblueprint_name必填enable_static_direnable_template_dirprepend_name_to_urls

scaffold_project

Scaffold a new Duck Framework project. Returns the required CLI commands and generated file contents for supported features with confirmed APIs. Unsupported features return documentation guidance instead of generated code to avoid guessing framework APIs. This tool does not write files. It only returns generated content for the calling client to add to the user's project directory.

輸入參數featuresproject_name必填

search_docs

Fuzzy-search the Duck Framework documentation. Use this whenever the correct documentation page for a feature is unknown. Returns ranked matches containing title, URL, category, summary, and relevance score.

輸入參數query必填top_kversioncategory

版本歷史

1
  1. v1.2.0最新Oct 23, 2026

評分

已滿足適用檢查項的 100%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分