Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions src/conformance/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,24 @@ npx @modelcontextprotocol/conformance server \

- `everything-client.ts` - Client that handles all client conformance scenarios
- `everything-server.ts` - Server that implements all server conformance features
- `auth-test-server.ts` - Server with OAuth authentication for auth conformance tests
- `helpers/` - Shared utilities for conformance tests

Scripts are in `scripts/` at the repo root.

## Auth Test Server

The `auth-test-server.ts` is designed for testing server-side OAuth implementation.
It requires an authorization server URL and validates tokens via introspection.

```bash
# Start with a fake auth server
MCP_CONFORMANCE_AUTH_SERVER_URL=http://localhost:3000 \
npx tsx src/conformance/auth-test-server.ts
```

The server:
- Requires Bearer token authentication on all MCP endpoints
- Uses the SDK's `requireBearerAuth` middleware
- Validates tokens via the AS's introspection endpoint (RFC 7662)
- Serves Protected Resource Metadata at `/.well-known/oauth-protected-resource`
Loading
Loading