Mcp server best practices#32
Merged
Merged
Conversation
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
|
Cursor Agent can help with this pull request. Just |
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
kentcdodds
marked this pull request as ready for review
February 18, 2026 17:05
kentcdodds
temporarily deployed
to
preview-32
February 18, 2026 17:05 — with
GitHub Actions
Inactive
|
🔎 Preview deployed: https://epicflare-pr-32.kentcdodds.workers.dev Worker: Mocks:
|
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
|
Bugbot Autofix prepared fixes for 1 of the 1 bugs found in the latest run.
|
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
kentcdodds
commented
Feb 18, 2026
kentcdodds
temporarily deployed
to
preview-32
February 18, 2026 18:20 — with
GitHub Actions
Inactive
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.
Adds MCP Server Best Practices documentation and updates the example server to follow these guidelines for improved AI interaction and discoverability.
Note
Low Risk
Primarily documentation and metadata/UX improvements for an example tool; behavior changes are small and covered by updated E2E assertions.
Overview
Adds
docs/mcp-server-best-practices.md, capturing recommended MCP patterns (server instructions, tool descriptions/annotations, schemas, responses, etc.).Refactors the example MCP server to consume centralized
server-metadata.tsfor server identity/instructions anddo_mathtool metadata/annotations, and upgradesdo_mathto return markdowncontentplusstructuredContent, validate inputs (finite numbers, precision), and emit actionable error responses (e.g., division by zero/non-finite results). E2E tests are updated to assert presence of onboarding instructions and verifystructuredContent.resultalongside text output.Written by Cursor Bugbot for commit 2ff2860. This will update automatically on new commits. Configure here.