Skip to content

Conversation

@fatelei
Copy link

@fatelei fatelei commented Dec 11, 2025

run example script using PEP 723 fix #1733

Motivation and Context

  • Current examples are verbose - each needs its own pyproject.toml, directory structure, and main.py
  • This adds friction for users trying to understand or copy examples
  • PEP 723 (supported by uv run) allows dependencies to be declared inline in a single script file

How Has This Been Tested?

run example script in local

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

@maxisbey maxisbey closed this Dec 11, 2025
@maxisbey
Copy link
Contributor

Closing this as it just deletes all examples

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.

Refactor examples to use PEP 723 inline script metadata

2 participants