Skip to main content

Custom Agent Integration

Integrate OpenGround with any MCP-compatible client using manual configuration.

Overview

OpenGround implements the Model Context Protocol (MCP) standard, making it compatible with any MCP client. This guide covers manual configuration for clients not covered by the automatic installers.

Prerequisites

1

Install OpenGround

2

Verify MCP Server

Test the server runs:
Press Ctrl+C to exit
3

Add Documentation

Index at least one library:

Generate Configuration

OpenGround provides a configuration generator:

Standard MCP Configuration

Most MCP clients use a similar configuration structure:

Configuration Options

Full Path Configuration

For reliability, use the absolute path to openground-mcp:
Configuration:

Platform-Specific Configuration

Windows Subsystem for Linux (WSL)

If your client runs on Windows but OpenGround is in WSL:
Output:

Virtual Environments

If OpenGround is in a virtual environment:

Custom OpenGround Config

Use a non-default OpenGround configuration:

MCP Tools Available

OpenGround exposes three tools through MCP:

1. list_libraries_tool

List available documentation libraries and versions. Input: None Output:

2. search_documents_tool

Search documentation using hybrid semantic + BM25 retrieval. Input:
  • query (string): Search query
  • library_name (string): Library to search
  • version (string): Library version
Output: Markdown with search results, including:
  • Relevant text chunks
  • Relevance scores
  • Source URLs
  • Hints for fetching full content

3. get_full_content_tool

Retrieve complete page content. Input:
  • url (string): Page URL from search results
  • version (string): Library version
Output: Full page content in markdown

Client-Specific Configurations

Generic MCP Client

For standard MCP clients:

Zed Editor

Configuration for Zed’s MCP support:

VS Code (with MCP Extension)

If using an MCP extension for VS Code:

Continue.dev

Configuration for Continue extension:

JetBrains IDEs (with MCP Plugin)

MCP support in JetBrains IDEs depends on third-party plugins. Configuration may vary.
Typical configuration:

Advanced Configuration

Multiple Databases

Run separate OpenGround instances with different databases:

Read-Only Mode

OpenGround MCP server is read-only by design. It only exposes search tools, not modification tools.

Performance Tuning

Tune search performance via OpenGround config:

Debugging

Test Server Manually

Run the server directly:
The server listens on stdin/stdout. You should see no output (it’s waiting for JSON-RPC messages). Press Ctrl+C to exit.

Check PATH

Verify openground-mcp is in PATH:

Enable Logging

OpenGround MCP server logs to stderr:
In your client’s config:

Test with MCP Inspector

Use the MCP Inspector to test:

Troubleshooting

Server Not Starting

1

Verify Installation

2

Test Server

3

Check Python Environment

Ensure your client can access the same Python environment:

No Tools Available

If the client doesn’t see OpenGround tools:
  1. Verify server is configured correctly
  2. Restart the client completely
  3. Check client logs for connection errors
  4. Test with MCP Inspector

Search Returns No Results

Verify documentation is indexed:

Permission Errors

Ensure execute permissions:

Example: Writing a Custom Client

If you’re building a custom MCP client:
See the MCP specification for complete protocol details.

Next Steps

MCP Overview

Learn more about MCP architecture

Add Libraries

Index more documentation

Configure Search

Customize embedding models and retrieval

API Reference

Detailed tool specifications