Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"@hono/mcp": "0.1.5",
"@hono/node-server": "^2.1.6",
"@modelcontextprotocol/sdk": "1.32.2",
"hono": "4.13.16",
"hono": "4.13.17",
"tsx": "^4.23.15",
"zod": "4.6.7"
},
Expand Down
26 changes: 13 additions & 13 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions tests/test_end_user_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -728,9 +728,9 @@ def test_requests_refused_together_share_one_accounts_listing(self, monkeypatch)

class Listing(concurrent.futures.Future): # type: ignore[type-arg]
def result(self, timeout: float | None = None) -> Any:
# The owner waits only once its own GET /accounts is done, so a wait while it
# is still held is the other account's, joining it.
joined.set()
# Only a waiter on this accounts listing can release its HTTP response.
if self is toolset._fetching_accounts:
joined.set()
return super().result(timeout)

monkeypatch.setattr(concurrent.futures, "Future", Listing)
Expand All @@ -747,7 +747,8 @@ def handle(_self: Any, request: httpx.Request) -> httpx.Response:

monkeypatch.setattr(httpx.HTTPTransport, "handle_request", handle)
mcp = _GuardedMcp(monkeypatch, {"a": "user-a", "b": "user-b"})
tools = StackOneToolSet(api_key="k").fetch_tools(account_ids=["a", "b"])
toolset = StackOneToolSet(api_key="k")
tools = toolset.fetch_tools(account_ids=["a", "b"])
assert sorted(t.name for t in tools) == ["tool_a", "tool_b"]
assert len(calls) == 1
assert sorted((h["x-account-id"], h.get("x-end-user-id", "")) for h in mcp.listed) == [
Expand Down