diff --git a/docs/constructs/interfaces/McpAuthOptions.html b/docs/constructs/interfaces/McpAuthOptions.html index f444c5a6..3090a1b9 100644 --- a/docs/constructs/interfaces/McpAuthOptions.html +++ b/docs/constructs/interfaces/McpAuthOptions.html @@ -18,7 +18,7 @@ Requires explicit endpoint URLs and client ID.
Optional ReadonlylambdaOptional ReadonlyprotocolSupported MCP protocol versions (newest first).
-Optional ReadonlyscopesOAuth scopes to advertise in discovery metadata.
diff --git a/docs/constructs/interfaces/McpAuthProps.html b/docs/constructs/interfaces/McpAuthProps.html index d808c7ae..07f92798 100644 --- a/docs/constructs/interfaces/McpAuthProps.html +++ b/docs/constructs/interfaces/McpAuthProps.html @@ -24,7 +24,7 @@ReadonlyclientThe pre-provisioned OAuth client ID returned by the register endpoint.
Optional ReadonlylambdaLambda function options for MCP auth handlers.
Optional ReadonlyprotocolSupported MCP protocol versions (newest first).
-Optional ReadonlyscopesOAuth scopes to advertise in discovery metadata.
diff --git a/docs/constructs/interfaces/McpCognitoAuthProps.html b/docs/constructs/interfaces/McpCognitoAuthProps.html index 16502e69..8046ad30 100644 --- a/docs/constructs/interfaces/McpCognitoAuthProps.html +++ b/docs/constructs/interfaces/McpCognitoAuthProps.html @@ -34,7 +34,7 @@Optional ReadonlylambdaLambda function options for MCP auth handlers.
Optional ReadonlyprotocolSupported MCP protocol versions (newest first).
-Optional ReadonlyscopesOAuth scopes to advertise in discovery metadata.
diff --git a/src/constructs/mcp-auth.ts b/src/constructs/mcp-auth.ts
index a030607e..d1e43e0f 100644
--- a/src/constructs/mcp-auth.ts
+++ b/src/constructs/mcp-auth.ts
@@ -47,7 +47,7 @@ export interface McpAuthProps {
/**
* Supported MCP protocol versions (newest first).
- * @default ['2025-11-25', '2025-03-26', '2024-11-05']
+ * @default ['2025-11-25', '2025-06-18', '2025-03-26', '2024-11-05']
*/
readonly protocolVersions?: string[];
@@ -139,7 +139,7 @@ export class McpAuth extends Construct {
MCP_CLIENT_ID: props.clientId,
MCP_SERVER_NAME: props.serverInfo.name,
MCP_SERVER_VERSION: props.serverInfo.version,
- MCP_PROTOCOL_VERSIONS: (props.protocolVersions ?? ['2025-11-25', '2025-03-26', '2024-11-05']).join(','),
+ MCP_PROTOCOL_VERSIONS: (props.protocolVersions ?? ['2025-11-25', '2025-06-18', '2025-03-26', '2024-11-05']).join(','),
MCP_SCOPES: (props.scopes ?? ['openid', 'email', 'profile']).join(','),
MCP_ALLOWED_REDIRECT_URIS: props.allowedRedirectUris.join(','),
MCP_STRIP_PARAMETERS: (props.stripParameters ?? ['resource']).join(','),
diff --git a/src/constructs/mcp-cognito-auth.ts b/src/constructs/mcp-cognito-auth.ts
index a17ef3a8..c011c952 100644
--- a/src/constructs/mcp-cognito-auth.ts
+++ b/src/constructs/mcp-cognito-auth.ts
@@ -42,7 +42,7 @@ export interface McpCognitoAuthProps {
/**
* Supported MCP protocol versions (newest first).
- * @default ['2025-11-25', '2025-03-26', '2024-11-05']
+ * @default ['2025-11-25', '2025-06-18', '2025-03-26', '2024-11-05']
*/
readonly protocolVersions?: string[];
diff --git a/src/constructs/rest-api.ts b/src/constructs/rest-api.ts
index 633dda1f..3863e52b 100644
--- a/src/constructs/rest-api.ts
+++ b/src/constructs/rest-api.ts
@@ -100,7 +100,7 @@ export interface McpAuthOptions {
/**
* Supported MCP protocol versions (newest first).
- * @default ['2025-11-25', '2025-03-26', '2024-11-05']
+ * @default ['2025-11-25', '2025-06-18', '2025-03-26', '2024-11-05']
*/
readonly protocolVersions?: string[];
diff --git a/src/mcp-auth/mcp/server.ts b/src/mcp-auth/mcp/server.ts
index 605d5253..7ee718ea 100644
--- a/src/mcp-auth/mcp/server.ts
+++ b/src/mcp-auth/mcp/server.ts
@@ -62,12 +62,24 @@ export function createMcpServer
Lambda function options for MCP auth handlers.