HT32 Wiki MCP Server
为 AI Agent 提供 HT32 MCU 选型与知识检索能力的 MCP Server。
功能
search_knowledge(query)— 全文搜索 wiki 知识库(芯片页、外设页、概念页、Datasheet)get_chip_info(model)— 获取芯片系列详情get_peripheral_info(name)— 获取外设详情compare_chips(models)— 对比多个芯片型号list_chips()/list_peripherals()— 列出芯片/外设清单get_datasheet(series)— 获取 Datasheet 全文
使用方法
环境变量
| 变量 | 默认值 | 说明 |
|---|---|---|
WIKI_ROOT |
当前目录 | wiki 仓库根目录(含 entities/concepts/md_datasheets) |
MCP_TRANSPORT |
stdio |
stdio / sse / streamable-http |
MCP_HOST |
0.0.0.0 |
HTTP 模式监听地址 |
MCP_PORT |
8100 |
HTTP 模式监听端口 |
stdio 模式(供 supergateway/1Panel 包装为 SSE)
uvx ht32-wiki-mcp
Streamable HTTP 模式
MCP_TRANSPORT=streamable-http uvx ht32-wiki-mcp
开发
uv sync --frozen
uv run python -m ht32_wiki_mcp
Release files for ht32-wiki-mcp 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ht32_wiki_mcp-0.1.2.tar.gz | 94.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ht32_wiki_mcp-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 102.2 kB
Release files / ht32_wiki_mcp-0.1.2.tar.gz
| Download URL | ht32_wiki_mcp-0.1.2.tar.gz |
|---|---|
| Size | 94.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fe20ca40518cddd69b5174618225e0096eef8c3a54dc3738c96d049489134d18
|
|
BLAKE2b-256 checksum How to use checksums |
04864e080569edad05c3f54cc99e7e9ae546b19d1df803a23dc7e7a9d6316231
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / ht32_wiki_mcp-0.1.2-py3-none-any.whl
| Download URL | ht32_wiki_mcp-0.1.2-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6f5f5719c13c0e8093dd88a9dc2d2911a57971337f8744a487f635ec2b8c38d4
|
|
BLAKE2b-256 checksum How to use checksums |
c4784eb5a6a1f034d32260b7d8e3e9868a543a90fbea1aa5ae3492442782986b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|