-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Session pool MCP server settings #38206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 6 commits
1becf40
ea3bcd3
ca0a411
8259772
33d2176
6907a13
c9e31d1
9670835
a8a93ae
ab86d4a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -231,6 +231,9 @@ | |
| }, | ||
| "Create or Update Session Pool with lifecycle OnContainerExit Timed": { | ||
| "$ref": "./examples/SessionPools_LifecycleOnContainerExit_CreateOrUpdate.json" | ||
| }, | ||
| "Create or Update Session Pool with MCP server": { | ||
| "$ref": "./examples/SessionPools_McpServer_CreateOrUpdate.json" | ||
| } | ||
| } | ||
| }, | ||
|
|
@@ -346,9 +349,109 @@ | |
| } | ||
| } | ||
| } | ||
| }, | ||
| "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/sessionPools/{sessionPoolName}/fetchMcpServerCredentials": { | ||
| "post": { | ||
| "tags": [ | ||
| "ContainerAppsSessionPools" | ||
| ], | ||
| "summary": "Fetch the MCP server credentials of a session pool.", | ||
| "operationId": "ContainerAppsSessionPools_FetchMcpServerCredentials", | ||
| "parameters": [ | ||
| { | ||
| "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" | ||
| }, | ||
| { | ||
| "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/SessionPoolNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK.", | ||
| "schema": { | ||
| "$ref": "#/definitions/McpServerCredential" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Common error response.", | ||
| "schema": { | ||
| "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" | ||
| } | ||
| } | ||
| }, | ||
| "x-ms-examples": { | ||
| "Fetch Session Pool MCP server credentials": { | ||
| "$ref": "./examples/SessionPools_FetchMcpServerCredentials.json" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/sessionPools/{sessionPoolName}/rotateMcpServerCredentials": { | ||
| "post": { | ||
| "tags": [ | ||
| "ContainerAppsSessionPools" | ||
| ], | ||
| "summary": "Rotate and fetch the rotated MCP server credentials of a session pool.", | ||
| "operationId": "ContainerAppsSessionPools_RotateMcpServerCredentials", | ||
| "parameters": [ | ||
| { | ||
| "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" | ||
| }, | ||
| { | ||
| "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/SessionPoolNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this a long running operation There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is not a long running operation |
||
| "description": "OK.", | ||
| "schema": { | ||
| "$ref": "#/definitions/McpServerCredential" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Common error response.", | ||
| "schema": { | ||
| "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" | ||
| } | ||
| } | ||
| }, | ||
| "x-ms-examples": { | ||
| "Rotate Session Pool MCP server credentials": { | ||
| "$ref": "./examples/SessionPools_RotateMcpServerCredentials.json" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "definitions": { | ||
| "McpServerSettings": { | ||
| "description": "The status of pods in the pool of this template.", | ||
|
||
| "type": "object", | ||
| "properties": { | ||
| "isMcpServerEnabled": { | ||
| "description": "Indicates whether the MCP server is enabled.", | ||
| "type": "boolean", | ||
| "default": false | ||
| }, | ||
| "mcpServerEndpoint": { | ||
| "description": "The endpoint of the MCP server.", | ||
| "type": "string", | ||
| "readOnly": true | ||
| } | ||
| } | ||
| }, | ||
| "TemplatePoolStatus": { | ||
| "description": "The status of pods in the pool of this template.", | ||
| "type": "object", | ||
|
|
@@ -899,6 +1002,10 @@ | |
| "x-ms-identifiers": [ | ||
| "identity" | ||
| ] | ||
| }, | ||
| "mcpServerSettings": { | ||
| "description": "The MCP server settings of the session pool.", | ||
| "$ref": "#/definitions/McpServerSettings" | ||
| } | ||
| }, | ||
| "x-ms-client-flatten": true | ||
|
|
@@ -1006,6 +1113,17 @@ | |
| "readOnly": true | ||
| } | ||
| } | ||
| }, | ||
| "McpServerCredential": { | ||
| "description": "The credentials used for the MCP server endpoint authentication.", | ||
| "type": "object", | ||
| "properties": { | ||
| "apiKey": { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should we mark it as secret? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fixed |
||
| "description": "The API key for the MCP server.", | ||
| "type": "string", | ||
| "readOnly": true | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| { | ||
| "parameters": { | ||
| "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", | ||
| "resourceGroupName": "rg", | ||
| "sessionPoolName": "testsessionpool", | ||
| "api-version": "2025-10-02-preview" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "headers": {}, | ||
| "body": { | ||
| "apiKey": "dummyapikey" | ||
| } | ||
| } | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,94 @@ | ||
| { | ||
| "parameters": { | ||
| "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", | ||
| "resourceGroupName": "rg", | ||
| "sessionPoolName": "testsessionpool", | ||
| "api-version": "2025-10-02-preview", | ||
| "sessionPoolEnvelope": { | ||
| "location": "East US", | ||
| "properties": { | ||
| "poolManagementType": "Dynamic", | ||
| "containerType": "Shell", | ||
| "scaleConfiguration": { | ||
| "maxConcurrentSessions": 50 | ||
| }, | ||
| "dynamicPoolConfiguration": { | ||
| "lifecycleConfiguration": { | ||
| "lifecycleType": "Timed", | ||
| "cooldownPeriodInSeconds": 600 | ||
| } | ||
| }, | ||
| "sessionNetworkConfiguration": { | ||
| "status": "EgressEnabled" | ||
| }, | ||
| "mcpServerSettings": { | ||
| "isMcpServerEnabled": true | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "headers": {}, | ||
| "body": { | ||
| "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/sessionPools/testsessionpool", | ||
| "name": "testsessionpool", | ||
| "type": "Microsoft.App/sessionPools", | ||
| "location": "East US", | ||
| "properties": { | ||
| "provisioningState": "Succeeded", | ||
| "poolManagementType": "Dynamic", | ||
| "containerType": "Shell", | ||
| "scaleConfiguration": { | ||
| "maxConcurrentSessions": 50 | ||
| }, | ||
| "dynamicPoolConfiguration": { | ||
| "lifecycleConfiguration": { | ||
| "lifecycleType": "Timed", | ||
| "cooldownPeriodInSeconds": 600 | ||
| } | ||
| }, | ||
| "sessionNetworkConfiguration": { | ||
| "status": "EgressEnabled" | ||
| }, | ||
| "mcpServerSettings": { | ||
| "isMcpServerEnabled": true, | ||
| "mcpServerEndpoint": "https://eastus.dynamicsessions.io/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/sessionPools/testsessionpool/mcp" | ||
| }, | ||
| "poolManagementEndpoint": "https://eastus.dynamicsessions.io/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/sessionPools/testsessionpool" | ||
| } | ||
| } | ||
| }, | ||
| "201": { | ||
| "headers": {}, | ||
| "body": { | ||
| "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/sessionPools/testsessionpool", | ||
| "name": "testsessionpool", | ||
| "type": "Microsoft.App/sessionPools", | ||
| "location": "East US", | ||
| "properties": { | ||
| "provisioningState": "InProgress", | ||
| "poolManagementType": "Dynamic", | ||
| "containerType": "Shell", | ||
| "scaleConfiguration": { | ||
| "maxConcurrentSessions": 50 | ||
| }, | ||
| "dynamicPoolConfiguration": { | ||
| "lifecycleConfiguration": { | ||
| "lifecycleType": "Timed", | ||
| "cooldownPeriodInSeconds": 600 | ||
| } | ||
| }, | ||
| "sessionNetworkConfiguration": { | ||
| "status": "EgressEnabled" | ||
| }, | ||
| "mcpServerSettings": { | ||
| "isMcpServerEnabled": true, | ||
| "mcpServerEndpoint": "https://eastus.dynamicsessions.io/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/sessionPools/testsessionpool/mcp" | ||
| }, | ||
| "poolManagementEndpoint": "https://eastus.dynamicsessions.io/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/sessionPools/testsessionpool" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| { | ||
| "parameters": { | ||
| "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", | ||
| "resourceGroupName": "rg", | ||
| "sessionPoolName": "testsessionpool", | ||
| "api-version": "2025-10-02-preview" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "headers": {}, | ||
| "body": { | ||
| "apiKey": "dummyapikey" | ||
| } | ||
| } | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this not a long running operation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, yes, this is not a long running operation