Probe Go
A Go-based Model Context Protocol (MCP) server for searching and extracting code using ElasticSearch and AST-grep, with support for code block extraction and advanced code queries.
Installation
npx mcp-probe-goAsk AI about Probe Go
Powered by Claude · Grounded in docs
I know everything about Probe Go. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
mcp-probe-go
A Go-based Model Context Protocol (MCP) server for searching and extracting code using ElasticSearch and AST-grep, with support for code block extraction and advanced code queries.
Features
- Search code in your repository using ElasticSearch queries.
- Query code using ast-grep structural pattern matching.
- Extract code blocks from files by line number or symbol name.
- Supports filtering, context lines, test code inclusion, and output formatting.
Getting Started
Prerequisites
- Go 1.23+ installed
- probe-go-sdk and mcp-go dependencies
Build
cd cli
go build -o probe-mcp-server main.go
Run
./probe-mcp-server
The server will start and listen for stdio requests.
Usage
The server registers the following tools:
search_code: Search code using ElasticSearch queries.query_code: Search code using ast-grep patterns.extract_code: Extract code blocks by line or symbol.
Each tool exposes a set of arguments for flexible code search and extraction. See the code for details on each tool's options.
Development
- Main server logic is in
main.goandcli/main.go. - Tool handlers are in
search_code.go,query_code.go, andextract_code.go. - Uses the mcp-go server framework.
License
MIT License. See LICENSE for details.
