发布

  • This release includes several major improvements to the SDK architecture, adds example servers, and improves type safety throughout the codebase.

    frostbyte_neo 发布于 2024-11-13 14:50:36 +00:00 | 965 次提交 在此版本后已推送到 main

    • Added example servers demonstrating common use cases:

      • simple-prompt: Example server exposing a customizable prompt template
      • simple-resource: Example server exposing sample text files as resources
      • simple-tool: Example server implementing a website fetching tool
    • Added client capability checking:

      • New check_client_capability() method to verify specific capabilities
      • Store client parameters from initialization request
      • Improved type safety for capability verification
    • Minimum supported Python version is now explicitly set to 3.10

    • Removed re-exported types from mcp.server - clients should now import directly from mcp.types

    • Removed helper types from mcp.server.types in favor of using spec types directly from mcp.types

    • Renamed mcp.server.types to mcp.server.models with minimal required types

    • More explicit type safety with RequestContext[ServerSession] return type

    • Simplified server architecture by reducing abstraction layers

    • Improved package infrastructure with PyPI release workflow

    • Added GitHub Actions workflows for releases and checks

    • Added README files for all example servers

    • Improved main package documentation

    • Updated installation instructions to reflect new package name

    • @dsp-ant (David Soria Parra)

    None

    pip install mcp==0.8.0
    

    For more information, please see the documentation.

    下载附件