Skip to content

Conversation

alvarobartt
Copy link
Contributor

@alvarobartt alvarobartt commented May 28, 2025

This PR adds python as the language for a snippet that had no language i.e., no syntax highlighting in README.md, and also fixes the indentation as it was using 8-spaces instead of 4-spaces as in the rest of the snippets. This PR also updates the references from OAuthServerProvider (wrong import symbol) to OAuthAuthorizationServerProvider (correct import symbol), as well as adding the missing imports in the snippet and a reference on how to implement your own OAuthAuthorizationServerProvider based on an existing example under examples/.

Motivation and Context

To improve the readability and allow for easier copy-paste without having to format it afterwards.

How Has This Been Tested?

N/A

Breaking Changes

N/A

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

N/A

It was being referenced as `OAuthServerProvider` instead of
`OAuthAuthorizationServerProvider` which is the actual class name in the
codebase
@alvarobartt alvarobartt changed the title Fix indentation and add missing lang in snippet in README.md Fix and update OAuthAuthorizationServerProvider snippet in README.md May 28, 2025
Copy link
Contributor

@ihrpr ihrpr left a comment

Choose a reason for hiding this comment

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

Thank you!

@ihrpr ihrpr merged commit d55cb2b into modelcontextprotocol:main May 28, 2025
10 checks passed
gspencergoog pushed a commit to gspencergoog/mcp-python-sdk that referenced this pull request Jul 29, 2025
…cp_protocol_version-fallback-value

Fix `MCP-Protocol-Version` fallback value
saqadri pushed a commit to saqadri/stdio-fixes that referenced this pull request Aug 6, 2025
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.

2 participants