ionic-framework-mcp
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseIonic Framework MCP Server
Ionic Framework MCP 服务器
Connect an MCP client to the hosted Ionic Framework MCP server for the current Ionic Framework documentation, the component API reference, the official usage examples per framework, and the Ionic blog.
The server is hosted by Capawesome — there is nothing to install, no account, and no token:
https://ionic-framework-mcp.capawesome.io/mcpThis is an unofficial server. It is maintained by Capawesome and is not affiliated with or endorsed by Ionic or OutSystems. It serves the official Ionic Framework documentation, © the Ionic team and licensed under Apache-2.0.
将 MCP 客户端连接到托管的 Ionic Framework MCP 服务器,以获取当前的 Ionic Framework 文档、组件 API 参考、各框架的官方用法示例和 Ionic 博客。
该服务器由 Capawesome 托管——无需安装任何内容,也不需要账户或 token:
https://ionic-framework-mcp.capawesome.io/mcp这是一个非官方服务器,由 Capawesome 维护,与 Ionic 或 OutSystems 无隶属关系,也未获得其认可。它提供官方 Ionic Framework 文档,版权归 Ionic 团队所有,并依据 Apache-2.0 授权。
Prerequisites
前提条件
- An MCP client: Claude Code, Claude Desktop, Cursor, VS Code, Windsurf, Zed, or any other client that implements the Model Context Protocol.
- Network access to .
https://ionic-framework-mcp.capawesome.io - For clients that only start local commands: Node.js 22 or later.
- 一个 MCP 客户端:Claude Code、Claude Desktop、Cursor、VS Code、Windsurf、Zed,或任何其他实现了 Model Context Protocol 的客户端。
- 能够访问 的网络连接。
https://ionic-framework-mcp.capawesome.io - 对于只能启动本地命令的客户端:Node.js 22 或更高版本。
Agent Behavior
Agent 行为
- Guide step-by-step. Walk the user through the process one step at a time. Never present multiple unrelated questions at once.
- Auto-detect before asking. Detect the MCP client from the project before asking the user which one they use.
- Never ask for credentials. The server needs no account and no token. Never prompt for one and never write an header into the configuration.
Authorization - Pass the matching documentation version and framework. Read the Ionic package from and pass the matching
package.jsonon every call, and the project'sversionwhen reading usage examples. See Documentation Versions.framework
- 逐步指导。 每次只引导用户完成流程中的一个步骤。切勿一次提出多个互不相关的问题。
- 提问前先自动检测。 在询问用户使用哪个客户端之前,先从项目中检测 MCP 客户端。
- 绝不索要凭据。 该服务器不需要账户或 token。绝不提示用户提供,也绝不将 请求头写入配置。
Authorization - 传入匹配的文档版本和框架。 从 中读取 Ionic 包版本,并在每次调用时传入匹配的
package.json;读取用法示例时传入项目的version。参见文档版本。framework
Procedures
操作步骤
Step 1: Detect the MCP Client
第 1 步:检测 MCP 客户端
Detect the client instead of asking, by checking the project root in this order:
- or
.mcp.json→ Claude Code.claude/ - or
.cursor/mcp.json→ Cursor.cursor/ - or
.vscode/mcp.json→ VS Code.vscode/
If none of these exist, or if more than one matches, ask the user which client to configure. Claude Desktop, Windsurf, and Zed keep their configuration outside the project, so they cannot be detected this way.
不要直接询问用户,而应按以下顺序检查项目根目录来检测客户端:
- 或
.mcp.json→ Claude Code.claude/ - 或
.cursor/mcp.json→ Cursor.cursor/ - 或
.vscode/mcp.json→ VS Code.vscode/
如果这些文件都不存在,或匹配到多个客户端,则询问用户要配置哪个客户端。Claude Desktop、Windsurf 和 Zed 将配置保存在项目之外,因此无法通过这种方式检测。
Step 2: Add the Server
第 2 步:添加服务器
Read and apply the section for the detected client. Register the server under the name .
references/client-setup.mdionic-framework读取 ,并应用检测到的客户端对应的章节。以名称 注册该服务器。
references/client-setup.mdionic-frameworkStep 3: Restart the Client and Verify
第 3 步:重启客户端并验证
- Tell the user to restart their MCP client so it picks up the new server.
- Verify the server by asking the client to run with a query such as
list_components.modal - If the call fails, go to Error Handling.
- 告知用户重启 MCP 客户端,使其加载新服务器。
- 让客户端使用诸如 这样的查询调用
modal,以验证服务器。list_components - 如果调用失败,请转到错误处理。
Step 4: Use the Server
第 4 步:使用服务器
Once connected, prefer these tools over model knowledge and over reference files bundled with other skills whenever the topic is the Ionic Framework — a component, its API, theming, navigation, or the Ionic CLI.
| Tool | Parameters | Use for |
|---|---|---|
| | Finding the page that covers a topic. Start here. |
| | Reading a full page as Markdown, using a URL from |
| | Finding the component that fits a piece of UI, and the tag it is used under. |
| | Reading the official usage examples of a component. |
| — | Recent posts from the Ionic blog, for announcements and release notes. |
Apply these rules:
- Read the component page before styling or wiring a component. A component page returned by carries the full API reference — properties, events, methods, CSS shadow parts, CSS custom properties, and slots. Reading it is what prevents an invented property or class name.
get_doc_page - Call without an
get_component_usagefirst to list the examples a component offers, then call it again with the chosenexampleid.example - Pass as
framework,angular,react, orvueto get the variant that matches the project. Without it, every framework is returned.javascript - Narrow with when the question belongs to one part of the documentation:
section,components,angular,react,vue,theming,guides, orupdating.cli - Pass up to 100 to
limitto list every component.list_components - Route other topics elsewhere. Capacitor, its plugins, and the native iOS and Android projects belong to the Capacitor MCP server; Capawesome plugins and Capawesome Cloud belong to the Capawesome MCP server. See Related Skills.
连接成功后,当主题涉及 Ionic Framework(组件、API、主题、导航或 Ionic CLI)时,优先使用这些工具,而不是模型自身知识,也优先于其他 skill 附带的参考文件。
| 工具 | 参数 | 适用于 |
|---|---|---|
| | 查找涵盖某主题的页面。始于此处。 |
| | 使用 |
| | 查找适合某个 UI 场景的组件及其所属标签。 |
| | 读取组件的官方用法示例。 |
| — | Ionic 博客的近期文章,用于公告和发布说明。 |
应用以下规则:
- 设置组件样式或连接组件逻辑前,先阅读组件页面。 由 返回的组件页面包含完整的 API 参考——属性、事件、方法、CSS shadow parts、CSS 自定义属性和 slots。阅读该页面可避免凭空使用不存在的属性名或类名。
get_doc_page - 先调用不带 的
example,列出组件提供的示例,然后使用选定的get_component_usageid 再次调用。example - 将 传为
framework、angular、react或vue,以获取与项目匹配的变体。如果不传,则会返回所有框架的示例。javascript - 当问题属于文档的某个部分时,使用 缩小范围:
section、components、angular、react、vue、theming、guides或updating。cli - 将 传给
limit,最高可设为 100,以列出所有组件。list_components - 将其他主题分流至相应服务器。 Capacitor、其插件以及原生 iOS 和 Android 项目应使用 Capacitor MCP 服务器;Capawesome 插件和 Capawesome Cloud 应使用 Capawesome MCP 服务器。参见相关 Skill。
Documentation Versions
文档版本
The documentation is available for v9 (the default) and v8.
Read the version of , , , or from and map it:
@ionic/core@ionic/angular@ionic/react@ionic/vuepackage.json| Ionic package | |
|---|---|
| |
| |
Pass it on every , , , and call. Without it the server answers for v9, which documents properties and events an older release does not have.
search_docsget_doc_pagelist_componentsget_component_usageThe same entry gives the for : → , → , → , and on its own → .
package.jsonframeworkget_component_usage@ionic/angularangular@ionic/reactreact@ionic/vuevue@ionic/corejavascript文档提供 v9(默认版本)和 v8 两个版本。
从 中读取 、、 或 的版本,并映射如下:
package.json@ionic/core@ionic/angular@ionic/react@ionic/vue| Ionic 包 | |
|---|---|
| |
| |
每次调用 、、 和 时都要传入该版本。如果不传,服务器将按 v9 作答,而 v9 包含旧版本没有的属性和事件。
search_docsget_doc_pagelist_componentsget_component_usage同一个 条目也提供 所需的 : → , → , → ,单独使用 → 。
package.jsonget_component_usageframework@ionic/angularangular@ionic/reactreact@ionic/vuevue@ionic/corejavascriptError Handling
错误处理
- Server not listed after setup: The client was not restarted. Restart it. In Claude Code, run to confirm the server is registered.
claude mcp list - : The endpoint allows 100 requests per minute per IP. Retry after a short wait.
429 Too Many Requests - The client cannot reach a remote server: It only starts local commands. Use the stdio proxy as shown in
@capawesome/ionic-framework-mcp. It requires Node.js 22 or later.references/client-setup.md - A component has no description in : Some components carry none upstream. Read the component page with
list_componentsinstead.get_doc_page - reports an unknown example: The response lists the available example ids. Call the tool again with one of them.
get_component_usage - A tool reports that the index is being built: The server rebuilds its index daily. Retry after a short wait.
- Answers mention properties the project does not have: The parameter was omitted or wrong. See Documentation Versions.
version
- 完成设置后未列出服务器:客户端尚未重启。重启客户端。在 Claude Code 中,运行 以确认服务器已注册。
claude mcp list - :该端点允许每个 IP 每分钟发送 100 个请求。短暂等待后重试。
429 Too Many Requests - 客户端无法访问远程服务器:该客户端只能启动本地命令。按照 中所示,使用
references/client-setup.mdstdio 代理。该代理需要 Node.js 22 或更高版本。@capawesome/ionic-framework-mcp - 中的组件没有描述:部分组件在上游没有描述。请改用
list_components阅读组件页面。get_doc_page - 报告示例未知:响应中会列出可用的示例 id。使用其中之一再次调用该工具。
get_component_usage - 工具提示正在构建索引:服务器每天都会重建索引。短暂等待后重试。
- 回答中提到项目不存在的属性:参数被省略或设置错误。参见文档版本。
version
Related Skills
相关 Skill
- — For the Capacitor MCP server, which covers Capacitor, its plugins, and the native projects this server does not.
capacitor-mcp - — For the Capawesome MCP server, which covers the Capawesome plugins, the Capawesome CLI, and Capawesome Cloud.
capawesome-mcp - — For general Ionic Framework development.
ionic-app-development - — For a broad Ionic Framework reference covering components, theming, navigation, and framework-specific patterns.
ionic-expert - ,
ionic-angular,ionic-react— For the framework-specific patterns behind theionic-vueparameter.framework
- — 用于 Capacitor MCP 服务器,涵盖本服务器未覆盖的 Capacitor、其插件和原生项目。
capacitor-mcp - — 用于 Capawesome MCP 服务器,涵盖 Capawesome 插件、Capawesome CLI 和 Capawesome Cloud。
capawesome-mcp - — 用于常规 Ionic Framework 开发。
ionic-app-development - — 提供全面的 Ionic Framework 参考,涵盖组件、主题、导航和框架特定模式。
ionic-expert - 、
ionic-angular、ionic-react— 用于与ionic-vue参数对应的框架特定模式。framework