webforJ MCP Server

com.webforj由 webforj.com 發布官方發布者v1.0.0更新於 Oct 24, 2026

WebforJ's MCP server, provides tools, resources, prompts for scaffolding and developing webforJ apps

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

概覽

AI 產生的概覽

面向 webforJ Java 開發的遠端 MCP 伺服器:可檢索文件、產生專案骨架,並驗證 CSS 權杖、主題與類別名稱。

可以做什麼
查詢 webforJ 版本,包含穩定版與開發中的 SNAPSHOT 分支,並取得用來建立新專案及啟動開發伺服器的 Maven archetype 指令。檢索 webforJ 文件、JavaDoc 與程式碼範例,並取得索引文件或範例的完整內容。依標籤或 Java 類別名稱檢視 DWC Web 元件的 CSS 樣式介面,並列出全域設計權杖。驗證 CSS、Java、MDX 或 Markdown 中的設計權杖參照,並依目標版本驗證 Java 完整類別名稱。依主要 HSL 顏色產生主題樣式表,附上註解與建議檔案路徑。
適用情境
適合在開發或維護 webforJ Java Web 應用時使用,讓助理依據官方文件回答、產生專案骨架、在寫入檔案前檢查樣式權杖與類別名稱,或產生初始主題。
執行需求
遠端 streamable HTTP 端點;未宣告驗證、環境變數或請求標頭。助理需要網路存取,若要執行回傳的 Maven 指令還需要主機 shell 工具。
安裝前請注意
伺服器回傳的指令與檔案內容需由助理執行或寫入;寫入磁碟或執行前應檢查產生的主題、樣式表與專案骨架。驗證工具僅針對目標版本的目錄,可能不涵蓋目錄之外的類型。

安裝

在 SourceWeft 中

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

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

交給代理程式安裝

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

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

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

其他 MCP 客戶端

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

{
  "mcpServers": {
    "webforj": {
      "type": "http",
      "url": "https://mcp.webforj.com/mcp"
    }
  }
}

工具

9

get_versions

webforJ Version Catalog

Report the webforJ versions this server knows about. Returns the latest stable release, the current in-development SNAPSHOT (from the main-branch pom.xml), and an array of every major with its highest observed tag plus a `status` flag: "development" (the active SNAPSHOT line — actively changing), "stable" (the latest released major — may still receive minor/patch bugfixes), or "frozen" (older released majors — no new releases will be cut). Each major also carries `dataAvailable` indicating whether the DWC styling tools can answer questions about it. Call this FIRST when you do not know what version the user is on or which version to target — never guess.

輸入參數reasoning必填

create_project

webforJ Project Generator

Returns the Maven archetype command that scaffolds a new webforJ project, plus the follow-up commands to change into the generated directory and start the dev server. Relay the Maven command to the user via the host shell tool without modifying its arguments. Set showOptions=true to list available archetypes and the startforJ web generator instead of producing a command.

輸入參數flavorappName必填groupIdversionarchetypereasoning必填artifactIdshowOptionsarchetypeVersion

get_document

webforJ Full Document Fetcher

Return the full content of an indexed webforJ documentation or sample file. Use this as a follow-up to search_knowledge_base when a search result excerpt is not enough and you need the complete page — migration guides, tutorials, long API docs. Pass the documentId from a search result.

輸入參數id必填reasoning必填

search_knowledge_base

webforJ Knowledge Base Search

Search webforJ documentation, JavaDoc, and code samples for any class, method, annotation, or component, and for CSS styling concepts and rules (palette semantics, seed vs h/s, :not([theme]) pattern, dark mode, ::part limits, table styling). Returns matching snippets with titles, categories, and relevance scores. Call this before claiming any webforJ API exists. For exact --dwc-* custom property or ::part() names on a specific component, use styles_get_component instead; to verify tokens in generated CSS, use styles_validate_tokens. Pass category to narrow the search; if the category is unknown the tool errors with a ranked list of similar names plus the full set of valid categories, so you can retry. In a webforJ project the deliverable is Java (or the Kotlin DSL) using webforJ classes; search for the dedicated webforJ component before falling back to React, JSX, or hand-built HTML.

輸入參數typelimitquery必填reasoning必填categories

styles_get_component

webforJ Component Styling Lookup

Return the real CSS styling surface of a DWC web component: CSS custom properties, shadow parts, reflected attributes, and slots. Accepts a DWC tag ("dwc-button") or a webforJ Java class name ("Button", "TextField"). Use mode="list" for every valid tag, mode="map" for Java -> tag mappings. Call this before writing CSS for a component so you never guess a var or part name. Prefer a typed Java setter on the component over CSS when both can produce the same result.

輸入參數modenamereasoning必填webforjVersion必填

styles_list_tokens

webforJ Global DWC Token Catalog

Return the authoritative list of global --dwc-* tokens (palette seeds, color shades, surfaces, spacing, typography, borders, etc.). Use this for any "which tokens are available for X" question — DO NOT ask the knowledge base to list tokens; it returns prose and the answer will be hallucinated. Filter with "prefix" (e.g. "--dwc-color-primary-") or "contains" (e.g. "seed") to narrow the result. For component-scoped CSS vars like --dwc-button-* use styles_get_component instead. The returned list is verbatim and complete for the filter you passed — do not add, rename, complete, or explain "implied" tokens, and do not reference tokens from other webforJ versions. If a token you expect is missing from the response, it does not exist for that version. Tokens that share a description are returned in a single entry where "names" is the list of every token that has that description; treat each name as a real, independently usable token. When writing CSS, use a token instead of hardcoding colors, spacing, or font sizes.

輸入參數prefixcontainsreasoning必填webforjVersion必填

styles_validate_tokens

webforJ DWC Token Validator

Validate every --dwc-* reference in CSS, Java, MDX, or Markdown text against the real DWC global tokens and component CSS variables. Returns the list of invalid tokens with line numbers and ranked similar-name suggestions. Run this on any generated or edited stylesheet before writing it to disk.

輸入參數content必填reasoning必填webforjVersion必填

fqcn_validate

webforJ FQCN Validator

Validate fully qualified class names against the catalog of types declared in webforJ source for the target version. Accepts either an explicit list of FQCNs or a Java snippet (the handler extracts its import statements). Returns unknown FQCNs with ranked similar-name suggestions. FQCNs outside the webforJ package family are not validated. Run this on any generated or edited Java before writing it to disk.

輸入參數contentimportsreasoning必填webforjVersion必填

create_theme

webforJ Theme Generator

Generate a webforJ theme from a primary HSL color. Returns two content blocks: a JSON summary with theme metadata, @AppTheme / @StyleSheet snippets, and recommended file paths, plus a second text block prefixed "CSS_CONTENT:" containing the full stylesheet.

輸入參數stepreasoning必填themeNameinfoDegreeprimaryColor必填webforjVersion必填tintScaleFactortintBaseSaturationcontrastSensitiveLightnessdetectPrimaryColorCategory

版本歷史

1
  1. v1.0.0最新Sep 16, 2026

評分

已滿足適用檢查項的 83%

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

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

    請宣告包含 README 的 GitHub 儲存庫,或在 OAuth 受保護資源後設資料中提供 resource_documentation。

  • 授權條款不適用

    託管服務按其提供方的條款使用,因此這裡不要求授權條款。此檢查項不計入百分比。