EdmondFrank/mcp-probe-go
3.2
If you are the rightful owner of mcp-probe-go and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A Go-based Model Context Protocol (MCP) server designed for code searching and extraction using ElasticSearch and AST-grep.
Tools
3
Resources
0
Prompts
0
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.go
andcli/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 for details.