Weather Demo
Provides a reference implementation for protecting Model Context Protocol (MCP) tools, resources, and prompts with a paywall using Nevermined's Python SDK.
关于
This repository serves as a crucial reference and demonstration project designed to validate and test the integration of the Model Context Protocol (MCP) within Nevermined's Python SDK, `payments-py`. It specifically illustrates how to implement robust paywall protection for MCP tools, resources, and prompts, offering examples for both High-Level (FastMCP) and Low-Level JSON-RPC server configurations. Intended for local experimentation, integration tests, and showcasing capabilities, it highlights the process of securing access and burning credits for MCP interactions.
主要功能
- 6 GitHub stars
- Exposes a sample `weather.today(city)` tool and related resource
- Demonstrates paywall protection for MCP tools, resources, and prompts
- Supports dynamic credit burning based on usage
- Integrates Nevermined Payments for access control and credit burning
- Offers High-Level (FastMCP) and Low-Level server implementations
使用案例
- Providing a reference implementation for `payments-py` SDK integration
- Testing and validating Model Context Protocol (MCP) integration with Nevermined payments
- Showcasing how to protect API endpoints and resources with a paywall