Remove helper types

The helper types in mcp.server.types got really confusioning during
implementation as they overlapped with mcp.types. I now believe it
is better if we stay more low level to the spec types.

To do this, we now only use mcp.types everywhere. We renamed mcp.server.types
to mcp.server.models and removed it to the absolute minimum.
This commit is contained in:
David Soria Parra
2024-11-11 20:05:51 +00:00
parent 837309c3c8
commit f5d82bd229
8 changed files with 40 additions and 98 deletions

View File

@@ -6,7 +6,7 @@ import anyio.lowlevel
from anyio.streams.memory import MemoryObjectReceiveStream, MemoryObjectSendStream
from pydantic import AnyUrl
from mcp.server.types import InitializationOptions
from mcp.server.models import InitializationOptions
from mcp.shared.session import (
BaseSession,
RequestResponder,