In addition to tools (on-demand queries), MCP supports resources — static or semi-static data that agents can load into their context window.
Requirements:
- Expose GPU topology as an MCP resource (device count, names, UUIDs, MIG layout)
- Resource URI pattern:
gpu://topology, gpu://device/{index}
- Use
mcp.AddResource() from the Go SDK
- Topology data refreshes on server start, not on every request
Why this matters:
- Agents can preload GPU context without calling tools
- Reduces tool call overhead for basic questions like "how many GPUs are there?"
- Follows MCP best practice of separating static context from dynamic queries
Difficulty: Medium
See: MCP Resources spec
In addition to tools (on-demand queries), MCP supports resources — static or semi-static data that agents can load into their context window.
Requirements:
gpu://topology,gpu://device/{index}mcp.AddResource()from the Go SDKWhy this matters:
Difficulty: Medium
See: MCP Resources spec