Skip to content

Conversation

@pcarleton
Copy link
Member

@pcarleton pcarleton commented Nov 18, 2025

partially addresses #34

depends on typescript sdk change here:
modelcontextprotocol/typescript-sdk#1127

@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 18, 2025

Open in StackBlitz

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

commit: a02d1c8

Comment on lines 3 to 7
import { Client } from '@modelcontextprotocol/sdk/client/index.js';
import { StreamableHTTPClientTransport } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
import { withOAuthRetry } from './helpers/withOAuthRetry.js';
import { runAsCli } from './helpers/cliRunner.js';
import { logger } from './helpers/logger.js';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: .js extension is not needed with tsx

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed all these 👍

Comment on lines 21 to 25
const oauthFetch = withOAuthRetry(
'test-auth-client-no-cimd',
new URL(serverUrl)
// Missing: handle401, clientMetadataUrl
)(fetch);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as a user am I expected to understand what this does? Like is this a learning moment for me. If so I think this method could be clearer.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yea the readability is a bit busted here for now. we need to upstream some things to the withOauth middleware in typescript and then refactor. for now i think this will be a little gross.

Copy link
Contributor

@mattzcarey mattzcarey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Couple of comments for readability

pcarleton and others added 5 commits November 20, 2025 14:50
Address review feedback: expanded comments to better explain what CIMD is,
why this client is non-compliant, and what behavior it's testing.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
tsx doesn't require .js extensions for TypeScript imports.
Keeps .js for @modelcontextprotocol/sdk imports as those are external packages.

Also improves auth-test-no-cimd.ts documentation for clarity.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Waiting on typescript-sdk PR #1127 for CIMD support.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Integrate new discovery-metadata.ts from main (replaces basic-dcr/basic-metadata)
- Keep CIMD scenario from this branch
- Apply .js extension removal to discovery-metadata imports

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@pcarleton pcarleton merged commit d303013 into main Nov 20, 2025
8 checks passed
@pcarleton pcarleton deleted the pcarleton/cimd branch November 20, 2025 21:00
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.

3 participants