How awakened-sudo/datagovmy-mcp works
Project type and purpose
• This is a backend‐only MCP (Model Context Protocol) server written in Go. It exposes DataGovMy datasets as “tools” over either HTTP (default localhost:8080) or stdio (for AI agents like Cline/Cursor).
File structure
• main.go: application entrypoint—initializes server, loads configuration, and starts listening
• handlers.go: registers HTTP/stdio endpoints (MCP transport layer) and wires incoming requests to tool logic
• tool.go: implements each DataGovMy tool’s schema, input validation, data‐fetching logic, and MCP response formatting
• go.mod/go.sum: dependency declarations
• README.md: project description, usage patterns, and extension guidelines
README for additional insights
• Describes a single monolithic Go service with no separate frontend
• Clients: Cline (AI agent CLI) or Cursor (AI code editor)
• External dependency: DataGovMy open‐data API as the ultimate data source
• Transport modes: HTTP and stdio (subprocess)