You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Catalog-wide invariants — apply the same assertion to every tool without enumerating names. Useful when a server rewrites its tool schema per caller (auth scopes, feature flags):
496
+
497
+
```python
498
+
AssertableMCP(payload).lists_tools().every_tool(
499
+
lambdat: t.does_not_accept(["internal_user_id"])
500
+
)
501
+
```
502
+
495
503
#### Building requests with `MessageBuilder`
496
504
497
505
`MessageBuilder` constructs MCP JSON-RPC messages with native MCP vocabulary on top of any transport-level `RequestBuilder`. Inject `HttpxRequestBuilder` for FastAPI/Starlette/FastMCP testing, or `DjangoRequestBuilder` for Django-hosted MCP servers — the output of `.build()` matches whichever you inject.
0 commit comments