arkts-knowledge-search
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@arkts-knowledge-search What is the difference between @State and @Prop in ArkUI?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ArkTS Knowledge Search
把 DevEco Code 的 arkts_knowledge_search 在线知识查询能力独立为 MCP 服务。
本项目不安装、启动或依赖 DevEco Code,也不包含 @deveco/deveco-cli:
工具名称和
question参数与 DevEco Code 的arkts_knowledge_search保持一致。在线查询调用华为
bigSearch服务。登录使用独立的华为 OAuth 流程。
JWT 加密保存在本机,短期
accessToken只存在于进程内存,不会写入日志或 MCP 返回值。
使用
MCP 配置:
{
"mcpServers": {
"arkts-knowledge-search": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@rvaim/arkts_knowledge_search"
]
}
}
}命令行:
# 检查登录状态
npx -y @rvaim/arkts_knowledge_search status
# 登录,只打开华为官方页面
npx -y @rvaim/arkts_knowledge_search login
# 查询在线知识
npx -y @rvaim/arkts_knowledge_search search "UIAbility onCreate 的调用顺序"Related MCP server: OAuth MCP Server
MCP 工具
工具 | 用途 |
| 查询 ArkTS、ArkUI、HarmonyOS 与 OpenHarmony 在线知识 |
| 检查在线登录状态 |
| 打开华为官方 OAuth 页面登录 |
| 清理本 MCP 保存的加密登录凭据 |
arkts_knowledge_search 接收一个 question 字符串。问题应简洁,并包含 API、装饰器、生命周期名称、构建错误或现象等关键信息。
登录与本地数据
在线登录使用:
https://cn.devecostudio.huawei.com登录凭据默认保存在:
~/.config/arkts-knowledge-search/可通过 ARKTS_KNOWLEDGE_SEARCH_DATA_DIR 修改目录。凭据使用 AES-256-GCM 加密,凭据文件与密钥文件权限设为当前用户可读写。
macOS 如需指定登录浏览器:
ARKTS_KNOWLEDGE_BROWSER="Google Chrome" npx -y @rvaim/arkts_knowledge_search login当前登录仅支持中国站华为账号。在线接口属于华为服务,可能独立于本项目更新。
与 DevEco CLI 的关系
本包只负责在线知识查询。@deveco/deveco-cli 的本地文档、构建、运行、设备、模拟器和日志能力应由 AI 插件独立配置,不作为本包依赖。
许可证
本项目采用 MIT 许可证。派生来源与第三方声明见 THIRD-PARTY-NOTICES.md。
Available Tools
4 toolsarkts_knowledge_login登录 ArkTS 在线知识查询A
打开华为官方登录页面,完成在线知识查询 OAuth 登录。不会安装或启动 DevEco Code。
Inputs: no named parameters.
arkts_knowledge_logout退出 ArkTS 在线知识查询ADestructive
删除本 MCP 在本机保存的加密登录凭据。
Inputs: no named parameters.
arkts_knowledge_search查询 ArkTS 与 HarmonyOS 在线知识ARead-only
查询 ArkTS、ArkUI、HarmonyOS 与 OpenHarmony 在线知识库。适用于 .ets 代码、装饰器、生命周期、状态刷新、SDK API、DevEco 或 hvigor 构建错误,以及 @kit.、@ohos. API。
Inputs: question (required).
arkts_knowledge_status检查 ArkTS 在线知识登录状态ARead-only
检查在线知识查询登录状态,不返回任何令牌。
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose: login, logout, status check, and search. No overlap or ambiguity.
All tools share a common 'arkts_knowledge_' prefix and use imperative verb names except 'status', which is a noun. Nearly consistent.
Four tools is well-scoped for authentication and knowledge search—neither too few nor too many.
The set covers the full authentication lifecycle (login, logout, status) and the core search operation. No obvious gaps.
Maintenance
Related MCP Connectors
MCP server connecting AI agents to 100+ apps (Gmail, Slack, Notion, GitHub) via one-click OAuth.
Token-free MCP server for structured RevoGrid Core, Pro, and Enterprise knowledge retrieval.
MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.
Remote MCP server for training, nutrition, wellness, and performance data with OAuth 2.0.
Related MCP Servers
- AlicenseBqualityDmaintenanceAn MCP server that enables AI assistants to search, read, create, and update Feishu/Lark documents and wiki pages. It facilitates seamless document management and wiki searches through OAuth-authenticated API access.4MIT
- FlicenseNot gradedqualityDmaintenanceAn MCP server for OAuth 2.0 authentication supporting Device Code and Client Credentials flows, enabling secure token management for MCP applications.-
- AlicenseNot gradedqualityDmaintenanceA secure MCP server providing intelligent documentation search across multiple frameworks using ChromaDB vector storage, enabling semantic search and integration with AI tools.MIT
- AlicenseNot gradedqualityDmaintenanceProvides MCP servers for managing Huawei Cloud ECS, CodeArts Pipeline, and CTS audit logs with unified JWT authentication and role-based access control.5MIT