cli MCP server
cli bridge
Pretty much a remix of the demo notes app.
Components
Resources
The server implements a simple system for working with arbitrary clis with:
- Custom cli:// URI scheme for accessing individual notes
- Each cli resource has a name, help menu subtree, and text/plain mimetype
Tools
The server implements one tool:
- add (cmd): Recursively parses cli help menu subtrees and stores definition
- Takes "cmd"
- Updates server state and notifies clients of resource changes
- help (cmd): Return subtrees definition
- run (cmd, cmd_args | None): Run a known command
Quickstart
Install
Claude Desktop
Note: I had to use /opt/homebrew/bin/uv instead of just uv in the command field in this json:
On MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
{"mcpServers": {
"cli": {
"command": "uv",
"args": [
"run",
"--directory",
"\<path to repo folder\>",
"cli"
]}
}
}
By design, you have to explicitly 'add' a command before it can be run.
Debugging
Since MCP servers run over stdio, debugging can be challenging. For the best debugging experience, we strongly recommend using the MCP Inspector.
You can launch the MCP Inspector via npm with this command:
npx @modelcontextprotocol/inspector uv --directory <path to repo> run cli
Upon launching, the Inspector will display a URL that you can access in your browser to begin debugging.
Metadata
Release files for iflow-mcp_mlaugharn-cli 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 | |
|---|---|---|---|
| iflow_mcp_mlaugharn_cli-0.1.0.tar.gz | 7.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| iflow_mcp_mlaugharn_cli-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.2 kB
Release files / iflow_mcp_mlaugharn_cli-0.1.0.tar.gz
| Download URL | iflow_mcp_mlaugharn_cli-0.1.0.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
48e10dba2bc8987815924f60a9551f7630a537dd666b5a6223d4766843011e5c
|
|
BLAKE2b-256 checksum How to use checksums |
da13a71ba3d532456beb5aa58246dc3231e64628955df5179eeff925b1e9e6d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / iflow_mcp_mlaugharn_cli-0.1.0-py3-none-any.whl
| Download URL | iflow_mcp_mlaugharn_cli-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
93b45fea86fb07bc697fc1838a76d82e155ccb6457262bed1c57ec0d97ab8349
|
|
BLAKE2b-256 checksum How to use checksums |
8e76891cb7026696b402cdc7a4f1654169bec961b88111339e304d2bd0ef3652
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|