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。

  • 许可证不适用

    托管服务按其提供方的条款使用,因此这里不要求许可证。此检查项不计入百分比。