mcp-go-starter

mcp-go-starter

0

This project is a starter kit for creating a Go-based Model Context Protocol (MCP) server. It includes features like a greeting tool, markdown resources, and prompts, designed for easy integration into various development environments.

mcp-go-starter

A starter repository for building a Go MCP server using mcp-go, Cobra, and Viper.

Quick Start

  • Run the server using the provided configuration in mcp.json.
  • Use available scripts for development mode or build and run manually.

Environment Variables

  • MCP_GREETING: Default greeting for the hello tool.
  • MCP_SECRET: Secret value for demonstration.

Features

  • Hello World Tool: Returns a greeting using a name argument.
  • Markdown Resource: Serves a markdown file as an MCP resource.
  • Prompt Example: Greets the user by name.

VS Code Integration

  • Preconfigured for rapid development with .vscode/mcp.json.

Codespaces/Devcontainer

  • Provides a basic devcontainer for GitHub Codespaces with Go tools enabled.

For more details, see the mcp-go README.