Duck Framework MCP

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

我該用這個嗎

品質與安全性

A
說明品質
95%
結構描述完整度
63%
命名品質
92%
汙染風險
100%
權限相符程度
100%
協定合規性
100%

發現項目(2)

  • LOWTool 'get_blueprint_locations' description lacks action verb在 get_blueprint_locations 中
  • LOWTool 'get_project_structure' description lacks action verb在 get_project_structure 中

根據工具定義與協定合規性的自動化分析。

上下文成本

~1,126Token(工具定義)
~284 B典型回應大小
中等的注意力影響(128k 上下文的 0.88%)

這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。

安裝

一鍵安裝

將以下內容加入你的 `claude_desktop_config.json` 檔案:

{
  "mcpServers": {
    "duckframework-mcp": {
      "url": "https://duckframework.com/mcp"
    }
  }
}

遠端端點

https://duckframework.com/mcpstreamable-http

它能做什麼

工具清單

工具(13)

🟢 唯讀🟡 寫入🔴 刪除⚪ 未知
🟢fetch_ai_guide(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.

輸入結構描述

{
  "type": "object",
  "properties": {
    "guide": {
      "type": "string"
    }
  },
  "required": [
    "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.

輸入結構描述

{
  "type": "object",
  "properties": {},
  "required": []
}
🟢get_blueprint_locations

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

輸入結構描述

{
  "type": "object",
  "properties": {},
  "required": []
}
🟢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.

輸入結構描述

{
  "type": "object",
  "properties": {},
  "required": []
}
🟢get_component_api(component_name)

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.

輸入結構描述

{
  "type": "object",
  "properties": {
    "component_name": {
      "type": "string"
    }
  },
  "required": [
    "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.

輸入結構描述

{
  "type": "object",
  "properties": {},
  "required": []
}
🟢lint_component_code(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.

輸入結構描述

{
  "type": "object",
  "properties": {
    "code": {
      "type": "string"
    }
  },
  "required": [
    "code"
  ]
}
🟢list_doc_categories(version)

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

輸入結構描述

{
  "type": "object",
  "properties": {
    "version": {
      "type": "string"
    }
  },
  "required": []
}
🟡plan_feature(request, version)

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.

輸入結構描述

{
  "type": "object",
  "properties": {
    "request": {
      "type": "string"
    },
    "version": {
      "type": "string"
    }
  },
  "required": [
    "request"
  ]
}
⚪reindex_docs(version)

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.

輸入結構描述

{
  "type": "object",
  "properties": {
    "version": {
      "type": "string"
    }
  },
  "required": []
}
🟡scaffold_blueprint(blueprint_name, urlpatterns, enable_template_dir, enable_static_dir, prepend_name_to_urls)

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.

輸入結構描述

{
  "type": "object",
  "properties": {
    "blueprint_name": {
      "type": "string"
    },
    "urlpatterns": {
      "type": "string"
    },
    "enable_template_dir": {
      "type": "string"
    },
    "enable_static_dir": {
      "type": "string"
    },
    "prepend_name_to_urls": {
      "type": "string"
    }
  },
  "required": [
    "blueprint_name"
  ]
}
🟡scaffold_project(project_name, features)

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.

輸入結構描述

{
  "type": "object",
  "properties": {
    "project_name": {
      "type": "string"
    },
    "features": {
      "type": "string"
    }
  },
  "required": [
    "project_name"
  ]
}
🟢search_docs(query, top_k, category, version)

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.

輸入結構描述

{
  "type": "object",
  "properties": {
    "query": {
      "type": "string"
    },
    "top_k": {
      "type": "string"
    },
    "category": {
      "type": "string"
    },
    "version": {
      "type": "string"
    }
  },
  "required": [
    "query"
  ]
}

社群

為此伺服器評分

證據

近期觀測

已驗證未記錄版本13 個工具