Split protocol types into a standalone mcp-types package (#2973)

This commit is contained in:
Marcelo Trylesinski 2026-06-25 19:18:38 +02:00 • committed by GitHub
commit 0ee7f1b293
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1040 additions and 867 deletions

View file

@ -22,7 +22,7 @@ Using the MCP client, you can retrieve resources like this using the STDIO trans
```python
import asyncio
from mcp.types import AnyUrl
from pydantic import AnyUrl
from mcp.client.session import ClientSession
from mcp.client.stdio import StdioServerParameters, stdio_client

View file

@ -2,7 +2,7 @@ from urllib.parse import urlparse
import anyio
import click
from mcp import types
import mcp_types as types
from mcp.server import Server, ServerRequestContext
SAMPLE_RESOURCES = {