MCP support for LLM CLI
Project description
llm-tools-mcp
[!WARNING] Work in progress!
Only an alpha version has been released so far.
Please refrain from using it unless you know what you're doing.
If you do decide to try it, make sure to use the--taflag (manual approval required for every tool execution).
MCP support for the LLM CLI tool.
To Do
- Release alpha version
- Build a solid test suite
- test sse with dummy server
- test stdio with dummy server
- test http streamable with dummy server (see #1)
- test sse with real server
- test stdio with real server
- test http streamable with real server
- Redirect
stdout/stderrfrom the MCP SDK to a file or designated location - Reuse stdio connections
- Support non-stdio MCP servers
- Handle tool name conflicts (prefix with mcp server name?)
- Gather feedback on the
~/.llm-tools-mcpdirectory naming - Improve failure handling:
- When connecting to an MCP server fails
- When
mcp.jsonis malformed
- Improve this README:
- Add more detail in the Development section (mention
uv?)
- Add more detail in the Development section (mention
Installation
Install this plugin in the same environment as LLM:
llm install llm-tools-mcp
Usage
[!WARNING] Work in progress!
Only an alpha version has been released so far.
Please refrain from using it unless you know what you're doing.
If you do decide to try it, make sure to use the--taflag (manual approval required for every tool execution).
- Create
mcp.jsonfile in~/.llm-tols-mcp - Run
llm, for example:llm --ta -T read_file -T list_allowed_directories -T list_directory "what files are in the demo directory? show me contents of one of the files (any)"
Development
Now (to be verified)
- Sync dependencies:
uv sync --all-extras - Run linters / type checker:
./check.sh - Run tests:
./test.sh
Before
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd llm-tools-mcp
python -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
python -m pip install -e '.[test]'
To run the tests:
python -m pytest
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 llm_tools_mcp-0.1.0a5.tar.gz.
File metadata
- Download URL: llm_tools_mcp-0.1.0a5.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22bc10feb0b9449d9655c46b3f3dfdec90b2451d81cc7b3a0a1882407c9280c2
|
|
| MD5 |
ff477ca81bae8c7c552957c1dfebd524
|
|
| BLAKE2b-256 |
c040d48c396be106fb2c3f69da707d61323bfc885ceadc839ff81960cd7f6cd8
|
Provenance
The following attestation bundles were made for llm_tools_mcp-0.1.0a5.tar.gz:
Publisher:
publish.yml on VirtusLab/llm-tools-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llm_tools_mcp-0.1.0a5.tar.gz -
Subject digest:
22bc10feb0b9449d9655c46b3f3dfdec90b2451d81cc7b3a0a1882407c9280c2 - Sigstore transparency entry: 222482292
- Sigstore integration time:
-
Permalink:
VirtusLab/llm-tools-mcp@fab367174272c948ff3ae2c23b20035316229083 -
Branch / Tag:
refs/tags/0.1.0a5 - Owner: https://github.com/VirtusLab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@fab367174272c948ff3ae2c23b20035316229083 -
Trigger Event:
release
-
Statement type:
File details
Details for the file llm_tools_mcp-0.1.0a5-py3-none-any.whl.
File metadata
- Download URL: llm_tools_mcp-0.1.0a5-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b99b13dfdfa12cbf86b912532c3f50518519e0b67a5c75c1e0eaf9465edac0ac
|
|
| MD5 |
2827707aacf784193c94891142e224a7
|
|
| BLAKE2b-256 |
d6fc523230b4640d396047b7b3eec34bd92121780275bdf9b46172e204d89950
|
Provenance
The following attestation bundles were made for llm_tools_mcp-0.1.0a5-py3-none-any.whl:
Publisher:
publish.yml on VirtusLab/llm-tools-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llm_tools_mcp-0.1.0a5-py3-none-any.whl -
Subject digest:
b99b13dfdfa12cbf86b912532c3f50518519e0b67a5c75c1e0eaf9465edac0ac - Sigstore transparency entry: 222482307
- Sigstore integration time:
-
Permalink:
VirtusLab/llm-tools-mcp@fab367174272c948ff3ae2c23b20035316229083 -
Branch / Tag:
refs/tags/0.1.0a5 - Owner: https://github.com/VirtusLab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@fab367174272c948ff3ae2c23b20035316229083 -
Trigger Event:
release
-
Statement type: