v2: codemod iterations, canonical zod schema exports from sdk-shared (#2354)

Co-authored-by: Felix Weinberger <fweinberger@anthropic.com>
This commit is contained in:
Konstantin Konstantinov 2026-06-25 21:42:44 +03:00 • committed by GitHub
commit 0fb8406d83
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 2954 additions and 1665 deletions

View file

@ -1,7 +1,7 @@
import { authorizationHandler, AuthorizationHandlerOptions, redirectUriMatches } from '../../../src/auth/handlers/authorize';
import { OAuthServerProvider, AuthorizationParams } from '../../../src/auth/provider';
import { OAuthRegisteredClientsStore } from '../../../src/auth/clients';
import { OAuthClientInformationFull, OAuthTokens } from '@modelcontextprotocol/core';
import { OAuthClientInformationFull, OAuthTokens } from '@modelcontextprotocol/core-internal';
import express, { Response } from 'express';
import supertest from 'supertest';
import { AuthInfo } from '../../../src/auth/types';

View file

@ -1,5 +1,5 @@
import { metadataHandler } from '../../../src/auth/handlers/metadata';
import { OAuthMetadata } from '@modelcontextprotocol/core';
import { OAuthMetadata } from '@modelcontextprotocol/core-internal';
import express from 'express';
import supertest from 'supertest';

View file

@ -1,6 +1,6 @@
import { clientRegistrationHandler, ClientRegistrationHandlerOptions } from '../../../src/auth/handlers/register';
import { OAuthRegisteredClientsStore } from '../../../src/auth/clients';
import { OAuthClientInformationFull, OAuthClientMetadata } from '@modelcontextprotocol/core';
import { OAuthClientInformationFull, OAuthClientMetadata } from '@modelcontextprotocol/core-internal';
import express from 'express';
import supertest from 'supertest';
import { MockInstance } from 'vitest';

View file

@ -1,7 +1,7 @@
import { revocationHandler, RevocationHandlerOptions } from '../../../src/auth/handlers/revoke';
import { OAuthServerProvider, AuthorizationParams } from '../../../src/auth/provider';
import { OAuthRegisteredClientsStore } from '../../../src/auth/clients';
import { OAuthClientInformationFull, OAuthTokenRevocationRequest, OAuthTokens } from '@modelcontextprotocol/core';
import { OAuthClientInformationFull, OAuthTokenRevocationRequest, OAuthTokens } from '@modelcontextprotocol/core-internal';
import express, { Response } from 'express';
import supertest from 'supertest';
import { AuthInfo } from '../../../src/auth/types';

View file

@ -1,7 +1,7 @@
import { tokenHandler, TokenHandlerOptions } from '../../../src/auth/handlers/token';
import { OAuthServerProvider, AuthorizationParams } from '../../../src/auth/provider';
import { OAuthRegisteredClientsStore } from '../../../src/auth/clients';
import { OAuthClientInformationFull, OAuthTokenRevocationRequest, OAuthTokens } from '@modelcontextprotocol/core';
import { OAuthClientInformationFull, OAuthTokenRevocationRequest, OAuthTokens } from '@modelcontextprotocol/core-internal';
import express, { Response } from 'express';
import supertest from 'supertest';
import * as pkceChallenge from 'pkce-challenge';

View file

@ -1,6 +1,6 @@
import { authenticateClient, ClientAuthenticationMiddlewareOptions } from '../../../src/auth/middleware/clientAuth';
import { OAuthRegisteredClientsStore } from '../../../src/auth/clients';
import { OAuthClientInformationFull } from '@modelcontextprotocol/core';
import { OAuthClientInformationFull } from '@modelcontextprotocol/core-internal';
import express from 'express';
import supertest from 'supertest';

View file

@ -1,7 +1,7 @@
import { Response } from 'express';
import { ProxyOAuthServerProvider, ProxyOptions } from '../../../src/auth/providers/proxyProvider';
import { AuthInfo } from '../../../src/auth/types';
import { OAuthClientInformationFull, OAuthTokens } from '@modelcontextprotocol/core';
import { OAuthClientInformationFull, OAuthTokens } from '@modelcontextprotocol/core-internal';
import { ServerError } from '../../../src/auth/errors';
import { InvalidTokenError } from '../../../src/auth/errors';
import { InsufficientScopeError } from '../../../src/auth/errors';

View file

@ -1,7 +1,7 @@
import { mcpAuthRouter, AuthRouterOptions, mcpAuthMetadataRouter, AuthMetadataOptions } from '../../src/auth/router';
import { OAuthServerProvider, AuthorizationParams } from '../../src/auth/provider';
import { OAuthRegisteredClientsStore } from '../../src/auth/clients';
import { OAuthClientInformationFull, OAuthMetadata, OAuthTokenRevocationRequest, OAuthTokens } from '@modelcontextprotocol/core';
import { OAuthClientInformationFull, OAuthMetadata, OAuthTokenRevocationRequest, OAuthTokens } from '@modelcontextprotocol/core-internal';
import express, { Response } from 'express';
import supertest from 'supertest';
import { AuthInfo } from '../../src/auth/types';

View file

@ -2,7 +2,7 @@ import http from 'node:http';
import { type Mocked } from 'vitest';
import { SSEServerTransport } from '../../src/sse/sse';
import type { JSONRPCMessage } from '@modelcontextprotocol/core';
import type { JSONRPCMessage } from '@modelcontextprotocol/core-internal';
const createMockResponse = () => {
const res = {