This project is a proof of concept (POC) demonstrating how to implement a Model Context Protocol (MCP) with a custom-built host to play with agentic systems. The code is primarily written from scratch to provide a clear understanding of the underlying mechanisms.
The primary goal of this project is to enable easy testing of agentic systems through the Model Context Protocol. For example:
- The
dispatch_agentcould be specialized to scan codebases for security vulnerabilities - Create code review agents that can analyze pull requests for potential issues
- Build data analysis agents that process and visualize complex datasets
- Develop automated documentation agents that can generate comprehensive docs from code
These specialized agents can be easily tested and iterated upon using the tools provided in this repository.
- Go >= 1.21
- Access to the Vertex AI API on Google Cloud Platform
github.com/mark3labs/mcp-go
The tools use the default GCP login credentials configured by gcloud auth login.
host/openaiserver: Implements a custom host that mimics the OpenAI API, using Google Gemini and function calling. This is the core of the POC.tools: Contains various MCP-compatible tools that can be used with the host:- Bash: Execute bash commands
- Edit: Edit file contents
- GlobTool: Find files matching glob patterns
- GrepTool: Search file contents with regular expressions
- LS: List directory contents
- Replace: Replace entire file contents
- View: View file contents