Skip to content

feat(#420): add server instructions and improve MCP tool descriptions - #427

Merged
admarble merged 4 commits into
mainfrom
feature/420-mcp-server-add-server-instructions-and-improve-too
Mar 25, 2026
Merged

admarble merged 4 commits into
mainfrom
feature/420-mcp-server-add-server-instructions-and-improve-too

Conversation

@admarble

Copy link
Copy Markdown
Contributor

Summary

  • Add server-level instructions field explaining sequant's workflow, tool relationships, and operational constraints (~150 words)
  • Add tool annotations (readOnlyHint, idempotentHint, destructiveHint, openWorldHint) to all three tools for client approval decisions
  • Improve tool descriptions with usage guidance, cross-tool relationships, and example inputs
  • Enumerate valid phase values (spec, exec, qa) in the phases parameter description
  • Improve resource descriptions to explain purpose rather than file paths

Test plan

  • All 74 existing MCP tests pass (updated 1 assertion for new description text)
  • New tests for server instructions via client.getInstructions()
  • New tests for tool annotations on all 3 tools (AC-2, AC-3, AC-4)
  • New test for phases parameter enumeration (AC-8)
  • New tests for resource descriptions (AC-9)
  • Build and lint pass

Closes #420

🤖 Generated with Claude Code

Add server-level instructions, tool annotations, and improved
descriptions to the MCP server for better LLM discoverability.
Server instructions explain the workflow, tool relationships, and
operational constraints. Tool annotations (readOnlyHint, idempotentHint,
destructiveHint, openWorldHint) enable client approval decisions.

Entire-Checkpoint: 6c5a72411b5b
Existing tests verified annotations and schema but lacked assertions
for the specific description content required by AC-5 (run tool phases,
example input, cross-tool guidance), AC-6 (status cross-tool relationship,
polling guidance), and AC-7 (log insights, when to check, runId format).

Uses semantic anchors (1-2 word phrases) to catch meaningful regressions
while surviving reasonable rewording of descriptions.
…d descriptions

Add "How Your AI Discovers Sequant" section explaining server instructions
and tool annotations. Update resource descriptions from file paths to
purpose-oriented text. Update sequant_logs parameter descriptions.
Merge main into feature branch to resolve conflicts from #422, #423, #428.
CHANGELOG: keep both #420 and #423 entries.
status.ts: combine reconcile description (#423) with cross-tool guidance
and annotations (#420).
@admarble
admarble merged commit a144bbc into main Mar 25, 2026
5 checks passed
@admarble
admarble deleted the feature/420-mcp-server-add-server-instructions-and-improve-too branch March 25, 2026 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MCP server: add server instructions and improve tool descriptions for LLM discoverability

1 participant