Skip to main content
Glama
rvaim

arkts-knowledge-search

by rvaim

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_knowledge_search

查询 ArkTS、ArkUI、HarmonyOS 与 OpenHarmony 在线知识

arkts_knowledge_status

检查在线登录状态

arkts_knowledge_login

打开华为官方 OAuth 页面登录

arkts_knowledge_logout

清理本 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 tools
arkts_knowledge_login登录 ArkTS 在线知识查询A

打开华为官方登录页面,完成在线知识查询 OAuth 登录。不会安装或启动 DevEco Code。

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A4.4/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations (openWorldHint=true, readOnlyHint=false, destructiveHint=false) are consistent and description adds value: clarifies it opens webpage and completes OAuth, explicitly states no installation or launch of DevEco Code, which is beyond annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two concise sentences with no wasted words. Main action is front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given zero parameters and no output schema, the description covers the essential: action, scope, and negative clarification. Could add a note on success/failure indication but is sufficiently complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

No parameters, schema coverage 100%. Baseline for 0 params is 4. Description does not need to add parameter info and appropriately focuses on purpose.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description uses specific verbs '打开' and '完成' and identifies the resource as '华为官方登录页面' for online knowledge query OAuth login. It clearly distinguishes from siblings (logout, search, status) by being the authentication step.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit guidance on when to use or alternatives. Implication is clear (use when login is needed) but no direct mention of prerequisites or context relative to siblings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

arkts_knowledge_logout退出 ArkTS 在线知识查询A
Destructive

删除本 MCP 在本机保存的加密登录凭据。

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already indicate destructiveHint=true, and the description adds that it deletes 'encrypted login credentials' saved locally, providing specific context beyond annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Single sentence concisely captures the action with no unnecessary words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple parameterless logout tool with no output schema, the description fully explains the action and outcome.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

No parameters exist, so schema coverage is 100%. Description does not need to add parameter info, baseline 4 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states it deletes locally saved encrypted login credentials, which is the logout action. It distinguishes from siblings (login, search, status) by specifying the credential deletion action.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Implicitly used after login to log out, but no explicit guidance on when to use or alternatives. Since it's a simple action, this is adequate but lacks explicit exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

arkts_knowledge_status检查 ArkTS 在线知识登录状态A
Read-only

检查在线知识查询登录状态,不返回任何令牌。

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already indicate readOnlyHint=true. The description adds that no token is returned, which is a useful behavioral detail beyond what annotations provide.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Single sentence, zero waste, perfectly concise.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a parameterless status-check tool, the description combined with annotations provides adequate context. However, it could be improved by specifying the expected return value (e.g., true/false).

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

No parameters exist, so baseline 4. Description does not need to add parameter info.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool checks the login status for online knowledge queries, and it is distinct from siblings (login, logout, search).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is given on when to use this tool vs alternatives. It is implied that one might check status before using search, but not explicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 4 tool updatesv0.1.0
    • First observedarkts_knowledge_login
    • First observedarkts_knowledge_logout
    • First observedarkts_knowledge_search
    • First observedarkts_knowledge_status

TDQS

A4.3/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose: login, logout, status check, and search. No overlap or ambiguity.

Naming Consistency4/5

All tools share a common 'arkts_knowledge_' prefix and use imperative verb names except 'status', which is a noun. Nearly consistent.

Tool Count5/5

Four tools is well-scoped for authentication and knowledge search—neither too few nor too many.

Completeness5/5

The set covers the full authentication lifecycle (login, logout, status) and the core search operation. No obvious gaps.

Maintenance

ActivitySlowing
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rvaim/arkts-knowledge-search'

If you have feedback or need assistance with the MCP directory API, please join our Discord server