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.0
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.0.tar.gz | 87.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ht32_wiki_mcp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 94.5 kB
Release files / ht32_wiki_mcp-0.1.0.tar.gz
| Download URL | ht32_wiki_mcp-0.1.0.tar.gz |
|---|---|
| Size | 87.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e3f76f5eaf4c134fad263777d43869aa9f93b565a9024392680b6cd00e0b1161
|
|
BLAKE2b-256 checksum How to use checksums |
c7e4acef62a7d76e992b5d269614136faad5c112bfedc9fd331f779544376a26
|
| 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":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / ht32_wiki_mcp-0.1.0-py3-none-any.whl
| Download URL | ht32_wiki_mcp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b0cca7c84e0390f476a0aa6f3fcd3b73b8573da30d08006e6e01ef27bd726bf5
|
|
BLAKE2b-256 checksum How to use checksums |
2840725fd1e8b26f9d4c93dd8ff26204aa6c887d392b4512a21dfd2d128e1393
|
| 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":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|