Skip to content

Commit 37fc2d9

Browse files
committed
Sync with the engine: list_bookings notes a read sent as POST, sign-in hint names connect
1 parent 429deff commit 37fc2d9

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎bookingkoala_api_mcp/bookingkoala/client.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def session(ctx: ToolContext) -> Session | None:
118118
def require_session(ctx: ToolContext) -> Session:
119119
s = session(ctx)
120120
if s is None:
121-
raise AuthExpiredError("The app signed this account out. Sign in again in Chrome, then reconnect.")
121+
raise AuthExpiredError("The app signed this account out. Sign in again in Chrome, then run connect.")
122122
return s
123123

124124

@@ -173,7 +173,7 @@ async def api(ctx: ToolContext, method: str, path: str, *, s: Session | None = N
173173
answer = (body.get("response") if isinstance(body, dict) else None) or {}
174174
status, message = answer.get("api_status"), str(answer.get("message") or "")
175175
if status == _SIGNED_OUT:
176-
raise AuthExpiredError("The app signed this account out. Sign in again in Chrome, then reconnect.")
176+
raise AuthExpiredError("The app signed this account out. Sign in again in Chrome, then run connect.")
177177
if status == _OK:
178178
return answer.get("data")
179179
if status != _CSRF_REFUSED and not message.startswith(_STALE_CSRF):

‎bookingkoala_api_mcp/bookingkoala/tools/list_bookings.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""List bookings: POST `/api/v6/bookings/search?user_type=admin&status=<s>`."""
1+
"""List bookings: POST `/api/v6/bookings/search?user_type=admin&status=<s>` (a read sent as POST)."""
22

33
from __future__ import annotations
44

@@ -13,7 +13,7 @@
1313
if TYPE_CHECKING:
1414
from bookingkoala_api_mcp.core.context import ToolContext
1515

16-
# `authorized` is refused by the app .
16+
# `authorized` is refused by the app.
1717
STATUS_FILTERS = ["all", "upcoming", "today", "unassigned", "completed", "pending", "declined", "paused"]
1818

1919
INPUT_SCHEMA: dict[str, Any] = {

0 commit comments

Comments
 (0)