Skip to content

Commit 5fbe987

Browse files
committed
rename: self.endpoint -> self.handler in handler classes
1 parent 710c407 commit 5fbe987

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/mcp/server/lowlevel/notification_handler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def __init__(
6363

6464
def __init__(self, method: str, handler: Callable[[NotificationCtx, Any], Awaitable[None]]) -> None:
6565
self.method = method
66-
self.endpoint = handler
66+
self.handler = handler
6767

6868
async def handle(self, ctx: NotificationCtx, params: Any) -> None:
69-
await self.endpoint(ctx, params)
69+
await self.handler(ctx, params)

src/mcp/server/lowlevel/request_handler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def __init__(
134134

135135
def __init__(self, method: str, handler: Callable[[RequestCtx, Any], Awaitable[Any]]) -> None:
136136
self.method = method
137-
self.endpoint = handler
137+
self.handler = handler
138138

139139
async def handle(self, ctx: RequestCtx, params: Any) -> Any:
140-
return await self.endpoint(ctx, params)
140+
return await self.handler(ctx, params)

0 commit comments

Comments
 (0)