Repository navigation
Conversation
|
No actionable comments were generated in the recent review. Summary
Change: Feature Merge Risk:
|
9690494 to
ff8848e
Compare
Adds the via and middleware parameters to the X-Client-Info spec and defines how a library built on an SDK appends them to the SDK's value. Refs SDK-1877 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
ff8848e to
6fb1ef3
Compare
Summary
This PR adds
viaandmiddlewareparameters to theX-Client-Infospec, and defines how a library built on an SDK appends them to the SDK's value:viais the library's ownname/version, e.g.supabase-server/1.9.2.middlewareis a comma-separated list under one key, sorted and without duplicates. Known tokens are listed in a table, starting withoauth-protected-resource; libraries may supply their own.The parameters are appended in order, as
; key=value, in a single header. Custom keys are also supported, using ASCII letters, digits, underscores or hyphens. SDK-owned keys are reserved even when absent from the header; reserved keys and duplicates are checked case-insensitively.Example
Why
@supabase/serverneeds to identify itself inX-Client-Infowithout replacing the SDK's own parameters, so that usage from MCP servers can be queried in gateway logs and the warehouse.The supabase-js implementation is in supabase/supabase-js#2887.
Additional notes
The spec changes land before the supabase-js PR merges.
AI-assisted generated summary
Written with Claude Code and reviewed by me.
Files:
specs/client/observability/client_info.md(parameters table, "Library-supplied parameters" and "Errors" sections) andcapabilities/client.yaml(description).🤖 Generated with Claude Code