Mengambil detail MCP Server.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:GetNacosMcpServer |
get |
*Semua Sumber daya.
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
No |
ID instans. |
mse_prepaid_public_cn-tl327w**** |
| NamespaceId |
string |
No |
ID namespace. |
5e3ee449-b5c0-4aee-b857-32c0acbebf26 |
| McpServerId |
string |
No |
ID MCP Server. |
5e3c5211-d365-4013-8540-c4106ec2a5dc |
| McpServerVersion |
string |
No |
Versi MCP Server. |
1.0.0 |
| AcceptLanguage |
string |
No |
Bahasa hasil yang dikembalikan. Nilai valid: zh (default): Chinese, en: English. |
zh |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
RestResult |
||
| RequestId |
string |
ID permintaan. |
72FC625E-9629-591B-9C01-3F0BFDAB**** |
| Data |
object |
Data yang dikembalikan. |
|
| RemoteServerConfig |
object |
Konfigurasi server jarak jauh. |
|
| ServiceRef |
object |
||
| NamespaceId |
string |
public |
|
| GroupName |
string |
DEFAULT |
|
| ServiceName |
string |
mcp-service |
|
| ExportPath |
string |
/sse |
|
| LocalServerConfig |
object |
Konfigurasi MCP Server lokal. |
|
|
any |
Konfigurasi server lokal spesifik. |
{ |
|
| BackendEndpoints |
array<object> |
Endpoint layanan backend. |
|
|
object |
|||
| Address |
string |
127.0.0.1 |
|
| Port |
integer |
80 |
|
| Path |
string |
/sse |
|
| ToolSpec |
object |
Spesifikasi alat. |
|
| Tools |
array<object> |
||
|
array<object> |
|||
| Name |
string |
get_weather |
|
| Description |
string |
a weather query tool |
|
| InputSchema |
object |
||
|
any |
{"type":"object","properties":{"name":{"type":"string","description":"name"}}} |
||
| ToolsMeta |
object |
||
|
object |
|||
| Enabled |
boolean |
true |
|
| Templates |
object |
||
|
any |
{"requestTemplate":{"url":"https://api.example.com/endpoint/{{.args.NewArg1}}","method":"GET","headers":[{"key":"Authorization","value":"Bearer {{.security.token}}"}]},"responseTemplate":{"body":"{{.}}"},"argsPosition":{"NewArg1":"path"}} |
||
| SpecificationType |
string |
||
| SecuritySchemes |
any |
||
| ToolDecryptStatus |
string |
||
| AllVersions |
array<object> |
Semua informasi versi MCP Server saat ini. |
|
|
object |
|||
| Version |
string |
1.0.9 |
|
| Release_date |
string |
2025-07-16 |
|
| Is_latest |
boolean |
true |
|
| Enabled |
boolean |
Apakah gerbang diaktifkan. Nilai valid: |
true. |
| Id |
string |
ID。 |
5e3c5211-d365-4013-8540-c4106ec2a5dc |
| Name |
string |
Nama. |
mcp-demo. |
| Description |
string |
Deskripsi. |
Deskripsi. |
| Protocol |
string |
Protokol. |
mcp-sse. |
| FrontProtocol |
string |
Jenis protokol yang diekspos secara eksternal. |
mcp-sse. |
| Capabilities |
array |
Kapabilitas MCP Server saat ini. |
|
|
string |
Deskripsi kapabilitas. |
TOOL. |
|
| VersionDetail |
object |
Detail versi. |
|
| Version |
string |
1.11.0 |
|
| ReleaseDate |
string |
2025-07-16 |
|
| IsLatest |
boolean |
true |
|
| YamlConfig |
string |
Konfigurasi YAML gerbang AI. |
allowTools: |
Contoh
Respons sukses
JSONformat
{
"RequestId": "72FC625E-9629-591B-9C01-3F0BFDAB****",
"Data": {
"RemoteServerConfig": {
"ServiceRef": {
"NamespaceId": "public",
"GroupName": "DEFAULT",
"ServiceName": "mcp-service"
},
"ExportPath": "/sse"
},
"LocalServerConfig": {
"key": "{\n \"mcpServers\":\n {\n \"amap-mcp-server\":\n {\n \"description\": \"高德地图服务\",\n \"command\": \"npx\",\n \"args\":\n [\n \"-y\",\n \"@amap/amap-maps-mcp-server\"\n ],\n \"env\":\n {\n \"AMAP_MAPS_API_KEY\": \"\"\n }\n }\n }\n}\n"
},
"BackendEndpoints": [
{
"Address": "127.0.0.1",
"Port": 80,
"Path": "/sse"
}
],
"ToolSpec": {
"Tools": [
{
"Name": "get_weather",
"Description": "a weather query tool",
"InputSchema": {
"key": "{\"type\":\"object\",\"properties\":{\"name\":{\"type\":\"string\",\"description\":\"name\"}}}"
}
}
],
"ToolsMeta": {
"key": {
"Enabled": true,
"Templates": {
"key": "{\"requestTemplate\":{\"url\":\"https://api.example.com/endpoint/{{.args.NewArg1}}\",\"method\":\"GET\",\"headers\":[{\"key\":\"Authorization\",\"value\":\"Bearer {{.security.token}}\"}]},\"responseTemplate\":{\"body\":\"{{.}}\"},\"argsPosition\":{\"NewArg1\":\"path\"}}"
}
}
},
"SpecificationType": "",
"SecuritySchemes": "",
"ToolDecryptStatus": ""
},
"AllVersions": [
{
"Version": "1.0.9",
"Release_date": "2025-07-16\n",
"Is_latest": true
}
],
"Enabled": true,
"Id": "5e3c5211-d365-4013-8540-c4106ec2a5dc",
"Name": "mcp-demo",
"Description": "描述",
"Protocol": "mcp-sse",
"FrontProtocol": "mcp-sse",
"Capabilities": [
"TOOL"
],
"VersionDetail": {
"Version": "1.11.0",
"ReleaseDate": "2025-07-16",
"IsLatest": true
},
"YamlConfig": "allowTools:\n- demo-tool\nsecurityScheme: {}\nserver:\n name: mcp-demo\ntools:\n- args:\n - name: name\n description: name\n type: string\n description: a demo tool\n name: demo-tool\n"
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IllegalRequest | Invalid request:%s | |
| 400 | InvalidParameter | Parameter error:%s | |
| 500 | InternalError | Console error. Try again later:%s | |
| 403 | NoPermission | You are not authorized to perform this operation:%s | |
| 404 | NotFound | Not found:%s |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.