Skip to content

Conversation

@dsummersl
Copy link
Contributor

No description provided.

@westurner
Copy link

westurner commented Oct 27, 2025

# mkvirtualenv llm   # python -m venv llm  # uv somehow
pip install -e git+ssh://[email protected]/simonw/llm#egg=llm#egg=llm
pip install -e git+ssh://[email protected]/VirtusLab/llm-tools-mcp#egg=llm_tools_mcp
(cd $VIRTUAL_ENV/src/llm-tools-mcp; gh pr checkout 53)
mkdir ~/.llm-tools-mcp/
cat << EOF > ~/.llm-tools-mcp/mcp.json
{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "~/demo"
      ]
    }
  }
}
EOF

llm tools list
llm_time() -> dict (plugin: llm.default_plugins.default_tools)

  Returns the current time, as local time and UTC

llm_version() -> str (plugin: llm.default_plugins.default_tools)

  Return the installed version of llm

MCP:

Should there be output after MCP: if I don't have any servers configured?

@dsummersl
Copy link
Contributor Author

@westurner It seems that the LLM CLI doesn't support showing the functions dynamically (See Simon's discussion of this here: simonw/llm#1111 (comment)). You can verify that the functions are loaded with something like this:

llm -T MCP "list all the tools/descriptions available without modification"
Here are the available tools and their descriptions:

### Tool Descriptions

1. **functions.read_file**
   - Read the complete contents of a file as text. DEPRECATED: Use read_text_file instead.

2. **functions.read_text_file**
   - Read the complete contents of a file from the file system as text. Handles various text encodings and provides detailed error messages if the file cannot
be read. Use this tool when you need to examine the contents of a single file. Use the 'head' parameter to read only the first N lines of a file, or the 'tail'
 parameter to read only the last N lines of a file. Operates on the file as text regardless of extension. Only works within allowed directories.

...
...
...

@myhau
Copy link
Member

myhau commented Oct 28, 2025

Thank you for this! 🙏 I will finally have some time to take a look at all these today.

@myhau myhau merged commit 8264cbe into VirtusLab:fix-method_tools Oct 28, 2025
5 checks passed
github-merge-queue bot pushed a commit that referenced this pull request Oct 28, 2025
Tiny improvements on top of
#53.

(Fixes #36, thanks
@tubaman!)

---------

Co-authored-by: Ryan Nowakowski <[email protected]>
Co-authored-by: Dane Summers <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants