Add relic catalog tools for relic-stat issue planning #3

Closed
opened 2026-04-27 15:51:46 -07:00 by nelsong6 · 0 comments
nelsong6 commented 2026-04-27 15:51:46 -07:00 (Migrated from github.com)

Goal

Add relic-aware catalog support to the SpireLens MCP bridge so issue-agent planning can resolve relic identities the same way it already resolves cards.

This is the blocker exposed by the failed Pen Nib test run: the planner correctly discovered that Pen Nib is not a card, but then had no lookup_relic, list_relics, or relic validation metadata to continue.

Proposed MCP additions

  • Add catalog actions:
    • lookup_relic
    • list_relics
  • Include relic_count in get_catalog_summary.
  • Include relic surfaces in get_validation_capabilities, at minimum:
    • player_relic_bar
    • relic_select
    • treasure
  • Include tool manifest entries for lookup_relic and list_relics.
  • Surface scenario guidance that relic scenarios should use real resolved relic ids with relics, add_relics, or remove_relics.

Implementation notes

A scratch draft exists in D:\automation\scratch\relic-mcp-support with changes to:

  • McpMod.Catalog.cs
  • mcp/server.py

The draft follows the existing card catalog shape:

  • lookup_relic(query, max_matches=10) returns status, kind=relic, match_count, matches, and relic when exactly one match exists.
  • list_relics(rarity=None, query=None, limit=50) returns status, echoed filters, count, and relics[] with id, name, rarity, and description.
  • Relic validation capabilities explicitly state that forced relic hover is not available yet; current evidence is get_game_state plus screenshots of supported visible relic surfaces.

Acceptance

  • lookup_relic("Pen Nib") resolves the real Pen Nib relic id from the live STS2 model catalog.
  • list_relics(query="nib") includes Pen Nib.
  • get_catalog_summary includes a nonzero relic_count.
  • get_validation_capabilities includes relic_surfaces and the two relic catalog tools in tools[].
  • Existing card catalog behavior remains unchanged.
  • Python bridge compiles with python -m py_compile mcp/server.py.

Follow-up

After this lands, update the SpireLens issue-agent prompt/tool allowlist so relic-stat issues classify targets as card/relic/mixed and use these MCP tools instead of aborting after lookup_card misses.

## Goal Add relic-aware catalog support to the SpireLens MCP bridge so issue-agent planning can resolve relic identities the same way it already resolves cards. This is the blocker exposed by the failed Pen Nib test run: the planner correctly discovered that Pen Nib is not a card, but then had no `lookup_relic`, `list_relics`, or relic validation metadata to continue. ## Proposed MCP additions - Add catalog actions: - `lookup_relic` - `list_relics` - Include `relic_count` in `get_catalog_summary`. - Include relic surfaces in `get_validation_capabilities`, at minimum: - `player_relic_bar` - `relic_select` - `treasure` - Include tool manifest entries for `lookup_relic` and `list_relics`. - Surface scenario guidance that relic scenarios should use real resolved relic ids with `relics`, `add_relics`, or `remove_relics`. ## Implementation notes A scratch draft exists in `D:\automation\scratch\relic-mcp-support` with changes to: - `McpMod.Catalog.cs` - `mcp/server.py` The draft follows the existing card catalog shape: - `lookup_relic(query, max_matches=10)` returns `status`, `kind=relic`, `match_count`, `matches`, and `relic` when exactly one match exists. - `list_relics(rarity=None, query=None, limit=50)` returns `status`, echoed filters, `count`, and `relics[]` with `id`, `name`, `rarity`, and `description`. - Relic validation capabilities explicitly state that forced relic hover is not available yet; current evidence is `get_game_state` plus screenshots of supported visible relic surfaces. ## Acceptance - `lookup_relic("Pen Nib")` resolves the real Pen Nib relic id from the live STS2 model catalog. - `list_relics(query="nib")` includes Pen Nib. - `get_catalog_summary` includes a nonzero `relic_count`. - `get_validation_capabilities` includes `relic_surfaces` and the two relic catalog tools in `tools[]`. - Existing card catalog behavior remains unchanged. - Python bridge compiles with `python -m py_compile mcp/server.py`. ## Follow-up After this lands, update the SpireLens issue-agent prompt/tool allowlist so relic-stat issues classify targets as card/relic/mixed and use these MCP tools instead of aborting after `lookup_card` misses.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
romaine-life/spirelens-mcp#3
No description provided.