Skip to main content

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 --ta flag (manual approval required for every tool execution).

PyPI Changelog Tests License

MCP support for the LLM CLI tool.

Demo

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/stderr from 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-mcp directory naming
  • Improve failure handling:
    • When connecting to an MCP server fails
    • When mcp.json is malformed
  • Improve this README:
    • Add more detail in the Development section (mention uv?)

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 --ta flag (manual approval required for every tool execution).

  1. Create mcp.json file in ~/.llm-tols-mcp
  2. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llm_tools_mcp-0.1.0a5.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llm_tools_mcp-0.1.0a5-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

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

Hashes for llm_tools_mcp-0.1.0a5.tar.gz
Algorithm Hash digest
SHA256 22bc10feb0b9449d9655c46b3f3dfdec90b2451d81cc7b3a0a1882407c9280c2
MD5 ff477ca81bae8c7c552957c1dfebd524
BLAKE2b-256 c040d48c396be106fb2c3f69da707d61323bfc885ceadc839ff81960cd7f6cd8

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_tools_mcp-0.1.0a5.tar.gz:

Publisher: publish.yml on VirtusLab/llm-tools-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file llm_tools_mcp-0.1.0a5-py3-none-any.whl.

File metadata

File hashes

Hashes for llm_tools_mcp-0.1.0a5-py3-none-any.whl
Algorithm Hash digest
SHA256 b99b13dfdfa12cbf86b912532c3f50518519e0b67a5c75c1e0eaf9465edac0ac
MD5 2827707aacf784193c94891142e224a7
BLAKE2b-256 d6fc523230b4640d396047b7b3eec34bd92121780275bdf9b46172e204d89950

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page