Skip to content

Commit e0796b9

Browse files
authored
Merge pull request #485 from DEEIX-AI/project
feat: add default MCP tool and skill IDs to conversation projects
2 parents a0857d9 + f39eefe commit e0796b9

33 files changed

Lines changed: 1735 additions & 284 deletions

File tree

backend/docs/docs.go

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9769,6 +9769,16 @@ const docTemplate = `{
97699769
"name": "q",
97709770
"in": "query"
97719771
},
9772+
{
9773+
"type": "array",
9774+
"items": {
9775+
"type": "integer"
9776+
},
9777+
"collectionFormat": "multi",
9778+
"description": "按技能 ID 筛选,可重复传递",
9779+
"name": "id",
9780+
"in": "query"
9781+
},
97729782
{
97739783
"type": "integer",
97749784
"description": "页码",
@@ -9789,6 +9799,12 @@ const docTemplate = `{
97899799
"$ref": "#/definitions/internal_transport_http_skill.SkillSummaryPageResponseDoc"
97909800
}
97919801
},
9802+
"400": {
9803+
"description": "Bad Request",
9804+
"schema": {
9805+
"$ref": "#/definitions/internal_transport_http_skill.ErrorDoc"
9806+
}
9807+
},
97929808
"500": {
97939809
"description": "Internal Server Error",
97949810
"schema": {
@@ -16016,12 +16032,27 @@ const docTemplate = `{
1601616032
"createdAt": {
1601716033
"type": "string"
1601816034
},
16035+
"defaultMCPToolIDs": {
16036+
"type": "array",
16037+
"items": {
16038+
"type": "integer"
16039+
}
16040+
},
16041+
"defaultSkillIDs": {
16042+
"type": "array",
16043+
"items": {
16044+
"type": "integer"
16045+
}
16046+
},
1601916047
"description": {
1602016048
"type": "string"
1602116049
},
1602216050
"icon": {
1602316051
"type": "string"
1602416052
},
16053+
"mcpDefaultMode": {
16054+
"type": "string"
16055+
},
1602516056
"name": {
1602616057
"type": "string"
1602716058
},
@@ -16210,6 +16241,20 @@ const docTemplate = `{
1621016241
"type": "string",
1621116242
"maxLength": 32
1621216243
},
16244+
"defaultMCPToolIDs": {
16245+
"type": "array",
16246+
"maxItems": 128,
16247+
"items": {
16248+
"type": "integer"
16249+
}
16250+
},
16251+
"defaultSkillIDs": {
16252+
"type": "array",
16253+
"maxItems": 128,
16254+
"items": {
16255+
"type": "integer"
16256+
}
16257+
},
1621316258
"description": {
1621416259
"type": "string",
1621516260
"maxLength": 255
@@ -16218,6 +16263,13 @@ const docTemplate = `{
1621816263
"type": "string",
1621916264
"maxLength": 32
1622016265
},
16266+
"mcpDefaultMode": {
16267+
"type": "string",
16268+
"enum": [
16269+
"inherit",
16270+
"custom"
16271+
]
16272+
},
1622116273
"name": {
1622216274
"type": "string",
1622316275
"maxLength": 80
@@ -17278,6 +17330,20 @@ const docTemplate = `{
1727817330
"type": "string",
1727917331
"maxLength": 32
1728017332
},
17333+
"defaultMCPToolIDs": {
17334+
"type": "array",
17335+
"maxItems": 128,
17336+
"items": {
17337+
"type": "integer"
17338+
}
17339+
},
17340+
"defaultSkillIDs": {
17341+
"type": "array",
17342+
"maxItems": 128,
17343+
"items": {
17344+
"type": "integer"
17345+
}
17346+
},
1728117347
"description": {
1728217348
"type": "string",
1728317349
"maxLength": 255
@@ -17286,6 +17352,13 @@ const docTemplate = `{
1728617352
"type": "string",
1728717353
"maxLength": 32
1728817354
},
17355+
"mcpDefaultMode": {
17356+
"type": "string",
17357+
"enum": [
17358+
"inherit",
17359+
"custom"
17360+
]
17361+
},
1728917362
"name": {
1729017363
"type": "string",
1729117364
"maxLength": 80

backend/docs/swagger.json

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9762,6 +9762,16 @@
97629762
"name": "q",
97639763
"in": "query"
97649764
},
9765+
{
9766+
"type": "array",
9767+
"items": {
9768+
"type": "integer"
9769+
},
9770+
"collectionFormat": "multi",
9771+
"description": "按技能 ID 筛选,可重复传递",
9772+
"name": "id",
9773+
"in": "query"
9774+
},
97659775
{
97669776
"type": "integer",
97679777
"description": "页码",
@@ -9782,6 +9792,12 @@
97829792
"$ref": "#/definitions/internal_transport_http_skill.SkillSummaryPageResponseDoc"
97839793
}
97849794
},
9795+
"400": {
9796+
"description": "Bad Request",
9797+
"schema": {
9798+
"$ref": "#/definitions/internal_transport_http_skill.ErrorDoc"
9799+
}
9800+
},
97859801
"500": {
97869802
"description": "Internal Server Error",
97879803
"schema": {
@@ -16009,12 +16025,27 @@
1600916025
"createdAt": {
1601016026
"type": "string"
1601116027
},
16028+
"defaultMCPToolIDs": {
16029+
"type": "array",
16030+
"items": {
16031+
"type": "integer"
16032+
}
16033+
},
16034+
"defaultSkillIDs": {
16035+
"type": "array",
16036+
"items": {
16037+
"type": "integer"
16038+
}
16039+
},
1601216040
"description": {
1601316041
"type": "string"
1601416042
},
1601516043
"icon": {
1601616044
"type": "string"
1601716045
},
16046+
"mcpDefaultMode": {
16047+
"type": "string"
16048+
},
1601816049
"name": {
1601916050
"type": "string"
1602016051
},
@@ -16203,6 +16234,20 @@
1620316234
"type": "string",
1620416235
"maxLength": 32
1620516236
},
16237+
"defaultMCPToolIDs": {
16238+
"type": "array",
16239+
"maxItems": 128,
16240+
"items": {
16241+
"type": "integer"
16242+
}
16243+
},
16244+
"defaultSkillIDs": {
16245+
"type": "array",
16246+
"maxItems": 128,
16247+
"items": {
16248+
"type": "integer"
16249+
}
16250+
},
1620616251
"description": {
1620716252
"type": "string",
1620816253
"maxLength": 255
@@ -16211,6 +16256,13 @@
1621116256
"type": "string",
1621216257
"maxLength": 32
1621316258
},
16259+
"mcpDefaultMode": {
16260+
"type": "string",
16261+
"enum": [
16262+
"inherit",
16263+
"custom"
16264+
]
16265+
},
1621416266
"name": {
1621516267
"type": "string",
1621616268
"maxLength": 80
@@ -17271,6 +17323,20 @@
1727117323
"type": "string",
1727217324
"maxLength": 32
1727317325
},
17326+
"defaultMCPToolIDs": {
17327+
"type": "array",
17328+
"maxItems": 128,
17329+
"items": {
17330+
"type": "integer"
17331+
}
17332+
},
17333+
"defaultSkillIDs": {
17334+
"type": "array",
17335+
"maxItems": 128,
17336+
"items": {
17337+
"type": "integer"
17338+
}
17339+
},
1727417340
"description": {
1727517341
"type": "string",
1727617342
"maxLength": 255
@@ -17279,6 +17345,13 @@
1727917345
"type": "string",
1728017346
"maxLength": 32
1728117347
},
17348+
"mcpDefaultMode": {
17349+
"type": "string",
17350+
"enum": [
17351+
"inherit",
17352+
"custom"
17353+
]
17354+
},
1728217355
"name": {
1728317356
"type": "string",
1728417357
"maxLength": 80

backend/docs/swagger.yaml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3903,10 +3903,20 @@ definitions:
39033903
type: string
39043904
createdAt:
39053905
type: string
3906+
defaultMCPToolIDs:
3907+
items:
3908+
type: integer
3909+
type: array
3910+
defaultSkillIDs:
3911+
items:
3912+
type: integer
3913+
type: array
39063914
description:
39073915
type: string
39083916
icon:
39093917
type: string
3918+
mcpDefaultMode:
3919+
type: string
39103920
name:
39113921
type: string
39123922
publicID:
@@ -4028,12 +4038,27 @@ definitions:
40284038
color:
40294039
maxLength: 32
40304040
type: string
4041+
defaultMCPToolIDs:
4042+
items:
4043+
type: integer
4044+
maxItems: 128
4045+
type: array
4046+
defaultSkillIDs:
4047+
items:
4048+
type: integer
4049+
maxItems: 128
4050+
type: array
40314051
description:
40324052
maxLength: 255
40334053
type: string
40344054
icon:
40354055
maxLength: 32
40364056
type: string
4057+
mcpDefaultMode:
4058+
enum:
4059+
- inherit
4060+
- custom
4061+
type: string
40374062
name:
40384063
maxLength: 80
40394064
type: string
@@ -4739,12 +4764,27 @@ definitions:
47394764
color:
47404765
maxLength: 32
47414766
type: string
4767+
defaultMCPToolIDs:
4768+
items:
4769+
type: integer
4770+
maxItems: 128
4771+
type: array
4772+
defaultSkillIDs:
4773+
items:
4774+
type: integer
4775+
maxItems: 128
4776+
type: array
47424777
description:
47434778
maxLength: 255
47444779
type: string
47454780
icon:
47464781
maxLength: 32
47474782
type: string
4783+
mcpDefaultMode:
4784+
enum:
4785+
- inherit
4786+
- custom
4787+
type: string
47484788
name:
47494789
maxLength: 80
47504790
type: string
@@ -11351,6 +11391,13 @@ paths:
1135111391
in: query
1135211392
name: q
1135311393
type: string
11394+
- collectionFormat: multi
11395+
description: 按技能 ID 筛选,可重复传递
11396+
in: query
11397+
items:
11398+
type: integer
11399+
name: id
11400+
type: array
1135411401
- description: 页码
1135511402
in: query
1135611403
name: page
@@ -11366,6 +11413,10 @@ paths:
1136611413
description: OK
1136711414
schema:
1136811415
$ref: '#/definitions/internal_transport_http_skill.SkillSummaryPageResponseDoc'
11416+
"400":
11417+
description: Bad Request
11418+
schema:
11419+
$ref: '#/definitions/internal_transport_http_skill.ErrorDoc'
1136911420
"500":
1137011421
description: Internal Server Error
1137111422
schema:

0 commit comments

Comments
 (0)