feat: add HiAgent MCP server - #424
Merged
Merged
Conversation
added 2 commits
August 19, 2026 02:29
Add an MCP server for the HiAgent Platform OpenAPI, focused on the knowledge engine. Tools: health_check, list_datasets, get_dataset, and call_knowledge_engine_tool (knowledge_search). AK/SK V4 signing, stdio and streamable-http transports, credentials via environment variables. HiAgent OpenAPI version is selectable via HIAGENT_VERSION env or --hiagent-version flag, defaulting to the latest registered version (v3.1.0).
cuericlee
reviewed
Aug 20, 2026
| top_k=3, | ||
| score_threshold=0.2, | ||
| ) | ||
| ``` |
Collaborator
There was a problem hiding this comment.
add best practice of prompt to trigger mcp tools and expected result.
Contributor
Author
There was a problem hiding this comment.
done
add best practice of prompt to trigger mcp tools and expected result.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
简介
新增 HiAgent 平台 OpenAPI 的 MCP Server,聚焦知识引擎能力,使 MCP 客户端(Claude Desktop、Cursor、HiAgent STDIO 插件等)能够检索 HiAgent 知识库中的内容。
工具
health_checklist_datasetsget_datasetcall_knowledge_engine_toolknowledge_search鉴权与接入
HIAGENT_TOP_HOST、HIAGENT_ACCESS_KEY_ID、HIAGENT_SECRET_ACCESS_KEY)stdio(默认)与streamable-httpHIAGENT_VERSION环境变量或--hiagent-version参数选择,默认使用最新已注册版本(v3.1.0)server/mcp_server_hiagent/结构 +src/包 +uv.lock,与现有 server 一致;pyproject.toml含 MIT license验证
pytest),无需网络与凭证python -m build+twine check通过(sdist + wheel)