@toa.io/extensions.exposition 1.0.0-alpha.282 → 1.0.0-alpha.284
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +56 -0
- package/components/exposition.octets/manifest.toa.yaml +11 -0
- package/components/exposition.octets/types/index.d.ts +3 -0
- package/components/exposition.octets/types/toa.d.ts +41 -0
- package/components/identity.bans/operations/transit.js +1 -1
- package/components/identity.bans/tsconfig.json +1 -1
- package/components/identity.bans/tsconfig.tsbuildinfo +1 -1
- package/components/identity.bans/types/index.d.ts +3 -0
- package/components/identity.bans/types/toa.d.ts +34 -0
- package/components/identity.basic/manifest.toa.yaml +13 -2
- package/components/identity.basic/operations/add.js +1 -1
- package/components/identity.basic/operations/authenticate.js +1 -1
- package/components/identity.basic/operations/check.js +1 -1
- package/components/identity.basic/operations/delete.js +1 -1
- package/components/identity.basic/operations/incept.js +18 -2
- package/components/identity.basic/operations/info.js +1 -1
- package/components/identity.basic/operations/lib/credentials.js +1 -1
- package/components/identity.basic/operations/transit.js +3 -2
- package/components/identity.basic/source/add.ts +3 -3
- package/components/identity.basic/source/authenticate.ts +2 -2
- package/components/identity.basic/source/check.ts +1 -1
- package/components/identity.basic/source/delete.ts +2 -2
- package/components/identity.basic/source/incept.ts +31 -3
- package/components/identity.basic/source/info.ts +1 -1
- package/components/identity.basic/source/transit.ts +6 -4
- package/components/identity.basic/tsconfig.json +1 -1
- package/components/identity.basic/tsconfig.tsbuildinfo +1 -1
- package/components/identity.basic/types/index.d.ts +22 -0
- package/components/identity.basic/types/toa.d.ts +121 -0
- package/components/identity.clients/manifest.toa.yaml +243 -0
- package/components/identity.clients/operations/describe.js +44 -0
- package/components/identity.clients/operations/lib/Context.js +2 -0
- package/components/identity.clients/operations/lib/Entity.js +2 -0
- package/components/identity.clients/operations/lib/canonical.js +24 -0
- package/components/identity.clients/operations/lib/cimd.js +86 -0
- package/components/identity.clients/operations/lib/errors.js +5 -0
- package/components/identity.clients/operations/lib/index.js +7 -0
- package/components/identity.clients/operations/lib/redirect.js +32 -0
- package/components/identity.clients/operations/register.js +84 -0
- package/components/identity.clients/source/describe.ts +65 -0
- package/components/identity.clients/source/lib/Context.ts +38 -0
- package/components/identity.clients/source/lib/Entity.ts +31 -0
- package/components/identity.clients/source/lib/canonical.test.ts +43 -0
- package/components/identity.clients/source/lib/canonical.ts +27 -0
- package/components/identity.clients/source/lib/cimd.test.ts +120 -0
- package/components/identity.clients/source/lib/cimd.ts +107 -0
- package/components/identity.clients/source/lib/errors.ts +4 -0
- package/components/identity.clients/source/lib/index.ts +6 -0
- package/components/identity.clients/source/lib/redirect.test.ts +41 -0
- package/components/identity.clients/source/lib/redirect.ts +35 -0
- package/components/identity.clients/source/register.ts +125 -0
- package/components/identity.clients/tsconfig.json +10 -0
- package/components/identity.clients/tsconfig.tsbuildinfo +1 -0
- package/components/identity.clients/types/index.d.ts +3 -0
- package/components/identity.clients/types/toa.d.ts +109 -0
- package/components/identity.credentials/operations/list.js +1 -1
- package/components/identity.credentials/source/list.ts +2 -1
- package/components/identity.credentials/tsconfig.json +4 -2
- package/components/identity.credentials/tsconfig.tsbuildinfo +1 -1
- package/components/identity.credentials/types/index.d.ts +3 -0
- package/components/identity.credentials/types/toa.d.ts +30 -0
- package/components/identity.federation/manifest.toa.yaml +37 -1
- package/components/identity.federation/operations/authenticate.js +7 -3
- package/components/identity.federation/operations/create.js +1 -1
- package/components/identity.federation/operations/decode.js +1 -1
- package/components/identity.federation/operations/delete.js +1 -1
- package/components/identity.federation/operations/incept.js +6 -2
- package/components/identity.federation/operations/lib/Configuration.js +1 -1
- package/components/identity.federation/operations/lib/Ctx.js +1 -1
- package/components/identity.federation/operations/lib/Payload.js +1 -1
- package/components/identity.federation/operations/lib/decode.js +23 -9
- package/components/identity.federation/operations/lib/discovery.js +1 -1
- package/components/identity.federation/operations/lib/errors.js +5 -1
- package/components/identity.federation/operations/lib/exchange.js +12 -7
- package/components/identity.federation/operations/lib/index.js +2 -1
- package/components/identity.federation/operations/lib/jose.js +1 -1
- package/components/identity.federation/operations/lib/principal.js +14 -0
- package/components/identity.federation/operations/lib/resolve.js +1 -1
- package/components/identity.federation/operations/list.js +1 -1
- package/components/identity.federation/operations/types/Scheme.js +1 -1
- package/components/identity.federation/operations/types/configuration.js +1 -1
- package/components/identity.federation/operations/types/context.js +1 -1
- package/components/identity.federation/operations/types/entity.js +1 -1
- package/components/identity.federation/operations/types/index.js +1 -1
- package/components/identity.federation/source/authenticate.ts +9 -3
- package/components/identity.federation/source/incept.ts +7 -1
- package/components/identity.federation/source/lib/Ctx.ts +2 -2
- package/components/identity.federation/source/lib/decode.ts +25 -9
- package/components/identity.federation/source/lib/errors.ts +5 -0
- package/components/identity.federation/source/lib/exchange.ts +11 -7
- package/components/identity.federation/source/lib/index.ts +1 -0
- package/components/identity.federation/source/lib/principal.ts +17 -0
- package/components/identity.federation/source/types/configuration.ts +1 -1
- package/components/identity.federation/source/types/context.ts +6 -2
- package/components/identity.federation/tsconfig.json +4 -2
- package/components/identity.federation/tsconfig.tsbuildinfo +1 -1
- package/components/identity.federation/types/index.d.ts +3 -0
- package/components/identity.federation/types/toa.d.ts +127 -0
- package/components/identity.grants/manifest.toa.yaml +245 -0
- package/components/identity.grants/operations/authorize.js +54 -0
- package/components/identity.grants/operations/exchange.js +89 -0
- package/components/identity.grants/operations/lib/code.js +30 -0
- package/components/identity.grants/operations/lib/identify.js +15 -0
- package/components/identity.grants/operations/lib/index.js +3 -0
- package/components/identity.grants/operations/list.js +18 -0
- package/components/identity.grants/operations/revoke.js +25 -0
- package/components/identity.grants/source/authorize.ts +90 -0
- package/components/identity.grants/source/exchange.ts +130 -0
- package/components/identity.grants/source/lib/code.ts +39 -0
- package/components/identity.grants/source/lib/identify.ts +16 -0
- package/components/identity.grants/source/lib/index.ts +3 -0
- package/components/identity.grants/source/list.ts +28 -0
- package/components/identity.grants/source/revoke.ts +38 -0
- package/components/identity.grants/tsconfig.json +10 -0
- package/components/identity.grants/tsconfig.tsbuildinfo +1 -0
- package/components/identity.grants/types/index.d.ts +60 -0
- package/components/identity.grants/types/toa.d.ts +108 -0
- package/components/identity.keys/manifest.toa.yaml +1 -0
- package/components/identity.keys/operations/create.js +1 -1
- package/components/identity.keys/operations/disable.js +1 -1
- package/components/identity.keys/operations/revoke.js +1 -1
- package/components/identity.keys/source/create.ts +1 -1
- package/components/identity.keys/source/revoke.ts +1 -1
- package/components/identity.keys/tsconfig.json +1 -1
- package/components/identity.keys/tsconfig.tsbuildinfo +1 -1
- package/components/identity.keys/types/index.d.ts +3 -0
- package/components/identity.keys/types/toa.d.ts +47 -0
- package/components/identity.otp/operations/authenticate.js +1 -1
- package/components/identity.otp/operations/issue.js +1 -1
- package/components/identity.otp/operations/lib/Context.js +1 -1
- package/components/identity.otp/operations/lib/Entity.js +1 -1
- package/components/identity.otp/operations/lib/index.js +1 -1
- package/components/identity.otp/source/lib/Context.ts +4 -2
- package/components/identity.otp/tsconfig.json +1 -1
- package/components/identity.otp/tsconfig.tsbuildinfo +1 -1
- package/components/identity.otp/types/index.d.ts +3 -0
- package/components/identity.otp/types/toa.d.ts +56 -0
- package/components/identity.passkeys/manifest.toa.yaml +3 -0
- package/components/identity.passkeys/operations/authenticate.js +1 -1
- package/components/identity.passkeys/operations/challenge.js +1 -1
- package/components/identity.passkeys/operations/create.js +1 -1
- package/components/identity.passkeys/operations/delete.js +1 -1
- package/components/identity.passkeys/operations/lib/const.js +1 -1
- package/components/identity.passkeys/operations/list.js +1 -1
- package/components/identity.passkeys/operations/types/Configuration.js +1 -1
- package/components/identity.passkeys/operations/types/Context.js +1 -1
- package/components/identity.passkeys/operations/types/Passkey.js +1 -1
- package/components/identity.passkeys/operations/types/index.js +1 -1
- package/components/identity.passkeys/operations/use.js +1 -1
- package/components/identity.passkeys/source/authenticate.ts +1 -1
- package/components/identity.passkeys/source/challenge.ts +1 -1
- package/components/identity.passkeys/source/create.ts +1 -1
- package/components/identity.passkeys/source/types/Context.ts +2 -1
- package/components/identity.passkeys/source/use.ts +1 -1
- package/components/identity.passkeys/tsconfig.json +1 -1
- package/components/identity.passkeys/tsconfig.tsbuildinfo +1 -1
- package/components/identity.passkeys/types/index.d.ts +3 -0
- package/components/identity.passkeys/types/toa.d.ts +120 -0
- package/components/identity.roles/operations/grant.js +1 -1
- package/components/identity.roles/operations/lib/Entity.js +1 -1
- package/components/identity.roles/operations/list.js +1 -1
- package/components/identity.roles/operations/principal.js +29 -5
- package/components/identity.roles/source/principal.ts +33 -5
- package/components/identity.roles/tsconfig.json +1 -1
- package/components/identity.roles/tsconfig.tsbuildinfo +1 -1
- package/components/identity.roles/types/index.d.ts +3 -0
- package/components/identity.roles/types/toa.d.ts +43 -0
- package/components/identity.tokens/manifest.toa.yaml +34 -3
- package/components/identity.tokens/operations/authenticate.js +9 -1
- package/components/identity.tokens/operations/decrypt.js +3 -3
- package/components/identity.tokens/operations/encrypt.js +1 -1
- package/components/identity.tokens/operations/issue.js +3 -2
- package/components/identity.tokens/operations/lib/form.js +24 -0
- package/components/identity.tokens/operations/lib/index.js +2 -2
- package/components/identity.tokens/operations/lib/jose.js +1 -1
- package/components/identity.tokens/operations/lib/key.js +1 -1
- package/components/identity.tokens/operations/lib/pad.js +1 -1
- package/components/identity.tokens/operations/revoke.js +1 -1
- package/components/identity.tokens/source/authenticate.test.ts +8 -5
- package/components/identity.tokens/source/authenticate.ts +12 -1
- package/components/identity.tokens/source/decrypt.test.ts +1 -1
- package/components/identity.tokens/source/decrypt.ts +4 -3
- package/components/identity.tokens/source/encrypt.test.ts +1 -1
- package/components/identity.tokens/source/encrypt.ts +2 -1
- package/components/identity.tokens/source/issue.test.ts +71 -0
- package/components/identity.tokens/source/issue.ts +4 -2
- package/components/identity.tokens/source/lib/form.test.ts +25 -0
- package/components/identity.tokens/source/lib/form.ts +31 -0
- package/components/identity.tokens/source/lib/index.ts +2 -1
- package/components/identity.tokens/tsconfig.json +1 -1
- package/components/identity.tokens/tsconfig.tsbuildinfo +1 -1
- package/components/identity.tokens/types/index.d.ts +61 -0
- package/components/identity.tokens/types/toa.d.ts +113 -0
- package/documentation/access.md +13 -0
- package/documentation/cache.md +10 -1
- package/documentation/components.md +3 -0
- package/documentation/consent.md +101 -0
- package/documentation/identity.md +3 -1
- package/documentation/introspection.md +13 -5
- package/documentation/io.md +42 -2
- package/documentation/map.md +8 -0
- package/documentation/mcp.md +180 -0
- package/documentation/oauth.md +180 -0
- package/documentation/protocol.md +4 -0
- package/documentation/rpc.md +140 -0
- package/documentation/tree.md +3 -0
- package/features/auth.bearer.feature +120 -0
- package/features/cache.feature +46 -0
- package/features/identity.basic.feature +44 -0
- package/features/identity.federation.feature +2 -5
- package/features/introspection.feature +333 -0
- package/features/mcp.feature +687 -0
- package/features/oauth.clients.feature +195 -0
- package/features/oauth.discovery.feature +164 -0
- package/features/oauth.grants.feature +299 -0
- package/features/octets.cloudinary.feature +1 -0
- package/features/rpc.feature +429 -0
- package/features/steps/Cloudinary.ts +13 -0
- package/features/steps/Components.ts +0 -4
- package/features/steps/Gateway.ts +23 -2
- package/features/steps/Parameters.ts +22 -7
- package/features/steps/Realtime.ts +3 -0
- package/features/steps/components/echo/manifest.toa.yaml +3 -0
- package/features/steps/components/octets.tester/manifest.toa.yaml +2 -0
- package/features/steps/components/octets.tester/operations/redirect.js +6 -1
- package/features/steps/components/pots/manifest.toa.yaml +2 -0
- package/features/steps/components/users/manifest.toa.yaml +1 -0
- package/package.json +8 -6
- package/readme.md +6 -0
- package/schemas/annotation.cos.yaml +63 -0
- package/schemas/call.cos.yaml +18 -0
- package/source/Annotation.ts +54 -0
- package/source/Directive.test.ts +15 -15
- package/source/Directive.ts +77 -9
- package/source/Endpoint.test.ts +67 -0
- package/source/Endpoint.ts +31 -11
- package/source/Factory.ts +6 -2
- package/source/Gateway.ts +73 -11
- package/source/HTTP/Context.ts +7 -0
- package/source/HTTP/Server.ts +15 -5
- package/source/HTTP/exceptions.ts +2 -2
- package/source/HTTP/formats/form.ts +21 -0
- package/source/HTTP/formats/index.ts +17 -2
- package/source/HTTP/messages.test.ts +25 -1
- package/source/HTTP/messages.ts +20 -4
- package/source/Interception.ts +8 -2
- package/source/Introspection.ts +102 -0
- package/source/MCP/Server.ts +275 -0
- package/source/MCP/discover.ts +52 -0
- package/source/MCP/errors.ts +81 -0
- package/source/MCP/index.ts +1 -0
- package/source/MCP/schema.test.ts +85 -0
- package/source/MCP/schema.ts +87 -0
- package/source/MCP/tools.ts +156 -0
- package/source/MCP/types.ts +81 -0
- package/source/Query.ts +48 -8
- package/source/RPC/Context.ts +78 -0
- package/source/RPC/Dispatcher.ts +130 -0
- package/source/RPC/errors.test.ts +52 -0
- package/source/RPC/errors.ts +83 -0
- package/source/RPC/index.ts +1 -0
- package/source/RPC/names.test.ts +122 -0
- package/source/RPC/names.ts +182 -0
- package/source/RPC/types.ts +34 -0
- package/source/RTD/Directives.ts +52 -2
- package/source/RTD/Endpoint.ts +2 -1
- package/source/RTD/Method.ts +14 -11
- package/source/RTD/Node.ts +38 -7
- package/source/RTD/Route.ts +30 -3
- package/source/RTD/Tree.ts +37 -1
- package/source/RTD/expiration.test.ts +1 -1
- package/source/RTD/walk.test.ts +110 -0
- package/source/const.ts +15 -0
- package/source/deployment.ts +11 -1
- package/source/directives/auth/Anonymous.test.ts +38 -0
- package/source/directives/auth/Anonymous.ts +12 -0
- package/source/directives/auth/Anyone.ts +4 -0
- package/source/directives/auth/Authorization.ts +108 -22
- package/source/directives/auth/Delegate.test.ts +36 -0
- package/source/directives/auth/Delegate.ts +14 -0
- package/source/directives/auth/Echo.ts +5 -0
- package/source/directives/auth/Incept.ts +16 -10
- package/source/directives/auth/Role.ts +13 -0
- package/source/directives/auth/Rule.ts +29 -0
- package/source/directives/auth/Scheme.ts +5 -0
- package/source/directives/auth/schemes.test.ts +8 -4
- package/source/directives/auth/schemes.ts +22 -9
- package/source/directives/auth/types.ts +26 -2
- package/source/directives/cache/Cache.ts +14 -5
- package/source/directives/cache/Control.ts +0 -3
- package/source/directives/dev/Development.ts +1 -1
- package/source/directives/flow/Fetch.ts +1 -1
- package/source/directives/flow/Flow.ts +1 -1
- package/source/directives/index.ts +5 -2
- package/source/directives/io/Directive.ts +1 -1
- package/source/directives/io/IO.ts +34 -3
- package/source/directives/io/Input.ts +3 -2
- package/source/directives/io/Output.ts +10 -4
- package/source/directives/io/Status.test.ts +84 -0
- package/source/directives/io/Status.ts +46 -0
- package/source/directives/io/Throttle.ts +1 -1
- package/source/directives/io/lib/throttle/Quotas.ts +2 -2
- package/source/directives/map/Headers.ts +11 -0
- package/source/directives/map/Map.ts +10 -1
- package/source/directives/map/Mapping.ts +23 -0
- package/source/directives/map/Segments.ts +12 -0
- package/source/directives/mcp/MCP.ts +33 -0
- package/source/directives/mcp/Tool.test.ts +66 -0
- package/source/directives/mcp/Tool.ts +28 -0
- package/source/directives/mcp/index.ts +6 -0
- package/source/directives/oauth/Discovery.ts +70 -0
- package/source/directives/oauth/documents.ts +113 -0
- package/source/directives/oauth/index.ts +3 -0
- package/source/directives/octets/Delete.ts +1 -1
- package/source/directives/octets/Get.ts +1 -1
- package/source/directives/octets/Octets.ts +1 -1
- package/source/directives/octets/Workflow.ts +1 -1
- package/source/directives/octets/workflows/Execution.ts +1 -1
- package/source/directives/require/Directive.ts +1 -1
- package/source/directives/require/Headers.ts +1 -1
- package/source/directives/require/Require.ts +2 -2
- package/source/index.ts +6 -0
- package/source/octets.d.ts +17 -0
- package/source/schemas.ts +2 -0
- package/source/userland.ts +47 -0
- package/transpiled/Annotation.d.ts +41 -0
- package/transpiled/Directive.d.ts +18 -1
- package/transpiled/Directive.js +50 -6
- package/transpiled/Directive.js.map +1 -1
- package/transpiled/Endpoint.d.ts +9 -0
- package/transpiled/Endpoint.js +27 -11
- package/transpiled/Endpoint.js.map +1 -1
- package/transpiled/Factory.js +6 -2
- package/transpiled/Factory.js.map +1 -1
- package/transpiled/Gateway.d.ts +19 -2
- package/transpiled/Gateway.js +51 -9
- package/transpiled/Gateway.js.map +1 -1
- package/transpiled/HTTP/Context.d.ts +6 -0
- package/transpiled/HTTP/Context.js +6 -0
- package/transpiled/HTTP/Context.js.map +1 -1
- package/transpiled/HTTP/Server.d.ts +8 -1
- package/transpiled/HTTP/Server.js +4 -3
- package/transpiled/HTTP/Server.js.map +1 -1
- package/transpiled/HTTP/exceptions.d.ts +1 -1
- package/transpiled/HTTP/exceptions.js +2 -2
- package/transpiled/HTTP/exceptions.js.map +1 -1
- package/transpiled/HTTP/formats/form.d.ts +9 -0
- package/transpiled/HTTP/formats/form.js +18 -0
- package/transpiled/HTTP/formats/form.js.map +1 -0
- package/transpiled/HTTP/formats/index.d.ts +10 -2
- package/transpiled/HTTP/formats/index.js +10 -0
- package/transpiled/HTTP/formats/index.js.map +1 -1
- package/transpiled/HTTP/messages.d.ts +12 -0
- package/transpiled/HTTP/messages.js +12 -4
- package/transpiled/HTTP/messages.js.map +1 -1
- package/transpiled/Interception.d.ts +4 -1
- package/transpiled/Interception.js +4 -2
- package/transpiled/Interception.js.map +1 -1
- package/transpiled/Introspection.d.ts +40 -0
- package/transpiled/Introspection.js +50 -1
- package/transpiled/Introspection.js.map +1 -1
- package/transpiled/MCP/Server.d.ts +41 -0
- package/transpiled/MCP/Server.js +180 -0
- package/transpiled/MCP/Server.js.map +1 -0
- package/transpiled/MCP/discover.d.ts +13 -0
- package/transpiled/MCP/discover.js +29 -0
- package/transpiled/MCP/discover.js.map +1 -0
- package/transpiled/MCP/errors.d.ts +24 -0
- package/transpiled/MCP/errors.js +67 -0
- package/transpiled/MCP/errors.js.map +1 -0
- package/transpiled/MCP/index.d.ts +1 -0
- package/transpiled/MCP/index.js +2 -0
- package/transpiled/MCP/index.js.map +1 -0
- package/transpiled/MCP/schema.d.ts +18 -0
- package/transpiled/MCP/schema.js +64 -0
- package/transpiled/MCP/schema.js.map +1 -0
- package/transpiled/MCP/tools.d.ts +31 -0
- package/transpiled/MCP/tools.js +121 -0
- package/transpiled/MCP/tools.js.map +1 -0
- package/transpiled/MCP/types.d.ts +64 -0
- package/transpiled/MCP/types.js +13 -0
- package/transpiled/MCP/types.js.map +1 -0
- package/transpiled/Query.d.ts +7 -0
- package/transpiled/Query.js +38 -7
- package/transpiled/Query.js.map +1 -1
- package/transpiled/RPC/Context.d.ts +11 -0
- package/transpiled/RPC/Context.js +63 -0
- package/transpiled/RPC/Context.js.map +1 -0
- package/transpiled/RPC/Dispatcher.d.ts +19 -0
- package/transpiled/RPC/Dispatcher.js +100 -0
- package/transpiled/RPC/Dispatcher.js.map +1 -0
- package/transpiled/RPC/errors.d.ts +18 -0
- package/transpiled/RPC/errors.js +67 -0
- package/transpiled/RPC/errors.js.map +1 -0
- package/transpiled/RPC/index.d.ts +1 -0
- package/transpiled/RPC/index.js +2 -0
- package/transpiled/RPC/index.js.map +1 -0
- package/transpiled/RPC/names.d.ts +30 -0
- package/transpiled/RPC/names.js +121 -0
- package/transpiled/RPC/names.js.map +1 -0
- package/transpiled/RPC/types.d.ts +27 -0
- package/transpiled/RPC/types.js +8 -0
- package/transpiled/RPC/types.js.map +1 -0
- package/transpiled/RTD/Directives.d.ts +41 -2
- package/transpiled/RTD/Endpoint.d.ts +2 -1
- package/transpiled/RTD/Method.d.ts +8 -3
- package/transpiled/RTD/Method.js +12 -10
- package/transpiled/RTD/Method.js.map +1 -1
- package/transpiled/RTD/Node.d.ts +20 -2
- package/transpiled/RTD/Node.js +22 -4
- package/transpiled/RTD/Node.js.map +1 -1
- package/transpiled/RTD/Route.d.ts +2 -1
- package/transpiled/RTD/Route.js +27 -2
- package/transpiled/RTD/Route.js.map +1 -1
- package/transpiled/RTD/Tree.d.ts +3 -1
- package/transpiled/RTD/Tree.js +26 -0
- package/transpiled/RTD/Tree.js.map +1 -1
- package/transpiled/const.d.ts +12 -0
- package/transpiled/const.js +12 -0
- package/transpiled/const.js.map +1 -1
- package/transpiled/deployment.js +6 -0
- package/transpiled/deployment.js.map +1 -1
- package/transpiled/directives/auth/Anonymous.d.ts +6 -0
- package/transpiled/directives/auth/Anonymous.js +10 -0
- package/transpiled/directives/auth/Anonymous.js.map +1 -1
- package/transpiled/directives/auth/Anyone.d.ts +1 -0
- package/transpiled/directives/auth/Anyone.js +3 -0
- package/transpiled/directives/auth/Anyone.js.map +1 -1
- package/transpiled/directives/auth/Authorization.d.ts +28 -2
- package/transpiled/directives/auth/Authorization.js +87 -19
- package/transpiled/directives/auth/Authorization.js.map +1 -1
- package/transpiled/directives/auth/Delegate.d.ts +5 -0
- package/transpiled/directives/auth/Delegate.js +10 -0
- package/transpiled/directives/auth/Delegate.js.map +1 -1
- package/transpiled/directives/auth/Echo.d.ts +2 -0
- package/transpiled/directives/auth/Echo.js +4 -0
- package/transpiled/directives/auth/Echo.js.map +1 -1
- package/transpiled/directives/auth/Incept.d.ts +1 -1
- package/transpiled/directives/auth/Incept.js +13 -8
- package/transpiled/directives/auth/Incept.js.map +1 -1
- package/transpiled/directives/auth/Role.d.ts +2 -0
- package/transpiled/directives/auth/Role.js +9 -0
- package/transpiled/directives/auth/Role.js.map +1 -1
- package/transpiled/directives/auth/Rule.d.ts +5 -0
- package/transpiled/directives/auth/Rule.js +20 -0
- package/transpiled/directives/auth/Rule.js.map +1 -1
- package/transpiled/directives/auth/Scheme.d.ts +2 -0
- package/transpiled/directives/auth/Scheme.js +4 -0
- package/transpiled/directives/auth/Scheme.js.map +1 -1
- package/transpiled/directives/auth/schemes.d.ts +16 -4
- package/transpiled/directives/auth/schemes.js +20 -8
- package/transpiled/directives/auth/schemes.js.map +1 -1
- package/transpiled/directives/auth/types.d.ts +20 -2
- package/transpiled/directives/cache/Cache.d.ts +1 -1
- package/transpiled/directives/cache/Cache.js +10 -3
- package/transpiled/directives/cache/Cache.js.map +1 -1
- package/transpiled/directives/cache/Control.js +0 -2
- package/transpiled/directives/cache/Control.js.map +1 -1
- package/transpiled/directives/dev/Development.d.ts +1 -1
- package/transpiled/directives/dev/Development.js +1 -1
- package/transpiled/directives/dev/Development.js.map +1 -1
- package/transpiled/directives/flow/Flow.d.ts +1 -1
- package/transpiled/directives/flow/Flow.js +1 -1
- package/transpiled/directives/flow/Flow.js.map +1 -1
- package/transpiled/directives/index.js +4 -2
- package/transpiled/directives/index.js.map +1 -1
- package/transpiled/directives/io/Directive.d.ts +1 -1
- package/transpiled/directives/io/IO.d.ts +7 -1
- package/transpiled/directives/io/IO.js +25 -3
- package/transpiled/directives/io/IO.js.map +1 -1
- package/transpiled/directives/io/Input.d.ts +3 -2
- package/transpiled/directives/io/Input.js +2 -1
- package/transpiled/directives/io/Input.js.map +1 -1
- package/transpiled/directives/io/Output.d.ts +5 -3
- package/transpiled/directives/io/Output.js +8 -3
- package/transpiled/directives/io/Output.js.map +1 -1
- package/transpiled/directives/io/Status.d.ts +19 -0
- package/transpiled/directives/io/Status.js +34 -0
- package/transpiled/directives/io/Status.js.map +1 -0
- package/transpiled/directives/io/Throttle.d.ts +1 -1
- package/transpiled/directives/io/Throttle.js +1 -1
- package/transpiled/directives/io/Throttle.js.map +1 -1
- package/transpiled/directives/io/lib/throttle/Quotas.d.ts +1 -1
- package/transpiled/directives/io/lib/throttle/Quotas.js +2 -2
- package/transpiled/directives/io/lib/throttle/Quotas.js.map +1 -1
- package/transpiled/directives/map/Headers.d.ts +2 -0
- package/transpiled/directives/map/Headers.js +8 -0
- package/transpiled/directives/map/Headers.js.map +1 -1
- package/transpiled/directives/map/Map.d.ts +3 -1
- package/transpiled/directives/map/Map.js +7 -1
- package/transpiled/directives/map/Map.js.map +1 -1
- package/transpiled/directives/map/Mapping.d.ts +13 -0
- package/transpiled/directives/map/Mapping.js +20 -0
- package/transpiled/directives/map/Mapping.js.map +1 -1
- package/transpiled/directives/map/Segments.d.ts +3 -0
- package/transpiled/directives/map/Segments.js +9 -0
- package/transpiled/directives/map/Segments.js.map +1 -1
- package/transpiled/directives/mcp/MCP.d.ts +15 -0
- package/transpiled/directives/mcp/MCP.js +23 -0
- package/transpiled/directives/mcp/MCP.js.map +1 -0
- package/transpiled/directives/mcp/Tool.d.ts +13 -0
- package/transpiled/directives/mcp/Tool.js +23 -0
- package/transpiled/directives/mcp/Tool.js.map +1 -0
- package/transpiled/directives/mcp/index.d.ts +4 -0
- package/transpiled/directives/mcp/index.js +4 -0
- package/transpiled/directives/mcp/index.js.map +1 -0
- package/transpiled/directives/oauth/Discovery.d.ts +23 -0
- package/transpiled/directives/oauth/Discovery.js +55 -0
- package/transpiled/directives/oauth/Discovery.js.map +1 -0
- package/transpiled/directives/oauth/documents.d.ts +9 -0
- package/transpiled/directives/oauth/documents.js +82 -0
- package/transpiled/directives/oauth/documents.js.map +1 -0
- package/transpiled/directives/oauth/index.d.ts +2 -0
- package/transpiled/directives/oauth/index.js +3 -0
- package/transpiled/directives/oauth/index.js.map +1 -0
- package/transpiled/directives/octets/Octets.d.ts +1 -1
- package/transpiled/directives/octets/Octets.js +1 -1
- package/transpiled/directives/octets/Octets.js.map +1 -1
- package/transpiled/directives/require/Directive.d.ts +1 -1
- package/transpiled/directives/require/Headers.d.ts +1 -1
- package/transpiled/directives/require/Headers.js +1 -1
- package/transpiled/directives/require/Headers.js.map +1 -1
- package/transpiled/directives/require/Require.d.ts +1 -1
- package/transpiled/directives/require/Require.js +2 -2
- package/transpiled/directives/require/Require.js.map +1 -1
- package/transpiled/index.d.ts +2 -0
- package/transpiled/schemas.d.ts +2 -0
- package/transpiled/schemas.js +1 -0
- package/transpiled/schemas.js.map +1 -1
- package/transpiled/userland.d.ts +39 -0
- package/transpiled/userland.js +7 -0
- package/transpiled/userland.js.map +1 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/components/identity.bans/operations/transit.d.ts +0 -14
- package/components/identity.bans/operations/transit.js.map +0 -1
- package/components/identity.basic/operations/add.d.ts +0 -3
- package/components/identity.basic/operations/add.js.map +0 -1
- package/components/identity.basic/operations/authenticate.d.ts +0 -13
- package/components/identity.basic/operations/authenticate.js.map +0 -1
- package/components/identity.basic/operations/check.d.ts +0 -7
- package/components/identity.basic/operations/check.js.map +0 -1
- package/components/identity.basic/operations/delete.d.ts +0 -7
- package/components/identity.basic/operations/delete.js.map +0 -1
- package/components/identity.basic/operations/incept.d.ts +0 -12
- package/components/identity.basic/operations/incept.js.map +0 -1
- package/components/identity.basic/operations/info.d.ts +0 -10
- package/components/identity.basic/operations/info.js.map +0 -1
- package/components/identity.basic/operations/lib/credentials.d.ts +0 -5
- package/components/identity.basic/operations/lib/credentials.js.map +0 -1
- package/components/identity.basic/operations/transit.d.ts +0 -14
- package/components/identity.basic/operations/transit.js.map +0 -1
- package/components/identity.basic/operations/types.d.ts +0 -61
- package/components/identity.basic/operations/types.js +0 -2
- package/components/identity.basic/operations/types.js.map +0 -1
- package/components/identity.basic/source/types.ts +0 -69
- package/components/identity.credentials/operations/list.d.ts +0 -51
- package/components/identity.credentials/operations/list.js.map +0 -1
- package/components/identity.federation/operations/authenticate.d.ts +0 -16
- package/components/identity.federation/operations/authenticate.js.map +0 -1
- package/components/identity.federation/operations/create.d.ts +0 -8
- package/components/identity.federation/operations/create.js.map +0 -1
- package/components/identity.federation/operations/decode.d.ts +0 -3
- package/components/identity.federation/operations/decode.js.map +0 -1
- package/components/identity.federation/operations/delete.d.ts +0 -8
- package/components/identity.federation/operations/delete.js.map +0 -1
- package/components/identity.federation/operations/incept.d.ts +0 -11
- package/components/identity.federation/operations/incept.js.map +0 -1
- package/components/identity.federation/operations/lib/Configuration.d.ts +0 -39
- package/components/identity.federation/operations/lib/Configuration.js.map +0 -1
- package/components/identity.federation/operations/lib/Ctx.d.ts +0 -8
- package/components/identity.federation/operations/lib/Ctx.js.map +0 -1
- package/components/identity.federation/operations/lib/Payload.d.ts +0 -5
- package/components/identity.federation/operations/lib/Payload.js.map +0 -1
- package/components/identity.federation/operations/lib/decode.d.ts +0 -3
- package/components/identity.federation/operations/lib/decode.js.map +0 -1
- package/components/identity.federation/operations/lib/discovery.d.ts +0 -5
- package/components/identity.federation/operations/lib/discovery.js.map +0 -1
- package/components/identity.federation/operations/lib/errors.d.ts +0 -70
- package/components/identity.federation/operations/lib/errors.js.map +0 -1
- package/components/identity.federation/operations/lib/exchange.d.ts +0 -3
- package/components/identity.federation/operations/lib/exchange.js.map +0 -1
- package/components/identity.federation/operations/lib/index.d.ts +0 -4
- package/components/identity.federation/operations/lib/index.js.map +0 -1
- package/components/identity.federation/operations/lib/jose.d.ts +0 -1
- package/components/identity.federation/operations/lib/jose.js.map +0 -1
- package/components/identity.federation/operations/lib/resolve.d.ts +0 -3
- package/components/identity.federation/operations/lib/resolve.js.map +0 -1
- package/components/identity.federation/operations/list.d.ts +0 -7
- package/components/identity.federation/operations/list.js.map +0 -1
- package/components/identity.federation/operations/types/Scheme.d.ts +0 -1
- package/components/identity.federation/operations/types/Scheme.js.map +0 -1
- package/components/identity.federation/operations/types/configuration.d.ts +0 -22
- package/components/identity.federation/operations/types/configuration.js.map +0 -1
- package/components/identity.federation/operations/types/context.d.ts +0 -35
- package/components/identity.federation/operations/types/context.js.map +0 -1
- package/components/identity.federation/operations/types/entity.d.ts +0 -9
- package/components/identity.federation/operations/types/entity.js.map +0 -1
- package/components/identity.federation/operations/types/index.d.ts +0 -4
- package/components/identity.federation/operations/types/index.js.map +0 -1
- package/components/identity.keys/operations/create.d.ts +0 -22
- package/components/identity.keys/operations/create.js.map +0 -1
- package/components/identity.keys/operations/disable.d.ts +0 -5
- package/components/identity.keys/operations/disable.js.map +0 -1
- package/components/identity.keys/operations/revoke.d.ts +0 -15
- package/components/identity.keys/operations/revoke.js.map +0 -1
- package/components/identity.otp/operations/authenticate.d.ts +0 -12
- package/components/identity.otp/operations/authenticate.js.map +0 -1
- package/components/identity.otp/operations/issue.d.ts +0 -12
- package/components/identity.otp/operations/issue.js.map +0 -1
- package/components/identity.otp/operations/lib/Context.d.ts +0 -14
- package/components/identity.otp/operations/lib/Context.js.map +0 -1
- package/components/identity.otp/operations/lib/Entity.d.ts +0 -6
- package/components/identity.otp/operations/lib/Entity.js.map +0 -1
- package/components/identity.otp/operations/lib/index.d.ts +0 -1
- package/components/identity.otp/operations/lib/index.js.map +0 -1
- package/components/identity.passkeys/operations/authenticate.d.ts +0 -16
- package/components/identity.passkeys/operations/authenticate.js.map +0 -1
- package/components/identity.passkeys/operations/challenge.d.ts +0 -35
- package/components/identity.passkeys/operations/challenge.js.map +0 -1
- package/components/identity.passkeys/operations/create.d.ts +0 -19
- package/components/identity.passkeys/operations/create.js.map +0 -1
- package/components/identity.passkeys/operations/delete.d.ts +0 -8
- package/components/identity.passkeys/operations/delete.js.map +0 -1
- package/components/identity.passkeys/operations/lib/const.d.ts +0 -1
- package/components/identity.passkeys/operations/lib/const.js.map +0 -1
- package/components/identity.passkeys/operations/list.d.ts +0 -7
- package/components/identity.passkeys/operations/list.js.map +0 -1
- package/components/identity.passkeys/operations/types/Configuration.d.ts +0 -6
- package/components/identity.passkeys/operations/types/Configuration.js.map +0 -1
- package/components/identity.passkeys/operations/types/Context.d.ts +0 -15
- package/components/identity.passkeys/operations/types/Context.js.map +0 -1
- package/components/identity.passkeys/operations/types/Passkey.d.ts +0 -12
- package/components/identity.passkeys/operations/types/Passkey.js.map +0 -1
- package/components/identity.passkeys/operations/types/index.d.ts +0 -2
- package/components/identity.passkeys/operations/types/index.js.map +0 -1
- package/components/identity.passkeys/operations/use.d.ts +0 -16
- package/components/identity.passkeys/operations/use.js.map +0 -1
- package/components/identity.roles/operations/grant.d.ts +0 -10
- package/components/identity.roles/operations/grant.js.map +0 -1
- package/components/identity.roles/operations/lib/Entity.d.ts +0 -5
- package/components/identity.roles/operations/lib/Entity.js.map +0 -1
- package/components/identity.roles/operations/list.d.ts +0 -2
- package/components/identity.roles/operations/list.js.map +0 -1
- package/components/identity.roles/operations/principal.d.ts +0 -13
- package/components/identity.roles/operations/principal.js.map +0 -1
- package/components/identity.tokens/operations/authenticate.d.ts +0 -9
- package/components/identity.tokens/operations/authenticate.js.map +0 -1
- package/components/identity.tokens/operations/decrypt.d.ts +0 -15
- package/components/identity.tokens/operations/decrypt.js.map +0 -1
- package/components/identity.tokens/operations/encrypt.d.ts +0 -8
- package/components/identity.tokens/operations/encrypt.js.map +0 -1
- package/components/identity.tokens/operations/issue.d.ts +0 -24
- package/components/identity.tokens/operations/issue.js.map +0 -1
- package/components/identity.tokens/operations/lib/index.d.ts +0 -3
- package/components/identity.tokens/operations/lib/index.js.map +0 -1
- package/components/identity.tokens/operations/lib/jose.d.ts +0 -1
- package/components/identity.tokens/operations/lib/jose.js.map +0 -1
- package/components/identity.tokens/operations/lib/key.d.ts +0 -1
- package/components/identity.tokens/operations/lib/key.js.map +0 -1
- package/components/identity.tokens/operations/lib/pad.d.ts +0 -1
- package/components/identity.tokens/operations/lib/pad.js.map +0 -1
- package/components/identity.tokens/operations/lib/types.d.ts +0 -88
- package/components/identity.tokens/operations/lib/types.js +0 -2
- package/components/identity.tokens/operations/lib/types.js.map +0 -1
- package/components/identity.tokens/operations/revoke.d.ts +0 -2
- package/components/identity.tokens/operations/revoke.js.map +0 -1
- package/components/identity.tokens/source/lib/types.ts +0 -102
|
@@ -0,0 +1,687 @@
|
|
|
1
|
+
@security
|
|
2
|
+
Feature: Model Context Protocol
|
|
3
|
+
|
|
4
|
+
A tool is a procedure a method is published as. A method says so with `mcp:tool`, whose
|
|
5
|
+
value is what the tool is, and a default denies: a tree holds everything an application
|
|
6
|
+
serves and most of it is machinery a model has no business reading. What a tool takes and
|
|
7
|
+
answers is what the method says of itself, and what a caller may do with it is what `auth`
|
|
8
|
+
says.
|
|
9
|
+
|
|
10
|
+
What a tool is, is stated on the route and nowhere else. The operation states what it is
|
|
11
|
+
too, and that is not this: one operation mounted on two routes is two tools.
|
|
12
|
+
|
|
13
|
+
Two revisions are answered from one endpoint that remembers nothing between requests: the
|
|
14
|
+
modern one, where every request carries its own version and capabilities, and the one
|
|
15
|
+
before it, which opens with `initialize`. Neither is given a session, and neither is given
|
|
16
|
+
a stream.
|
|
17
|
+
|
|
18
|
+
Background:
|
|
19
|
+
Given the annotation:
|
|
20
|
+
"""yaml
|
|
21
|
+
mcp:
|
|
22
|
+
name: Teapots
|
|
23
|
+
instructions: A pot is read by its id.
|
|
24
|
+
anonymous: true
|
|
25
|
+
"""
|
|
26
|
+
And the `pots` is running with the following manifest:
|
|
27
|
+
"""yaml
|
|
28
|
+
exposition:
|
|
29
|
+
/:
|
|
30
|
+
io:output: [id, title, volume]
|
|
31
|
+
GET:
|
|
32
|
+
mcp:tool: All the pots, newest first.
|
|
33
|
+
endpoint: enumerate
|
|
34
|
+
POST:
|
|
35
|
+
mcp:tool: Start a new pot brewing.
|
|
36
|
+
endpoint: create
|
|
37
|
+
/:id:
|
|
38
|
+
GET:
|
|
39
|
+
mcp:tool: One pot, by its id.
|
|
40
|
+
endpoint: observe
|
|
41
|
+
/large:
|
|
42
|
+
GET:
|
|
43
|
+
query:
|
|
44
|
+
criteria: volume>=100
|
|
45
|
+
mcp:tool: The pots that hold a hundred or more, newest first.
|
|
46
|
+
endpoint: enumerate
|
|
47
|
+
/unpublished:
|
|
48
|
+
GET: enumerate
|
|
49
|
+
/guarded:
|
|
50
|
+
isolated: true
|
|
51
|
+
GET:
|
|
52
|
+
auth:role: admin
|
|
53
|
+
mcp:tool: Every pot there is, for whoever may see them all.
|
|
54
|
+
endpoint: enumerate
|
|
55
|
+
"""
|
|
56
|
+
And the `pots` database contains:
|
|
57
|
+
| _id | title | volume |
|
|
58
|
+
| 4c4759e6f9c74da989d64511df42d6f4 | First pot | 100 |
|
|
59
|
+
|
|
60
|
+
Scenario: What the server is
|
|
61
|
+
When the following request is received:
|
|
62
|
+
"""
|
|
63
|
+
POST /.mcp HTTP/1.1
|
|
64
|
+
host: nex.toa.io
|
|
65
|
+
accept: application/yaml
|
|
66
|
+
content-type: application/json
|
|
67
|
+
mcp-protocol-version: 2026-07-28
|
|
68
|
+
mcp-method: server/discover
|
|
69
|
+
|
|
70
|
+
{"jsonrpc": "2.0", "id": 1, "method": "server/discover",
|
|
71
|
+
"params": {"_meta": {"io.modelcontextprotocol/protocolVersion": "2026-07-28",
|
|
72
|
+
"io.modelcontextprotocol/clientCapabilities": {}}}}
|
|
73
|
+
"""
|
|
74
|
+
Then the following reply is sent:
|
|
75
|
+
"""
|
|
76
|
+
200 OK
|
|
77
|
+
cache-control: no-store
|
|
78
|
+
|
|
79
|
+
jsonrpc: '2.0'
|
|
80
|
+
id: 1
|
|
81
|
+
result:
|
|
82
|
+
supportedVersions:
|
|
83
|
+
- '2026-07-28'
|
|
84
|
+
- '2025-11-25'
|
|
85
|
+
capabilities:
|
|
86
|
+
tools: {}
|
|
87
|
+
instructions: A pot is read by its id.
|
|
88
|
+
ttlMs: 1800000
|
|
89
|
+
cacheScope: public
|
|
90
|
+
resultType: complete
|
|
91
|
+
"""
|
|
92
|
+
|
|
93
|
+
Scenario: What a client of an earlier revision opens with
|
|
94
|
+
No session is made, and none is named back.
|
|
95
|
+
|
|
96
|
+
When the following request is received:
|
|
97
|
+
"""
|
|
98
|
+
POST /.mcp HTTP/1.1
|
|
99
|
+
host: nex.toa.io
|
|
100
|
+
accept: application/yaml
|
|
101
|
+
content-type: application/json
|
|
102
|
+
|
|
103
|
+
{"jsonrpc": "2.0", "id": 1, "method": "initialize",
|
|
104
|
+
"params": {"protocolVersion": "2025-11-25", "capabilities": {},
|
|
105
|
+
"clientInfo": {"name": "Inspector", "version": "2.5.0"}}}
|
|
106
|
+
"""
|
|
107
|
+
Then the following reply is sent:
|
|
108
|
+
"""
|
|
109
|
+
200 OK
|
|
110
|
+
|
|
111
|
+
jsonrpc: '2.0'
|
|
112
|
+
id: 1
|
|
113
|
+
result:
|
|
114
|
+
protocolVersion: '2025-11-25'
|
|
115
|
+
capabilities:
|
|
116
|
+
tools: {}
|
|
117
|
+
serverInfo:
|
|
118
|
+
name: Teapots
|
|
119
|
+
instructions: A pot is read by its id.
|
|
120
|
+
"""
|
|
121
|
+
And the reply does not contain:
|
|
122
|
+
"""
|
|
123
|
+
mcp-session-id
|
|
124
|
+
"""
|
|
125
|
+
When the following request is received:
|
|
126
|
+
"""
|
|
127
|
+
POST /.mcp HTTP/1.1
|
|
128
|
+
host: nex.toa.io
|
|
129
|
+
content-type: application/json
|
|
130
|
+
|
|
131
|
+
{"jsonrpc": "2.0", "method": "notifications/initialized"}
|
|
132
|
+
"""
|
|
133
|
+
Then the following reply is sent:
|
|
134
|
+
"""
|
|
135
|
+
202 Accepted
|
|
136
|
+
"""
|
|
137
|
+
|
|
138
|
+
Scenario: What the tools are
|
|
139
|
+
Every method that is published and the caller may reach. One the caller may not, and
|
|
140
|
+
one that is published as nothing at all, are both absent.
|
|
141
|
+
|
|
142
|
+
When the following request is received:
|
|
143
|
+
"""
|
|
144
|
+
POST /.mcp HTTP/1.1
|
|
145
|
+
host: nex.toa.io
|
|
146
|
+
accept: application/yaml
|
|
147
|
+
content-type: application/json
|
|
148
|
+
mcp-protocol-version: 2026-07-28
|
|
149
|
+
mcp-method: tools/list
|
|
150
|
+
|
|
151
|
+
{"jsonrpc": "2.0", "id": 2, "method": "tools/list",
|
|
152
|
+
"params": {"_meta": {"io.modelcontextprotocol/protocolVersion": "2026-07-28",
|
|
153
|
+
"io.modelcontextprotocol/clientCapabilities": {}}}}
|
|
154
|
+
"""
|
|
155
|
+
Then the following reply is sent:
|
|
156
|
+
"""
|
|
157
|
+
200 OK
|
|
158
|
+
|
|
159
|
+
jsonrpc: '2.0'
|
|
160
|
+
id: 2
|
|
161
|
+
result:
|
|
162
|
+
tools:
|
|
163
|
+
- name: pots/GET
|
|
164
|
+
description: All the pots, newest first.
|
|
165
|
+
inputSchema:
|
|
166
|
+
type: object
|
|
167
|
+
properties:
|
|
168
|
+
query:
|
|
169
|
+
type: object
|
|
170
|
+
properties:
|
|
171
|
+
criteria:
|
|
172
|
+
type: string
|
|
173
|
+
limit:
|
|
174
|
+
type: integer
|
|
175
|
+
minimum: 1
|
|
176
|
+
maximum: 100
|
|
177
|
+
default: 10
|
|
178
|
+
additionalProperties: false
|
|
179
|
+
annotations:
|
|
180
|
+
readOnlyHint: true
|
|
181
|
+
- name: pots/POST
|
|
182
|
+
description: Start a new pot brewing.
|
|
183
|
+
inputSchema:
|
|
184
|
+
type: object
|
|
185
|
+
properties:
|
|
186
|
+
title:
|
|
187
|
+
type: string
|
|
188
|
+
maxLength: 64
|
|
189
|
+
volume:
|
|
190
|
+
type: number
|
|
191
|
+
required:
|
|
192
|
+
- title
|
|
193
|
+
- volume
|
|
194
|
+
additionalProperties: false
|
|
195
|
+
- name: pots/_id/GET
|
|
196
|
+
description: One pot, by its id.
|
|
197
|
+
inputSchema:
|
|
198
|
+
type: object
|
|
199
|
+
properties:
|
|
200
|
+
id:
|
|
201
|
+
type: string
|
|
202
|
+
required:
|
|
203
|
+
- id
|
|
204
|
+
additionalProperties: false
|
|
205
|
+
- name: pots/large/GET
|
|
206
|
+
description: The pots that hold a hundred or more, newest first.
|
|
207
|
+
annotations:
|
|
208
|
+
readOnlyHint: true
|
|
209
|
+
ttlMs: 1800000
|
|
210
|
+
cacheScope: private
|
|
211
|
+
resultType: complete
|
|
212
|
+
"""
|
|
213
|
+
And the reply does not contain:
|
|
214
|
+
"""
|
|
215
|
+
pots/guarded/GET
|
|
216
|
+
"""
|
|
217
|
+
And the reply does not contain:
|
|
218
|
+
"""
|
|
219
|
+
pots/unpublished/GET
|
|
220
|
+
"""
|
|
221
|
+
And the reply does not contain:
|
|
222
|
+
"""
|
|
223
|
+
Put a pot on to brew.
|
|
224
|
+
"""
|
|
225
|
+
|
|
226
|
+
Scenario: A method that is published as nothing is not called by guessing its name
|
|
227
|
+
A route the application did not publish is served over HTTP exactly as before. What it
|
|
228
|
+
does not have is a name here, and naming it anyway reaches nothing.
|
|
229
|
+
|
|
230
|
+
When the following request is received:
|
|
231
|
+
"""
|
|
232
|
+
POST /.mcp HTTP/1.1
|
|
233
|
+
host: nex.toa.io
|
|
234
|
+
accept: application/yaml
|
|
235
|
+
content-type: application/json
|
|
236
|
+
mcp-protocol-version: 2026-07-28
|
|
237
|
+
mcp-method: tools/call
|
|
238
|
+
mcp-name: pots/unpublished/GET
|
|
239
|
+
|
|
240
|
+
{"jsonrpc": "2.0", "id": 30, "method": "tools/call",
|
|
241
|
+
"params": {"name": "pots/unpublished/GET", "arguments": {},
|
|
242
|
+
"_meta": {"io.modelcontextprotocol/protocolVersion": "2026-07-28",
|
|
243
|
+
"io.modelcontextprotocol/clientCapabilities": {}}}}
|
|
244
|
+
"""
|
|
245
|
+
Then the following reply is sent:
|
|
246
|
+
"""
|
|
247
|
+
404 Not Found
|
|
248
|
+
|
|
249
|
+
jsonrpc: '2.0'
|
|
250
|
+
id: null
|
|
251
|
+
error:
|
|
252
|
+
code: -32601
|
|
253
|
+
"""
|
|
254
|
+
|
|
255
|
+
Scenario: A credential does not hide an anonymous tool
|
|
256
|
+
A client here always presents one, and what refuses a credentialed request at an
|
|
257
|
+
`anonymous` route is that the reply would not be cacheable — which a tool's is not.
|
|
258
|
+
|
|
259
|
+
# developer:secret
|
|
260
|
+
Given the `identity.basic` database contains:
|
|
261
|
+
| _id | authority | username | password |
|
|
262
|
+
| efe3a65ebbee47ed95a73edd911ea328 | nex | developer | $2b$10$ZRSKkgZoGnrcTNA5w5eCcu3pxDzdTduhteVYXcp56AaNcilNkwJ.O |
|
|
263
|
+
And the `identity.bans` database is empty
|
|
264
|
+
When the following request is received:
|
|
265
|
+
"""
|
|
266
|
+
POST /.mcp HTTP/1.1
|
|
267
|
+
host: nex.toa.io
|
|
268
|
+
authorization: Basic ZGV2ZWxvcGVyOnNlY3JldA==
|
|
269
|
+
accept: application/yaml
|
|
270
|
+
content-type: application/json
|
|
271
|
+
mcp-protocol-version: 2026-07-28
|
|
272
|
+
mcp-method: tools/list
|
|
273
|
+
|
|
274
|
+
{"jsonrpc": "2.0", "id": 20, "method": "tools/list",
|
|
275
|
+
"params": {"_meta": {"io.modelcontextprotocol/protocolVersion": "2026-07-28",
|
|
276
|
+
"io.modelcontextprotocol/clientCapabilities": {}}}}
|
|
277
|
+
"""
|
|
278
|
+
Then the following reply is sent:
|
|
279
|
+
"""
|
|
280
|
+
200 OK
|
|
281
|
+
|
|
282
|
+
jsonrpc: '2.0'
|
|
283
|
+
id: 20
|
|
284
|
+
result:
|
|
285
|
+
tools:
|
|
286
|
+
- name: pots/GET
|
|
287
|
+
"""
|
|
288
|
+
|
|
289
|
+
Scenario: A tool takes what the procedure takes
|
|
290
|
+
When the following request is received:
|
|
291
|
+
"""
|
|
292
|
+
POST /.mcp HTTP/1.1
|
|
293
|
+
host: nex.toa.io
|
|
294
|
+
accept: application/yaml
|
|
295
|
+
content-type: application/json
|
|
296
|
+
mcp-protocol-version: 2026-07-28
|
|
297
|
+
mcp-method: tools/call
|
|
298
|
+
mcp-name: pots/_id/GET
|
|
299
|
+
|
|
300
|
+
{"jsonrpc": "2.0", "id": 3, "method": "tools/call",
|
|
301
|
+
"params": {"name": "pots/_id/GET",
|
|
302
|
+
"arguments": {"id": "4c4759e6f9c74da989d64511df42d6f4"},
|
|
303
|
+
"_meta": {"io.modelcontextprotocol/protocolVersion": "2026-07-28",
|
|
304
|
+
"io.modelcontextprotocol/clientCapabilities": {}}}}
|
|
305
|
+
"""
|
|
306
|
+
Then the following reply is sent:
|
|
307
|
+
"""
|
|
308
|
+
200 OK
|
|
309
|
+
|
|
310
|
+
jsonrpc: '2.0'
|
|
311
|
+
id: 3
|
|
312
|
+
result:
|
|
313
|
+
structuredContent:
|
|
314
|
+
id: 4c4759e6f9c74da989d64511df42d6f4
|
|
315
|
+
title: First pot
|
|
316
|
+
volume: 100
|
|
317
|
+
resultType: complete
|
|
318
|
+
"""
|
|
319
|
+
|
|
320
|
+
Scenario: What is left of the arguments is the input
|
|
321
|
+
When the following request is received:
|
|
322
|
+
"""
|
|
323
|
+
POST /.mcp HTTP/1.1
|
|
324
|
+
host: nex.toa.io
|
|
325
|
+
accept: application/yaml
|
|
326
|
+
content-type: application/json
|
|
327
|
+
mcp-protocol-version: 2026-07-28
|
|
328
|
+
mcp-method: tools/call
|
|
329
|
+
mcp-name: pots/POST
|
|
330
|
+
|
|
331
|
+
{"jsonrpc": "2.0", "id": 4, "method": "tools/call",
|
|
332
|
+
"params": {"name": "pots/POST", "arguments": {"title": "Kettle", "volume": 1.7},
|
|
333
|
+
"_meta": {"io.modelcontextprotocol/protocolVersion": "2026-07-28",
|
|
334
|
+
"io.modelcontextprotocol/clientCapabilities": {}}}}
|
|
335
|
+
"""
|
|
336
|
+
Then the following reply is sent:
|
|
337
|
+
"""
|
|
338
|
+
200 OK
|
|
339
|
+
|
|
340
|
+
jsonrpc: '2.0'
|
|
341
|
+
id: 4
|
|
342
|
+
result:
|
|
343
|
+
structuredContent:
|
|
344
|
+
id:
|
|
345
|
+
"""
|
|
346
|
+
|
|
347
|
+
Scenario: A name nothing answers to
|
|
348
|
+
|
|
349
|
+
When the following request is received:
|
|
350
|
+
"""
|
|
351
|
+
POST /.mcp HTTP/1.1
|
|
352
|
+
host: nex.toa.io
|
|
353
|
+
accept: application/yaml
|
|
354
|
+
content-type: application/json
|
|
355
|
+
mcp-protocol-version: 2026-07-28
|
|
356
|
+
mcp-method: tools/call
|
|
357
|
+
mcp-name: kettles/GET
|
|
358
|
+
|
|
359
|
+
{"jsonrpc": "2.0", "id": 5, "method": "tools/call",
|
|
360
|
+
"params": {"name": "kettles/GET", "arguments": {},
|
|
361
|
+
"_meta": {"io.modelcontextprotocol/protocolVersion": "2026-07-28",
|
|
362
|
+
"io.modelcontextprotocol/clientCapabilities": {}}}}
|
|
363
|
+
"""
|
|
364
|
+
Then the following reply is sent:
|
|
365
|
+
"""
|
|
366
|
+
404 Not Found
|
|
367
|
+
"""
|
|
368
|
+
|
|
369
|
+
Scenario: A method this server does not answer
|
|
370
|
+
The status is what tells a client that this endpoint is here and the method is not.
|
|
371
|
+
|
|
372
|
+
When the following request is received:
|
|
373
|
+
"""
|
|
374
|
+
POST /.mcp HTTP/1.1
|
|
375
|
+
host: nex.toa.io
|
|
376
|
+
accept: application/yaml
|
|
377
|
+
content-type: application/json
|
|
378
|
+
mcp-protocol-version: 2026-07-28
|
|
379
|
+
mcp-method: prompts/list
|
|
380
|
+
|
|
381
|
+
{"jsonrpc": "2.0", "id": 6, "method": "prompts/list",
|
|
382
|
+
"params": {"_meta": {"io.modelcontextprotocol/protocolVersion": "2026-07-28",
|
|
383
|
+
"io.modelcontextprotocol/clientCapabilities": {}}}}
|
|
384
|
+
"""
|
|
385
|
+
Then the following reply is sent:
|
|
386
|
+
"""
|
|
387
|
+
404 Not Found
|
|
388
|
+
|
|
389
|
+
jsonrpc: '2.0'
|
|
390
|
+
id: 6
|
|
391
|
+
error:
|
|
392
|
+
code: -32601
|
|
393
|
+
"""
|
|
394
|
+
|
|
395
|
+
Scenario: A header saying one thing and a body another
|
|
396
|
+
What routes a request and what answers it must not be told two different things.
|
|
397
|
+
|
|
398
|
+
When the following request is received:
|
|
399
|
+
"""
|
|
400
|
+
POST /.mcp HTTP/1.1
|
|
401
|
+
host: nex.toa.io
|
|
402
|
+
accept: application/yaml
|
|
403
|
+
content-type: application/json
|
|
404
|
+
mcp-protocol-version: 2026-07-28
|
|
405
|
+
mcp-method: tools/call
|
|
406
|
+
mcp-name: pots/GET
|
|
407
|
+
|
|
408
|
+
{"jsonrpc": "2.0", "id": 7, "method": "tools/call",
|
|
409
|
+
"params": {"name": "pots/POST", "arguments": {},
|
|
410
|
+
"_meta": {"io.modelcontextprotocol/protocolVersion": "2026-07-28",
|
|
411
|
+
"io.modelcontextprotocol/clientCapabilities": {}}}}
|
|
412
|
+
"""
|
|
413
|
+
Then the following reply is sent:
|
|
414
|
+
"""
|
|
415
|
+
400 Bad Request
|
|
416
|
+
|
|
417
|
+
jsonrpc: '2.0'
|
|
418
|
+
id: 7
|
|
419
|
+
error:
|
|
420
|
+
code: -32020
|
|
421
|
+
"""
|
|
422
|
+
|
|
423
|
+
Scenario: A revision neither served
|
|
424
|
+
When the following request is received:
|
|
425
|
+
"""
|
|
426
|
+
POST /.mcp HTTP/1.1
|
|
427
|
+
host: nex.toa.io
|
|
428
|
+
accept: application/yaml
|
|
429
|
+
content-type: application/json
|
|
430
|
+
mcp-protocol-version: 1900-01-01
|
|
431
|
+
mcp-method: tools/list
|
|
432
|
+
|
|
433
|
+
{"jsonrpc": "2.0", "id": 8, "method": "tools/list", "params": {}}
|
|
434
|
+
"""
|
|
435
|
+
Then the following reply is sent:
|
|
436
|
+
"""
|
|
437
|
+
400 Bad Request
|
|
438
|
+
|
|
439
|
+
jsonrpc: '2.0'
|
|
440
|
+
id: 8
|
|
441
|
+
error:
|
|
442
|
+
code: -32022
|
|
443
|
+
data:
|
|
444
|
+
supported:
|
|
445
|
+
- '2026-07-28'
|
|
446
|
+
- '2025-11-25'
|
|
447
|
+
requested: '1900-01-01'
|
|
448
|
+
"""
|
|
449
|
+
|
|
450
|
+
Scenario: What the endpoint does not serve
|
|
451
|
+
A stream is what these were for, and this endpoint has none.
|
|
452
|
+
|
|
453
|
+
When the following request is received:
|
|
454
|
+
"""
|
|
455
|
+
GET /.mcp HTTP/1.1
|
|
456
|
+
host: nex.toa.io
|
|
457
|
+
"""
|
|
458
|
+
Then the following reply is sent:
|
|
459
|
+
"""
|
|
460
|
+
405 Method Not Allowed
|
|
461
|
+
allow: POST
|
|
462
|
+
"""
|
|
463
|
+
|
|
464
|
+
Scenario: Without the annotation nothing answers there
|
|
465
|
+
Given the annotation:
|
|
466
|
+
"""yaml
|
|
467
|
+
{}
|
|
468
|
+
"""
|
|
469
|
+
When the following request is received:
|
|
470
|
+
"""
|
|
471
|
+
POST /.mcp HTTP/1.1
|
|
472
|
+
host: nex.toa.io
|
|
473
|
+
content-type: application/json
|
|
474
|
+
|
|
475
|
+
{"jsonrpc": "2.0", "id": 9, "method": "tools/list", "params": {}}
|
|
476
|
+
"""
|
|
477
|
+
Then the following reply is sent:
|
|
478
|
+
"""
|
|
479
|
+
404 Not Found
|
|
480
|
+
"""
|
|
481
|
+
|
|
482
|
+
Scenario: A tool the caller may not call
|
|
483
|
+
What `auth` makes of a call is a refusal of the call, not of the credential: the model
|
|
484
|
+
named a record that is not the caller's, which it may correct itself by naming another.
|
|
485
|
+
A challenge here would send the client to ask for a scope that would not help.
|
|
486
|
+
|
|
487
|
+
# developer:secret, who is not an `admin` and so may not reach `pots/guarded/GET`
|
|
488
|
+
Given the `identity.basic` database contains:
|
|
489
|
+
| _id | authority | username | password |
|
|
490
|
+
| efe3a65ebbee47ed95a73edd911ea328 | nex | developer | $2b$10$ZRSKkgZoGnrcTNA5w5eCcu3pxDzdTduhteVYXcp56AaNcilNkwJ.O |
|
|
491
|
+
And the `identity.bans` database is empty
|
|
492
|
+
When the following request is received:
|
|
493
|
+
"""
|
|
494
|
+
POST /.mcp HTTP/1.1
|
|
495
|
+
host: nex.toa.io
|
|
496
|
+
authorization: Basic ZGV2ZWxvcGVyOnNlY3JldA==
|
|
497
|
+
accept: application/yaml
|
|
498
|
+
content-type: application/json
|
|
499
|
+
mcp-protocol-version: 2026-07-28
|
|
500
|
+
mcp-method: tools/call
|
|
501
|
+
mcp-name: pots/guarded/GET
|
|
502
|
+
|
|
503
|
+
{"jsonrpc": "2.0", "id": 31, "method": "tools/call",
|
|
504
|
+
"params": {"name": "pots/guarded/GET", "arguments": {},
|
|
505
|
+
"_meta": {"io.modelcontextprotocol/protocolVersion": "2026-07-28",
|
|
506
|
+
"io.modelcontextprotocol/clientCapabilities": {}}}}
|
|
507
|
+
"""
|
|
508
|
+
Then the following reply is sent:
|
|
509
|
+
"""
|
|
510
|
+
200 OK
|
|
511
|
+
|
|
512
|
+
jsonrpc: '2.0'
|
|
513
|
+
id: 31
|
|
514
|
+
result:
|
|
515
|
+
isError: true
|
|
516
|
+
"""
|
|
517
|
+
And the reply does not contain:
|
|
518
|
+
"""
|
|
519
|
+
insufficient_scope
|
|
520
|
+
"""
|
|
521
|
+
|
|
522
|
+
Scenario: An argument the schemas would not take
|
|
523
|
+
What the arguments are refused for is the model's to correct by sending others, so it
|
|
524
|
+
is a result and not an error of the protocol.
|
|
525
|
+
|
|
526
|
+
When the following request is received:
|
|
527
|
+
"""
|
|
528
|
+
POST /.mcp HTTP/1.1
|
|
529
|
+
host: nex.toa.io
|
|
530
|
+
accept: application/yaml
|
|
531
|
+
content-type: application/json
|
|
532
|
+
mcp-protocol-version: 2026-07-28
|
|
533
|
+
mcp-method: tools/call
|
|
534
|
+
mcp-name: pots/_id/GET
|
|
535
|
+
|
|
536
|
+
{"jsonrpc": "2.0", "id": 32, "method": "tools/call",
|
|
537
|
+
"params": {"name": "pots/_id/GET",
|
|
538
|
+
"arguments": {"id": "not-an-id"},
|
|
539
|
+
"_meta": {"io.modelcontextprotocol/protocolVersion": "2026-07-28",
|
|
540
|
+
"io.modelcontextprotocol/clientCapabilities": {}}}}
|
|
541
|
+
"""
|
|
542
|
+
Then the following reply is sent:
|
|
543
|
+
"""
|
|
544
|
+
200 OK
|
|
545
|
+
|
|
546
|
+
jsonrpc: '2.0'
|
|
547
|
+
id: 32
|
|
548
|
+
result:
|
|
549
|
+
isError: true
|
|
550
|
+
"""
|
|
551
|
+
|
|
552
|
+
Scenario: What the operation refused with
|
|
553
|
+
A refusal is a value a model reads and may correct itself by, so it is a result rather
|
|
554
|
+
than an error of the protocol.
|
|
555
|
+
|
|
556
|
+
Given the `echo` is running with the following manifest:
|
|
557
|
+
"""yaml
|
|
558
|
+
exposition:
|
|
559
|
+
/:
|
|
560
|
+
io:output: true
|
|
561
|
+
GET:
|
|
562
|
+
mcp:tool: Refuses, with what it was given.
|
|
563
|
+
endpoint: error
|
|
564
|
+
"""
|
|
565
|
+
When the following request is received:
|
|
566
|
+
"""
|
|
567
|
+
POST /.mcp HTTP/1.1
|
|
568
|
+
host: nex.toa.io
|
|
569
|
+
accept: application/yaml
|
|
570
|
+
content-type: application/json
|
|
571
|
+
mcp-protocol-version: 2026-07-28
|
|
572
|
+
mcp-method: tools/call
|
|
573
|
+
mcp-name: echo/GET
|
|
574
|
+
|
|
575
|
+
{"jsonrpc": "2.0", "id": 10, "method": "tools/call",
|
|
576
|
+
"params": {"name": "echo/GET", "arguments": {},
|
|
577
|
+
"_meta": {"io.modelcontextprotocol/protocolVersion": "2026-07-28",
|
|
578
|
+
"io.modelcontextprotocol/clientCapabilities": {}}}}
|
|
579
|
+
"""
|
|
580
|
+
Then the following reply is sent:
|
|
581
|
+
"""
|
|
582
|
+
200 OK
|
|
583
|
+
|
|
584
|
+
jsonrpc: '2.0'
|
|
585
|
+
id: 10
|
|
586
|
+
result:
|
|
587
|
+
content:
|
|
588
|
+
- type: text
|
|
589
|
+
text: message
|
|
590
|
+
isError: true
|
|
591
|
+
resultType: complete
|
|
592
|
+
"""
|
|
593
|
+
|
|
594
|
+
Scenario: An operation that declares no output
|
|
595
|
+
A schema the revision would have the reply validated against is worse said emptily than
|
|
596
|
+
left unsaid — and the reply is answered all the same.
|
|
597
|
+
|
|
598
|
+
Given the `echo` is running with the following manifest:
|
|
599
|
+
"""yaml
|
|
600
|
+
exposition:
|
|
601
|
+
/:
|
|
602
|
+
io:output: true
|
|
603
|
+
GET:
|
|
604
|
+
mcp:tool: Answers with what it was given.
|
|
605
|
+
endpoint: echo
|
|
606
|
+
"""
|
|
607
|
+
When the following request is received:
|
|
608
|
+
"""
|
|
609
|
+
POST /.mcp HTTP/1.1
|
|
610
|
+
host: nex.toa.io
|
|
611
|
+
accept: application/yaml
|
|
612
|
+
content-type: application/json
|
|
613
|
+
mcp-protocol-version: 2026-07-28
|
|
614
|
+
mcp-method: tools/call
|
|
615
|
+
mcp-name: echo/GET
|
|
616
|
+
|
|
617
|
+
{"jsonrpc": "2.0", "id": 11, "method": "tools/call",
|
|
618
|
+
"params": {"name": "echo/GET", "arguments": {"greeting": "hello"},
|
|
619
|
+
"_meta": {"io.modelcontextprotocol/protocolVersion": "2026-07-28",
|
|
620
|
+
"io.modelcontextprotocol/clientCapabilities": {}}}}
|
|
621
|
+
"""
|
|
622
|
+
Then the following reply is sent:
|
|
623
|
+
"""
|
|
624
|
+
200 OK
|
|
625
|
+
|
|
626
|
+
jsonrpc: '2.0'
|
|
627
|
+
id: 11
|
|
628
|
+
result:
|
|
629
|
+
structuredContent:
|
|
630
|
+
greeting: hello
|
|
631
|
+
resultType: complete
|
|
632
|
+
"""
|
|
633
|
+
|
|
634
|
+
Scenario: An origin that is not listed
|
|
635
|
+
The revision requires this against DNS rebinding, and an empty list admits none.
|
|
636
|
+
|
|
637
|
+
When the following request is received:
|
|
638
|
+
"""
|
|
639
|
+
POST /.mcp HTTP/1.1
|
|
640
|
+
host: nex.toa.io
|
|
641
|
+
origin: https://elsewhere.example
|
|
642
|
+
accept: application/yaml
|
|
643
|
+
content-type: application/json
|
|
644
|
+
mcp-protocol-version: 2026-07-28
|
|
645
|
+
mcp-method: tools/list
|
|
646
|
+
|
|
647
|
+
{"jsonrpc": "2.0", "id": 12, "method": "tools/list",
|
|
648
|
+
"params": {"_meta": {"io.modelcontextprotocol/protocolVersion": "2026-07-28",
|
|
649
|
+
"io.modelcontextprotocol/clientCapabilities": {}}}}
|
|
650
|
+
"""
|
|
651
|
+
Then the following reply is sent:
|
|
652
|
+
"""
|
|
653
|
+
403 Forbidden
|
|
654
|
+
"""
|
|
655
|
+
|
|
656
|
+
Scenario: Without a credential
|
|
657
|
+
A request without one is where the authorization flow starts, so the refusal carries
|
|
658
|
+
the document that says where to get a token.
|
|
659
|
+
|
|
660
|
+
Given the annotation:
|
|
661
|
+
"""yaml
|
|
662
|
+
authorities:
|
|
663
|
+
nex: nex.toa.io
|
|
664
|
+
oauth:
|
|
665
|
+
authorize: https://app.nex.toa.io/oauth/authorize
|
|
666
|
+
resources: ['/.mcp']
|
|
667
|
+
mcp:
|
|
668
|
+
name: Teapots
|
|
669
|
+
"""
|
|
670
|
+
When the following request is received:
|
|
671
|
+
"""
|
|
672
|
+
POST /.mcp HTTP/1.1
|
|
673
|
+
host: nex.toa.io
|
|
674
|
+
accept: application/yaml
|
|
675
|
+
content-type: application/json
|
|
676
|
+
mcp-protocol-version: 2026-07-28
|
|
677
|
+
mcp-method: tools/list
|
|
678
|
+
|
|
679
|
+
{"jsonrpc": "2.0", "id": 13, "method": "tools/list",
|
|
680
|
+
"params": {"_meta": {"io.modelcontextprotocol/protocolVersion": "2026-07-28",
|
|
681
|
+
"io.modelcontextprotocol/clientCapabilities": {}}}}
|
|
682
|
+
"""
|
|
683
|
+
Then the following reply is sent:
|
|
684
|
+
"""
|
|
685
|
+
401 Unauthorized
|
|
686
|
+
www-authenticate: Bearer resource_metadata="https://nex.toa.io/.well-known/oauth-protected-resource/.mcp"
|
|
687
|
+
"""
|