Skip to content

fortune9/test-tooluniverse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Using ToolUniverse in AI coding agents

In this project, I demonstrate how to integrate ToolUniverse into AI coding agents such as gemini and qwen-code.

Prerequisites

  • Install the uv tool:

    Used by ToolUniverse to manage and run tools.

    # install into a isolated environment using pipx
    pipx install uv
  • Install ToolUniverse:

    pip install tooluniverse
  • Install gemini-cli or qwen-code:

    Follow the instructions in their respective repositories to install gemini-cli or qwen-code.

Add ToolUniverse MCP server to gemini-cli

Edit the one of the following configuration files:

  • ~/.gemini/settings.json: for global user settings
  • /project/dir/.gemini/settings.json: for project-specific settings

Add the following configuration to enable ToolUniverse MCP server:

```json
{
  "mcp_servers": {
    "tooluniverse": {
      "command": "uv",
      "args": [
     "--directory",
     "/path/to/working/dir",
     "run",
        "tooluniverse-smcp-stdio",
        "--exclude-tool-types",
        "PackageTool"
      ],
      "env": {
      }
    }
  }
}
```

⚠️ Make sure to replace /path/to/working/dir with an actual directory where you start the coding agent such as gemini, must match, otherwise the MCP server would not started.

Add ToolUniverse MCP server to qwen-code

Edit one of the following configuration files:

  • ~/.qwen/settings.json: for global user settings
  • /project/dir/.qwen/settings.json: for project-specific settings

Add the same configuration as above to enable ToolUniverse MCP server.

You can find more details on qwen-code settings at https://www.zdoc.app/en/QwenLM/qwen-code/blob/main/docs/cli/configuration.md

Usage

Start the coding agent (gemini or qwen-code) in the specified working directory:

cd /path/to/working/dir
gemini
# or qwen

The coding agent will now have access to the tools provided by ToolUniverse via the MCP server. You can now interact with the coding agent and it will be able to use the tools from ToolUniverse to assist you in coding tasks.

About

Test tooluniverse MCP server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors