Community ruleset: x-agent-trust compliance (OpenAPI Extensions Registry) #2938
razashariff
started this conversation in
Rulesets
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Published a Spectral ruleset for checking OpenAPI specs against the
x-agent-trustextension in the OpenAPI Extensions Registry.Install:
Use:
9 rules covering:
x-agent-trust-presentx-agent-trust-algorithm-presentx-agent-trust-algorithm-strongx-agent-trust-levels-presentx-agent-trust-levels-nonemptyx-agent-trust-keys-urlx-agent-trust-keys-url-httpsx-agent-trust-sensitive-opsx-agent-trust-no-parameterThe
x-agent-trust-no-parameterrule enforces the anti-pattern guidance from the registry entry itself: the Agent-Signature header should be declared via securitySchemes, not as a regular operation parameter.npm: spectral-x-agent-trust
Source: razashariff/spectral-x-agent-trust
Registry entry: spec.openapis.org/registry/extension/x-agent-trust.html
For a deeper audit including OWASP MCP Top 10 checks, the Cybersecify scanner covers the full scope.
Happy to take feedback on the rules or severity levels.
All reactions