Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| analyze_modernization | 分析 JavaScript/TypeScript 程式碼現代化機會,找出可被瀏覽器原生 Web API 替代的第三方函式庫,減少 npm bundle 大小,包括 jQuery、Moment.js、Lodash、XMLHttpRequest 等過時模式的現代化建議 |
| recommend_api_combination | 根據自然語言描述的需求,推薦最佳的 API 技術組合 |
| analyze_compatibility | 分析專案的 API 相容性風險,推薦 polyfill 方案 |
| search_mdn | 搜尋 MDN Web Docs 文件,取得最新的 API 資訊、用法說明、棄用狀態和瀏覽器相容性 |
| check_browser_support | 使用 Can I Use 資料庫檢查 Web API 的瀏覽器相容性,取得支援版本和 polyfill 建議 |
| list_api_categories | 列出所有可用的 Web API 類別,從 Can I Use 資料庫中取得完整的類別列表 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| analyze-project | 分析專案的程式碼現代化機會 |
| migrate-library | 取得特定函式庫的遷移指南 |
| modernize-pattern | 取得特定程式碼模式的現代化建議 |
| quick-wins | 取得低風險、高效益的快速改善建議 |
| analyze-pr | 分析 Git PR 的程式碼變更,整合規則式分析和 AI 分析,提供現代化建議 |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| 函式庫現代化規則 | 所有可替換的函式庫清單和對應的現代化建議 |
| API 現代化規則 | 所有可現代化的 API 清單和對應的建議 |
| 所有現代化規則 | 完整的現代化規則資料庫 |
| 規則統計資訊 | 規則資料庫的統計資訊 |