fix(server-card): declare conditional authentication as optional - #1174
fix(server-card): declare conditional authentication as optional#1174huige66631 wants to merge 1 commit into
Conversation
|
Thank you for the PR! I would honestly not merge this as this PR is saying that this server on URL |
|
Thanks, that makes sense. I agree that the default I will not pursue this metadata change as-is. Would you prefer me to close this PR, or is there a specific way you would like the public |
@huige66631 thank you but I agree with @MQ37 let's close it |
Problem
The server card declares
authentication.required: true, andserver.jsonmarks theAuthorizationheader as required. This is inaccurate for the hosted?tools=surface, wheresearch-actors,fetch-actor-details,search-apify-docs, andfetch-apify-docswork without an Apify token.Solution
Declare authentication as optional in both discovery metadata formats and document that a token remains required for the default tool set and non-public tools. This keeps the metadata aligned with the existing runtime authorization policy without changing access control.
Changes
Authorizationheader inserver.jsonas optional and document the anonymous?tools=surface.Testing
pnpm run type-checkpnpm run lintpnpm run test:unitpnpm run format:checkpnpm run check:agentsNotes for Reviewer
This PR intentionally does not change runtime authentication.
isApiTokenRequired()continues to require a token when no tool selection is supplied or when any non-public tool is selected. The private hosted-server repository may need its matching server-card assertion updated when this change is released.Fixes #1170