cli-Go-Pro is a Go rewrite of the MCP Python CLI project under the course Introduction to Model Context Protocol (MCP). It enables interactive chat capabilities with AI models through the Anthropic API, supporting document retrieval, command-based prompts, and extensible tool integrations via the MCP (Model Context Protocol) architecture.
- Configure
.envwith yourANTHROPIC_API_KEY. - Run unit tests/build:
go mod tidy go run main.go
Interact directly in the CLI.
Use @ followed by document id to insert docs.
Use / to execute commands.
You can explore the Go server's resources and prompts visually using the official Anthropics MCP Inspector. Run the following command from the root folder:
npx @modelcontextprotocol/inspector go run mcp_server/main.goSpecial thanks to the developers of the open-source libraries that made this Go port possible:
- mark3labs/mcp-go for the robust MCP server and client implementation in Go.
- anthropics/anthropic-sdk-go for seamless Claude AI integrations.
- c-bata/go-prompt for the excellent interactive CLI framework with auto-completion.