Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

docs(examples): fixing the prompts example #318

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

Niraj-Fonseka
Copy link
Contributor

Motivation and Context

The example provided under the Prompts section in the Readme doesn't work due to types not being importable from mcp.server.fastmcp. If someone is using this library for the first time, seeing this error results in bad user/developer experience
image

In this change, the existing example was corrected with the proper imports and tested by running locally.

How Has This Been Tested?

After the example was fixed, the example was run locally with the latest version of the library.

Breaking Changes

No

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

@dsp-ant
Copy link
Member

dsp-ant commented Mar 19, 2025

Thank you

@dsp-ant dsp-ant merged commit 5a54d82 into modelcontextprotocol:main Mar 19, 2025
3 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.

2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.