This project is a Go language adapter example for Gooo, located in the examples/service-grant-mcp directory of the kimjooyoon/gooo-go-ports repository. It provides a local stdio MCP server that enables coding agents to discover and call tools for inspecting service grant changes, comparing tool alias origins, and comparing saved tool definitions. The server itself does not initiate model calls, open HTTP ports, require API keys, or connect to any external services; all decisions are made by the existing Gooo generation logic, and the Go adapter is only responsible for the MCP protocol and precise fact transmission.
Main capabilities include: exposing the assess_service_grant tool by default, used to check whether a supported narrowing operation preserves a required service request; additionally exposing the assess_service_grant_change tool via the --many-required option, supporting multiple ordered required requests; adding the read-only tool gooo_compare_alias_origin via the --alias-origin-change option, used to compare whether a name selected by the agent resolves to a different declaring server or original function after an update; adding the gooo_compare_saved_tool_definitions tool via the --definition-snapshot option, used to compare tool definitions in a saved tools/list exchange.
Usage: build from a reviewed checkout using Go 1.27.3; the build process downloads pinned public modules through the configured Go proxy and checksum service, and the resulting native executable requires no Go or Gooo installation at runtime. Configure the absolute path of the executable in the MCP host, starting it via stdio with no arguments. Optional features are enabled via startup arguments. Tool arguments must be provided as exact JSON string objects; the server preserves the original facts and returns structured content and JSON text blocks.
Applicable scenarios: suitable for developer or agent workflows that need offline, replayable API policy comparison and MCP catalog comparison, for example assessing impact before narrowing a service grant, checking alias origin changes after a tool update, and comparing saved tool definition snapshots.
Limitations: the provided grants and requests are unauthenticated; the tools do not apply authorization, do not check live permissions, and do not contact services; comparisons are based on the provided snapshots and do not authenticate catalog integrity, live server identity, or current permissions; all results retain execution_authorized: false. The transport layer has argument size and frame size limits, and the specific limits vary by tool. This project is example code and does not claim compatibility with all MCP clients or all service schema languages.