Skip to content

Commit af7661a

Browse files
author
Lasim
committed
feat(backend): replace default_config with transport_type enum in MCP servers
1 parent d8d4b69 commit af7661a

File tree

14 files changed

+2154
-151
lines changed

14 files changed

+2154
-151
lines changed

services/backend/api-spec.json

Lines changed: 166 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -12084,6 +12084,43 @@
1208412084
}
1208512085
}
1208612086
},
12087+
"400": {
12088+
"description": "Default Response",
12089+
"content": {
12090+
"application/json": {
12091+
"schema": {
12092+
"schema": {
12093+
"description": "Bad Request - Validation error",
12094+
"type": "object",
12095+
"properties": {
12096+
"success": {
12097+
"description": "Indicates if the operation was successful (false for errors)",
12098+
"default": false,
12099+
"type": "boolean"
12100+
},
12101+
"error": {
12102+
"description": "Error message",
12103+
"type": "string"
12104+
},
12105+
"details": {
12106+
"description": "Validation error details",
12107+
"type": "array",
12108+
"items": {
12109+
"type": "string"
12110+
}
12111+
}
12112+
},
12113+
"required": [
12114+
"success",
12115+
"error"
12116+
],
12117+
"additionalProperties": false
12118+
},
12119+
"components": {}
12120+
}
12121+
}
12122+
}
12123+
},
1208712124
"401": {
1208812125
"description": "Default Response",
1208912126
"content": {
@@ -13233,6 +13270,14 @@
1323313270
}
1323413271
]
1323513272
},
13273+
"transport_type": {
13274+
"type": "string",
13275+
"enum": [
13276+
"stdio",
13277+
"http",
13278+
"sse"
13279+
]
13280+
},
1323613281
"category_id": {
1323713282
"anyOf": [
1323813283
{
@@ -13302,6 +13347,7 @@
1330213347
"author_contact",
1330313348
"organization",
1330413349
"license",
13350+
"transport_type",
1330513351
"category_id",
1330613352
"tags",
1330713353
"status",
@@ -13622,18 +13668,12 @@
1362213668
}
1362313669
]
1362413670
},
13625-
"default_config": {
13626-
"anyOf": [
13627-
{
13628-
"type": "object",
13629-
"propertyNames": {
13630-
"type": "string"
13631-
},
13632-
"additionalProperties": {}
13633-
},
13634-
{
13635-
"type": "null"
13636-
}
13671+
"transport_type": {
13672+
"type": "string",
13673+
"enum": [
13674+
"stdio",
13675+
"http",
13676+
"sse"
1363713677
]
1363813678
},
1363913679
"environment_variables": {
@@ -13735,7 +13775,7 @@
1373513775
"author_contact",
1373613776
"organization",
1373713777
"license",
13738-
"default_config",
13778+
"transport_type",
1373913779
"environment_variables",
1374013780
"dependencies",
1374113781
"category_id",
@@ -14119,18 +14159,12 @@
1411914159
}
1412014160
]
1412114161
},
14122-
"default_config": {
14123-
"anyOf": [
14124-
{
14125-
"type": "object",
14126-
"propertyNames": {
14127-
"type": "string"
14128-
},
14129-
"additionalProperties": {}
14130-
},
14131-
{
14132-
"type": "null"
14133-
}
14162+
"transport_type": {
14163+
"type": "string",
14164+
"enum": [
14165+
"stdio",
14166+
"http",
14167+
"sse"
1413414168
]
1413514169
},
1413614170
"environment_variables": {
@@ -14232,7 +14266,7 @@
1423214266
"author_contact",
1423314267
"organization",
1423414268
"license",
14235-
"default_config",
14269+
"transport_type",
1423614270
"environment_variables",
1423714271
"dependencies",
1423814272
"category_id",
@@ -14477,6 +14511,14 @@
1447714511
"type": "string",
1447814512
"minLength": 1
1447914513
},
14514+
"transport_type": {
14515+
"type": "string",
14516+
"enum": [
14517+
"stdio",
14518+
"http",
14519+
"sse"
14520+
]
14521+
},
1448014522
"claude_desktop_config": {
1448114523
"type": "object",
1448214524
"properties": {
@@ -14628,6 +14670,7 @@
1462814670
"description",
1462914671
"language",
1463014672
"runtime",
14673+
"transport_type",
1463114674
"claude_desktop_config"
1463214675
],
1463314676
"additionalProperties": false
@@ -14814,18 +14857,12 @@
1481414857
}
1481514858
]
1481614859
},
14817-
"default_config": {
14818-
"anyOf": [
14819-
{
14820-
"type": "object",
14821-
"propertyNames": {
14822-
"type": "string"
14823-
},
14824-
"additionalProperties": {}
14825-
},
14826-
{
14827-
"type": "null"
14828-
}
14860+
"transport_type": {
14861+
"type": "string",
14862+
"enum": [
14863+
"stdio",
14864+
"http",
14865+
"sse"
1482914866
]
1483014867
},
1483114868
"environment_variables": {
@@ -14927,7 +14964,7 @@
1492714964
"author_contact",
1492814965
"organization",
1492914966
"license",
14930-
"default_config",
14967+
"transport_type",
1493114968
"environment_variables",
1493214969
"dependencies",
1493314970
"category_id",
@@ -15308,18 +15345,12 @@
1530815345
}
1530915346
]
1531015347
},
15311-
"default_config": {
15312-
"anyOf": [
15313-
{
15314-
"type": "object",
15315-
"propertyNames": {
15316-
"type": "string"
15317-
},
15318-
"additionalProperties": {}
15319-
},
15320-
{
15321-
"type": "null"
15322-
}
15348+
"transport_type": {
15349+
"type": "string",
15350+
"enum": [
15351+
"stdio",
15352+
"http",
15353+
"sse"
1532315354
]
1532415355
},
1532515356
"environment_variables": {
@@ -15421,7 +15452,7 @@
1542115452
"author_contact",
1542215453
"organization",
1542315454
"license",
15424-
"default_config",
15455+
"transport_type",
1542515456
"environment_variables",
1542615457
"dependencies",
1542715458
"category_id",
@@ -16161,6 +16192,25 @@
1616116192
}
1616216193
}
1616316194
}
16195+
},
16196+
"500": {
16197+
"description": "Default Response",
16198+
"content": {
16199+
"application/json": {
16200+
"schema": {
16201+
"type": "object",
16202+
"properties": {
16203+
"success": {
16204+
"type": "boolean",
16205+
"default": false
16206+
},
16207+
"error": {
16208+
"type": "string"
16209+
}
16210+
}
16211+
}
16212+
}
16213+
}
1616416214
}
1616516215
}
1616616216
}
@@ -16372,9 +16422,14 @@
1637216422
"nullable": true,
1637316423
"description": "Category ID"
1637416424
},
16375-
"default_config": {
16376-
"nullable": true,
16377-
"description": "Default configuration"
16425+
"transport_type": {
16426+
"type": "string",
16427+
"enum": [
16428+
"stdio",
16429+
"http",
16430+
"sse"
16431+
],
16432+
"description": "MCP transport type"
1637816433
}
1637916434
},
1638016435
"description": "Optional server details if included"
@@ -16726,9 +16781,14 @@
1672616781
"nullable": true,
1672716782
"description": "Category ID"
1672816783
},
16729-
"default_config": {
16730-
"nullable": true,
16731-
"description": "Default configuration"
16784+
"transport_type": {
16785+
"type": "string",
16786+
"enum": [
16787+
"stdio",
16788+
"http",
16789+
"sse"
16790+
],
16791+
"description": "MCP transport type"
1673216792
}
1673316793
},
1673416794
"description": "Optional server details if included"
@@ -17065,9 +17125,14 @@
1706517125
"nullable": true,
1706617126
"description": "Category ID"
1706717127
},
17068-
"default_config": {
17069-
"nullable": true,
17070-
"description": "Default configuration"
17128+
"transport_type": {
17129+
"type": "string",
17130+
"enum": [
17131+
"stdio",
17132+
"http",
17133+
"sse"
17134+
],
17135+
"description": "MCP transport type"
1707117136
}
1707217137
},
1707317138
"description": "Optional server details if included"
@@ -17424,9 +17489,14 @@
1742417489
"nullable": true,
1742517490
"description": "Category ID"
1742617491
},
17427-
"default_config": {
17428-
"nullable": true,
17429-
"description": "Default configuration"
17492+
"transport_type": {
17493+
"type": "string",
17494+
"enum": [
17495+
"stdio",
17496+
"http",
17497+
"sse"
17498+
],
17499+
"description": "MCP transport type"
1743017500
}
1743117501
},
1743217502
"description": "Optional server details if included"
@@ -17996,9 +18066,14 @@
1799618066
"nullable": true,
1799718067
"description": "Category ID"
1799818068
},
17999-
"default_config": {
18000-
"nullable": true,
18001-
"description": "Default configuration"
18069+
"transport_type": {
18070+
"type": "string",
18071+
"enum": [
18072+
"stdio",
18073+
"http",
18074+
"sse"
18075+
],
18076+
"description": "MCP transport type"
1800218077
}
1800318078
},
1800418079
"description": "Optional server details if included"
@@ -19751,6 +19826,30 @@
1975119826
}
1975219827
}
1975319828
}
19829+
},
19830+
"500": {
19831+
"description": "Internal Server Error",
19832+
"content": {
19833+
"application/json": {
19834+
"schema": {
19835+
"type": "object",
19836+
"properties": {
19837+
"success": {
19838+
"type": "boolean",
19839+
"default": false
19840+
},
19841+
"error": {
19842+
"type": "string"
19843+
}
19844+
},
19845+
"required": [
19846+
"success",
19847+
"error"
19848+
],
19849+
"description": "Internal Server Error"
19850+
}
19851+
}
19852+
}
1975419853
}
1975519854
}
1975619855
}

0 commit comments

Comments
 (0)