In this project, I demonstrate how to integrate ToolUniverse into AI coding agents such as gemini and qwen-code.
-
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.
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": {
}
}
}
}
```
/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.
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
Start the coding agent (gemini or qwen-code) in the specified working directory:
cd /path/to/working/dir
gemini
# or qwenThe 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.