Skip to content

Conversation

@DaleSeo
Copy link
Contributor

@DaleSeo DaleSeo commented Dec 11, 2025

Motivation and Context

This PR addresses outdated examples and documentation:

  1. Deprecated APIs: Example files were using deprecated methods (tool, resource, prompt) instead of the current recommended APIs (registerTool, registerResource, registerPrompt)
  2. Outdated protocol version: Documentation referenced protocol version 2025-03-26 instead of the latest 2025-11-25 (as defined in LATEST_PROTOCOL_VERSION)

These inconsistencies could mislead developers learning from the examples and cause them to use deprecated patterns.

How Has This Been Tested?

I ran each updated server locally and checked that they're still working like before using MCP Insepctor.

Breaking Changes

None. These changes only affect example code and documentation, not the SDK itself.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

@DaleSeo DaleSeo requested a review from a team as a code owner December 11, 2025 02:08
@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 11, 2025

Open in StackBlitz

npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/sdk@1285

commit: d9c9218

@DaleSeo DaleSeo force-pushed the update-server-examples branch from 900231f to d9c9218 Compare December 11, 2025 02:11
Copy link
Contributor

@felixweinberger felixweinberger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@felixweinberger felixweinberger merged commit 67d79d4 into modelcontextprotocol:main Dec 11, 2025
6 checks passed
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.

No examples of new McpServer methods, while ones shown in examples/ being deprecated

2 participants