MCP Server を更新します。
操作説明
Description
This API updates the configuration of a specified MCP Server. Omitted fields retain their original values.
Note: When you modify the Visibility parameter, you must provide either ProjectIds or UserIds in VisibilityScope to apply the correct access control scope.
今すぐお試しください
テスト
RAM 認証
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| Name |
string |
必須 |
更新する MCP Server の名前。 |
my-mcp-server |
| Url |
string |
任意 |
新しいサービスアドレス。アドレスは |
https://example.com/mcp/sse |
| Transport |
string |
任意 |
新しいトランスポートプロトコル。 |
SSE |
| CustomHeaders |
object |
任意 |
新しいカスタムリクエストヘッダー。キーと値のペアで指定します。 |
{} |
| Visibility |
string |
任意 |
新しい可視性レベル。 |
TENANT |
| VisibilityScope |
object |
任意 |
新しい可視性の範囲。このオブジェクトのフィールドは、Visibility パラメーターの値によって異なります。 |
|
| ProjectIds |
array |
任意 |
The list of workspace IDs that can access the MCP Server. This parameter takes effect only when |
|
|
string |
任意 |
A workspace ID. |
[3162, 45766, 61258, 68916, 73279] |
|
| UserIds |
array |
任意 |
The list of user IDs that can access the MCP Server. This parameter takes effect only when |
|
|
string |
任意 |
A user ID. |
[123] |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
The response schema. |
||
| RequestId |
string |
The request ID. |
824F80BA-1778-5D8A-BAFF-668A4D9C4CC7 |
| McpServer |
object |
The details of the updated MCP Server. |
|
| Name |
string |
The name of the MCP Server. |
my-mcp-server |
| GmtCreateTime |
string |
The creation time. This value is a millisecond timestamp. |
1780555634000 |
| GmtModifiedTime |
string |
The last modification time. This value is a millisecond timestamp. |
1780555634000 |
例
成功レスポンス
JSONJSON
{
"RequestId": "824F80BA-1778-5D8A-BAFF-668A4D9C4CC7",
"McpServer": {
"Name": "my-mcp-server",
"GmtCreateTime": "1780555634000",
"GmtModifiedTime": "1780555634000"
}
}
エラーコード
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。