Skip to content

Commit 9fbaa99

Browse files
Add MCP extension configuration settings to host.json (SchemaStore#5276)
* Add MCP extension configuration settings to host.json * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Add MCP configuration details to host.v2.json * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 38d7c9f commit 9fbaa99

2 files changed

Lines changed: 63 additions & 0 deletions

File tree

src/schemas/json/host.json

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,54 @@
450450
},
451451
"additionalProperties": false
452452
},
453+
"mcp-extension": {
454+
"type": "object",
455+
"description": "Configuration settings for 'mcp' triggers.",
456+
"properties": {
457+
"instructions": {
458+
"description": "Describes to clients how to access the remote MCP server.",
459+
"type": "string"
460+
},
461+
"serverName": {
462+
"description": "A friendly name for the remote MCP server.",
463+
"type": "string"
464+
},
465+
"serverVersion": {
466+
"description": "Current version of the remote MCP server.",
467+
"type": "string"
468+
},
469+
"encryptClientState": {
470+
"description": "Determines if client state is encrypted. Defaults to true. Setting to false may be useful for debugging and test scenarios but isn't recommended for production.",
471+
"type": "boolean",
472+
"default": true
473+
},
474+
"messageOptions": {
475+
"description": "COptions object for the message endpoint in the SSE transport.",
476+
"type": "object",
477+
"properties": {
478+
"useAbsoluteUriForEndpoint": {
479+
"description": "If set to false, the message endpoint is provided as a relative URI during initial connections over the SSE transport. If set to true, the message endpoint is returned as an absolute URI. Using a relative URI isn't recommended unless you have a specific reason to do so.",
480+
"type": "boolean",
481+
"default": false
482+
}
483+
},
484+
"additionalProperties": false
485+
},
486+
"system": {
487+
"description": "COptions object for the message endpoint in the SSE transport.",
488+
"type": "object",
489+
"properties": {
490+
"webhookAuthorizationLevel": {
491+
"description": "Defines the authorization level required for the webhook endpoint. Defaults to \"System\". Allowed values are \"System\" and \"Anonymous\". When you set the value to \"Anonymous\", an access key is no longer required for requests.",
492+
"enum": ["System", "Anonymous"],
493+
"default": "System"
494+
}
495+
},
496+
"additionalProperties": false
497+
}
498+
},
499+
"additionalProperties": false
500+
},
453501
"version-1": {
454502
"type": "object",
455503
"properties": {
@@ -1480,6 +1528,9 @@
14801528
}
14811529
},
14821530
"additionalProperties": false
1531+
},
1532+
"mcp": {
1533+
"$ref": "#/definitions/mcp-extension"
14831534
}
14841535
},
14851536
"additionalProperties": false

src/test/host/host.v2.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,18 @@
9191
"maxOutstandingRequests": 200,
9292
"routePrefix": "api"
9393
},
94+
"mcp": {
95+
"encryptClientState": true,
96+
"instructions": "Some test instructions on how to use the server",
97+
"messageOptions": {
98+
"useAbsoluteUriForEndpoint": false
99+
},
100+
"serverName": "TestServer",
101+
"serverVersion": "2.0.0",
102+
"system": {
103+
"webhookAuthorizationLevel": "System"
104+
}
105+
},
94106
"queues": {
95107
"batchSize": 16,
96108
"maxDequeueCount": 5,

0 commit comments

Comments
 (0)