Skip to main content
Glama

dolphin-mcp

NPM Version License: MIT Bun

A powerful Model Context Protocol (MCP) server that provides Dolphin AI semantic code search capabilities to AI applications like Continue.dev, Claude Desktop, and other MCP-compatible clients.

šŸš€ Features

  • Semantic Code Search: Find code using natural language queries powered by AI embeddings

  • Multi-Repository Support: Search across multiple code repositories

  • Smart Context Retrieval: Get detailed code chunks and file slices

  • VS Code Integration: Generate editor-friendly file URIs

  • Robust Error Handling: Graceful fallbacks and informative error messages

  • Environment Configuration: Flexible API endpoint configuration

šŸ› ļø Installation

Prerequisites

  • Bun (>= 1.0.0): Install Bun

  • Dolphin API Server: Running on your specified endpoint

Install the MCP Server

# Install globally bun install -g @plastic-beach/dolphin-mcp # Or install locally in your project bun install @plastic-beach/dolphin-mcp

āš™ļø Configuration

Environment Variables

Variable

Required

Default

Description

DOLPHIN_API_URL

No

http://127.0.0.1:7777

Dolphin API endpoint

KB_REST_BASE_URL

No

-

Alternative for DOLPHIN_API_URL

LOG_LEVEL

No

info

Logging level (debug, info, warn, error)

SERVER_NAME

No

dolphin-mcp

Server identifier

SERVER_VERSION

No

0.1.0

Server version

Quick Setup

# Test the server bunx @plastic-beach/dolphin-mcp

šŸ“± AI Application Integration

Continue.dev Configuration

Add this to your config.yaml:

mcpServers: - name: Dolphin-KB command: dolphin-mcp env: DOLPHIN_API_URL: "http://127.0.0.1:7777" connectionTimeout: 30000

Claude Desktop Configuration

Add this to your claude_desktop_config.json:

{ "mcpServers": { "dolphin-kb": { "command": "dolphin-mcp", "env": { "DOLPHIN_API_URL": "http://127.0.0.1:7777" } } } }

Direct Usage

# Start the MCP server directly dolphin-mcp # With custom configuration DOLPHIN_API_URL="https://your-dolphin-instance.com" dolphin-mcp

🧰 Available Tools

The Dolphin MCP server provides these tools to AI applications:

1. search_knowledge

Search codebase semantically using AI embeddings.

Parameters:

  • query (string): Search query - Required

  • repos (string[]): Optional repository filters

  • top_k (number): Number of results (default: 8)

2. fetch_chunk

Get detailed chunk content by ID.

Parameters:

  • chunk_id (string): Chunk identifier - Required

3. fetch_lines

Get specific file lines by range.

Parameters:

  • repo (string): Repository name - Required

  • path (string): File path - Required

  • start (number): Start line (1-indexed) - Required

  • end (number): End line (inclusive) - Required

4. get_vector_store_info

Get knowledge base statistics and repository info.

Parameters: None

5. open_in_editor

Generate VS Code URI for opening files.

Parameters:

  • repo (string): Repository name - Required

  • path (string): File path - Required

  • start_line (number): Start line (default: 1)

šŸ”§ Development

Prerequisites

  • Bun (>= 1.0.0)

  • TypeScript

  • Node.js 18+

Setup

# Clone and setup git clone https://github.com/plasticbeachllc/dolphin-mcp.git cd dolphin-mcp # Install dependencies bun install # Build the project bun run build # Run tests bun test # Development mode bun run dev

Project Structure

ā”œā”€ā”€ src/ │ ā”œā”€ā”€ cli.ts # CLI entry point │ ā”œā”€ā”€ index.ts # Development entry │ ā”œā”€ā”€ mcp/ │ │ ā”œā”€ā”€ server.ts # MCP server implementation │ │ └── tools/ # MCP tool definitions │ ā”œā”€ā”€ rest/ │ │ └── client.ts # REST API client │ └── util/ # Utilities ā”œā”€ā”€ dist/ # Built files ā”œā”€ā”€ tests/ # Test suites └── README.md

šŸ“‹ Requirements

  • Bun: >= 1.0.0

  • Node.js: 18+

  • Dolphin API Server: Accessible via HTTP/HTTPS

šŸ› Troubleshooting

Common Issues

Server fails to start:

# Check if Dolphin API is accessible curl http://127.0.0.1:7777/health # Verify environment variables echo $DOLPHIN_API_URL # Test with explicit URL DOLPHIN_API_URL="http://127.0.0.1:7777" dolphin-mcp

Connection timeout:

  • Verify DOLPHIN_API_URL is correct and accessible

  • Check firewall/network settings

  • Increase connectionTimeout in your MCP configuration

No search results:

  • Ensure repositories are indexed in Dolphin

  • Check repository names match exactly

  • Verify API credentials and permissions

Logging

The server logs to mcp-bridge/logs/mcp.log with automatic rotation (5MB, 3 files).

šŸ¤ Contributing

  1. Fork the repository

  2. Create a feature branch (git checkout -b feature/amazing-feature)

  3. Commit changes (git commit -m 'Add amazing feature')

  4. Push to branch (git push origin feature/amazing-feature)

  5. Open a Pull Request

šŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

šŸ”— Links

⚔ Quick Start Commands

# Install bun install -g @plastic-beach/dolphin-mcp # Configure export DOLPHIN_API_URL="http://127.0.0.1:7777" # Start server dolphin-mcp # Test in terminal echo '{"jsonrpc": "2.0", "id": 1, "method": "tools/list"}' | dolphin-mcp
-
security - not tested
A
license - permissive license
-
quality - not tested

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/plasticbeachllc/dolphin-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server