modelcontextprotocol / modelcontextprotocol/conformance

Add conformance tests for authorization baseline

Open
#116 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
127
Forks
101
Avg merge
6d 1h
Merged PRs (30d)
7

Description

Similar to https://github.com/modelcontextprotocol/conformance/issues/78 but even simpler, there are a number of baseline expectations that we could check without even needing a mock AS in the mix. A protected server (remote server requiring authorization) MUST always:

And some smoke tests for poor JWT implementations - not all access tokens are JWTs, but they are common enough that these footguns are well-documented:

  • Reject requests containing an unsigned JWT (no signature part)
  • Reject requests containing a JWT with alg: "none" (an old trick to get around signature validation, should be rejected by all modern JWT libs)
  • Reject requests containing a self-signed JWT (the presence of a signature is not enough, it must be signed with a trusted key!)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the related issue at https://github.com/modelcontextprotocol/conformance/issues/78 and the authorization requirements linked in this issue, then locate the existing conformance test entry points. Done means protected servers reject malformed and invalid bearer tokens, unsigned or alg:none JWTs, and self-signed JWTs.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
authentication, security, testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.