Single-binary MCP server for embedded BangC, CNRT, and CNNL documentation search.
Project description
BangC MCP Server
bangc-mcp-server is a self-contained MCP server for searching embedded BangC,
CNRT, and CNNL reference material. It ships prebuilt Rust binaries and exposes a
small Python launcher so the server can be started with uvx.
uvx bangc-mcp-server
HTTP mode is also available:
uvx bangc-mcp-server serve --http --addr 127.0.0.1:8765
The command line is organized around subcommands:
uvx bangc-mcp-server serve
uvx bangc-mcp-server serve --http --addr 127.0.0.1:8765
uvx bangc-mcp-server stats
Generate a clangd-compatible compilation database for .mlu files in the
current project:
uvx bangc-mcp-server ccdb -r . -a mtp_372
The default output is the standard compile_commands.json file. Use
-o compile_command.json only for tools that require a custom filename.
Compile a single .mlu file from the CLI:
uvx bangc-mcp-server compile-object kernel.mlu -a mtp_372
uvx bangc-mcp-server compile-extension kernel.mlu -a mtp_372 --smoke-import
MCP Configuration
Use the uvx command as the MCP server command:
{
"mcpServers": {
"bangc-docs": {
"command": "uvx",
"args": ["bangc-mcp-server"]
}
}
}
Included Tools
bangc_searchbangc_api_lookupbangc_symbolsbangc_get_chunkbangc_get_docbangc_tutorialsbangc_context_packbangc_list_documentsbangc_list_sourcesneuware_api_searchneuware_api_lookupneuware_env_checkmlu_device_querypython_torch_env_checkbangc_compile_torch_extensionbangc_compile_torch_extension_plan
The mlu_device_query tool uses bounded one-shot cnmon commands when the
local Neuware runtime is available. Mutating or continuously refreshing monitor
modes are intentionally not exposed.
The bangc_compile_torch_extension tool compiles a local .mlu file into a
Python torch extension for debugging on a machine with Neuware, cncc, PyTorch,
and torch_mlu installed. It generates a small pybind11 binding around the
wrapper function and does not run task-specific reference checks. Successful
compile results are intentionally compact; use bangc_compile_torch_extension_plan
to inspect the full environment and command lines.
Supported Platforms
This package currently includes:
- Windows x86_64
- Linux x86_64, musl-linked
Set BANGC_MCP_SERVER_BIN=/path/to/bangc-mcp-server to override the bundled
binary.
Notes
The package README intentionally avoids local filesystem paths, private environment output, usernames, hostnames, and device-specific command output.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bangc_mcp_server-0.3.5.tar.gz.
File metadata
- Download URL: bangc_mcp_server-0.3.5.tar.gz
- Upload date:
- Size: 4.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.13 {"installer":{"name":"uv","version":"0.9.13"},"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":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b899fdeb256f2c8f01a8a41a667d232dc24897e05ad5eb111aec63df380aff51
|
|
| MD5 |
717ce5777bdf52fe6972ed0963ae945d
|
|
| BLAKE2b-256 |
7ddbee9e3f85e48b1d27c5a9f79d4fb2c85336c8567eb01efb0f519b84f6bd65
|
File details
Details for the file bangc_mcp_server-0.3.5-py3-none-any.whl.
File metadata
- Download URL: bangc_mcp_server-0.3.5-py3-none-any.whl
- Upload date:
- Size: 4.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.13 {"installer":{"name":"uv","version":"0.9.13"},"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":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e11f7c09aa14efc1f62b29cc3fd21e4b1ab6ec651c9a688d8eb182ab86b8ac85
|
|
| MD5 |
fe3b63cdc611ee44b543962bca016366
|
|
| BLAKE2b-256 |
a28ea3f59e56330709b9d517e0525e2aff87b785a3a6375fd6909220dcc428fa
|