Skip to content

SEP-837: application_type check in DCR registration#284

Open
localden wants to merge 1 commit into
mainfrom
sep-837-dcr-application-type
Open

SEP-837: application_type check in DCR registration#284
localden wants to merge 1 commit into
mainfrom
sep-837-dcr-application-type

Conversation

@localden
Copy link
Copy Markdown

Closes #283.

Adds sep-837-application-type-present per SEP-837: clients MUST specify an appropriate application_type during Dynamic Client Registration. The harness can't know the client's real class (native vs web) so the check asserts presence + that the value is one of the two OIDC-defined values.

What changed

  • src/seps/sep-837.yaml: 1 check:, 4 excluded: (class-specific SHOULDs unobservable; UI/robustness)
  • Check added in the shared createAuthServer /register handler so it fires in every DCR-using auth scenario — no new scenario per the fewer-scenarios rule
  • Passing example: withOAuthRetry now sets application_type: 'native' (the conformance example clients are CLI tools)
  • Negative: auth-test-no-application-type.ts (omits the field) + vitest case

Outputnode dist/index.js client --scenario auth/metadata-default

client result
everything-client 16/16, 0 failed — sep-837-application-type-present SUCCESS ("native")
auth-test-no-application-type 14/15, 1 failedsep-837-application-type-present FAILURE

npm test: auth suite 28/28; lefthook pre-push 127/127.

SEP-837 requires MCP clients to specify an appropriate application_type
during Dynamic Client Registration so OIDC authorization servers can
apply the correct redirect-URI constraints.

- Traceability yaml: 1 check (presence + valid value), 4 excluded
  (class-specific SHOULDs unobservable; UI/robustness)
- Check added in the shared createAuthServer DCR handler so it fires in
  every auth scenario that performs DCR (no new scenario)
- withOAuthRetry now sets application_type: native (passing example;
  the conformance example clients are CLI tools)
- New auth-test-no-application-type negative client + vitest case
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 18, 2026

Open in StackBlitz

npx https://pkg.pr.new/@modelcontextprotocol/conformance@284

commit: 7b15bdb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Conformance coverage for SEP-837 (application_type during DCR)

1 participant