Skip to content

Instantly share code, notes, and snippets.

@mritzco
Created March 31, 2025 06:32
Show Gist options
  • Save mritzco/fe6f201c9b0c9cb560912659dc1a432e to your computer and use it in GitHub Desktop.
Save mritzco/fe6f201c9b0c9cb560912659dc1a432e to your computer and use it in GitHub Desktop.
MCP & Dive

Instructions on running Dive a HOST application for LLMs with MCP support.

Instalation

Use one of the install methods at Dive Ai Agent

How to run

Run dive like: ./Dive-0.7.2-linux-x86_64.AppImage --no-sandbox

Setup a clean python environment

conda create -n tools python=3.13.2
conda deactivate
conda activate tools
pip install uvx

Testing MPC:

Inspector is a great way to test it can run directly from npx:

npx -y @modelcontextprotocol/inspector npx server-postgres postgres://127.0.0.1/testdb
npx -y @modelcontextprotocol/inspector uvenv run mcp-server-git 

Where npx -y @modelcontextprotocol/inspector starts the inspector and npx server-postgres postgres://127.0.0.1/testdb executes the server

Verifying the server

You should be able to run directly, like:

uvenv run mcp-server-git
or
node build/index.js

Adding tools

Open Dive > Tools Management > Edit Config Modify the JSON with any tools you like. Tip: Make sure the tools can run in the environment from where you started Dive.

Example of tools added in config.json. Make sure to modify YOUR_PATH, and if tools don't work modify $USER to your user name or set the env var.

Links

{
"mcpServers": {
"echo": {
"enabled": true,
"command": "node",
"args": [
"/home/$USER/.dive/scripts/echo.js"
],
"disabled": true
},
"git": {
"command": "uvenv",
"args": [
"run",
"mcp-server-git"
],
"enabled": true,
"disabled": true
},
"fetch": {
"command": "uvenv",
"args": [
"run",
"mcp-server-fetch"
],
"enabled": true,
"disabled": true
},
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/home/$USER/YOUR_PATH"
],
"enabled": true,
"disabled": true
},
"youtubedl": {
"command": "npx",
"args": [
"@kevinwatt/yt-dlp-mcp"
],
"enabled": true,
"disabled": true
},
"memory": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-memory"
],
"env": {
"MEMORY_FILE_PATH": "/home/$USER/applications/appimages/dive"
},
"enabled": true,
"disabled": true
},
"puppeteer": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-puppeteer"
],
"enabled": true,
"disabled": true
}
}
}
./Dive-0.7.2-linux-x86_64.AppImage --no-sandbox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment