Repository navigation
Send MCP server instructions; fix stale view_deck reference - #287
Merged
Merged
Conversation
Fixes #269 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Adds an initialize-time instructions string built from --skills-dir so the model loads the mtg-deckbuilder skills when available and proceeds without them when not. Also reads the server version from package.json. Fixes #276 [#tern:check] Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…and-view-deck-ref
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
instructionsoninitialize, built from--skills-dirvialistBundledSkills. Every skill sentence is conditional ("if it appears in your available skills"), with a one-line install nudge and standalone tool guidance, so absent skills never block or confuse the model. Fixes MCP server sends noinstructions, so the model never learns to load the bundled skills first #276.package.jsoninstead of hardcoded0.1.0.get_deckdescription andspecs/02-mcp-server.mdnow point atdeck_listinstead of the removedview_deck. Fixesget_deckdescription tells the model to use the removedview_decktool #269.Test plan
pnpm typecheckpnpm --filter @mtg-deckbuilder/mcp-server test(newinstructions.test.ts: skill names listed, nudge present without skills dir, conditional wording)deck_listafter one install mentionNot covered: root
README.mdstill lists pre-split tools (view_deck,list_views,remove_card, ...) — that whole tool list is stale and deserves its own pass.🤖 Generated with Claude Code