@ancplua/qyl-api-schema 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3513,10 +3513,35 @@
|
|
|
3513
3513
|
"format": "int64",
|
|
3514
3514
|
"minimum": 0
|
|
3515
3515
|
},
|
|
3516
|
+
"icons": {
|
|
3517
|
+
"type": "array",
|
|
3518
|
+
"items": {
|
|
3519
|
+
"$ref": "#/$defs/Runner.Mcp.RunnerMcpIcon"
|
|
3520
|
+
}
|
|
3521
|
+
},
|
|
3516
3522
|
"resource": {
|
|
3523
|
+
"$ref": "#/$defs/Runner.Mcp.RunnerMcpResourceContent"
|
|
3524
|
+
},
|
|
3525
|
+
"id": {
|
|
3526
|
+
"type": "string"
|
|
3527
|
+
},
|
|
3528
|
+
"input": {},
|
|
3529
|
+
"toolUseId": {
|
|
3530
|
+
"type": "string"
|
|
3531
|
+
},
|
|
3532
|
+
"content": {
|
|
3533
|
+
"type": "array",
|
|
3534
|
+
"items": {
|
|
3535
|
+
"$ref": "#/$defs/Runner.Mcp.RunnerMcpContent"
|
|
3536
|
+
}
|
|
3537
|
+
},
|
|
3538
|
+
"structuredContent": {
|
|
3517
3539
|
"type": "object",
|
|
3518
3540
|
"unevaluatedProperties": {}
|
|
3519
3541
|
},
|
|
3542
|
+
"isError": {
|
|
3543
|
+
"type": "boolean"
|
|
3544
|
+
},
|
|
3520
3545
|
"annotations": {
|
|
3521
3546
|
"type": "object",
|
|
3522
3547
|
"unevaluatedProperties": {}
|
|
@@ -3526,7 +3551,31 @@
|
|
|
3526
3551
|
"unevaluatedProperties": {}
|
|
3527
3552
|
}
|
|
3528
3553
|
},
|
|
3529
|
-
"description": "One MCP content item projected onto a stable qyl JSON shape."
|
|
3554
|
+
"description": "One MCP content item projected onto a stable qyl JSON shape. Variant-specific required fields follow its type discriminator."
|
|
3555
|
+
},
|
|
3556
|
+
"Runner.Mcp.RunnerMcpIcon": {
|
|
3557
|
+
"type": "object",
|
|
3558
|
+
"required": [
|
|
3559
|
+
"src"
|
|
3560
|
+
],
|
|
3561
|
+
"properties": {
|
|
3562
|
+
"src": {
|
|
3563
|
+
"type": "string"
|
|
3564
|
+
},
|
|
3565
|
+
"mimeType": {
|
|
3566
|
+
"type": "string"
|
|
3567
|
+
},
|
|
3568
|
+
"sizes": {
|
|
3569
|
+
"type": "array",
|
|
3570
|
+
"items": {
|
|
3571
|
+
"type": "string"
|
|
3572
|
+
}
|
|
3573
|
+
},
|
|
3574
|
+
"theme": {
|
|
3575
|
+
"type": "string"
|
|
3576
|
+
}
|
|
3577
|
+
},
|
|
3578
|
+
"description": "Icon metadata carried by MCP tools and resource links."
|
|
3530
3579
|
},
|
|
3531
3580
|
"Runner.Mcp.RunnerMcpResourceContent": {
|
|
3532
3581
|
"type": "object",
|
|
@@ -3563,6 +3612,10 @@
|
|
|
3563
3612
|
"uri": {
|
|
3564
3613
|
"type": "string",
|
|
3565
3614
|
"format": "uri"
|
|
3615
|
+
},
|
|
3616
|
+
"_meta": {
|
|
3617
|
+
"type": "object",
|
|
3618
|
+
"unevaluatedProperties": {}
|
|
3566
3619
|
}
|
|
3567
3620
|
},
|
|
3568
3621
|
"description": "Resource URI accepted by the runner's MCP projection."
|
|
@@ -3586,6 +3639,64 @@
|
|
|
3586
3639
|
},
|
|
3587
3640
|
"description": "Stable qyl projection of an MCP resources/read result."
|
|
3588
3641
|
},
|
|
3642
|
+
"Runner.Mcp.RunnerMcpTask": {
|
|
3643
|
+
"type": "object",
|
|
3644
|
+
"required": [
|
|
3645
|
+
"taskId",
|
|
3646
|
+
"status",
|
|
3647
|
+
"createdAt",
|
|
3648
|
+
"lastUpdatedAt"
|
|
3649
|
+
],
|
|
3650
|
+
"properties": {
|
|
3651
|
+
"taskId": {
|
|
3652
|
+
"type": "string"
|
|
3653
|
+
},
|
|
3654
|
+
"status": {
|
|
3655
|
+
"$ref": "#/$defs/Runner.Mcp.RunnerMcpTaskStatus"
|
|
3656
|
+
},
|
|
3657
|
+
"statusMessage": {
|
|
3658
|
+
"type": "string"
|
|
3659
|
+
},
|
|
3660
|
+
"createdAt": {
|
|
3661
|
+
"type": "string",
|
|
3662
|
+
"format": "date-time"
|
|
3663
|
+
},
|
|
3664
|
+
"lastUpdatedAt": {
|
|
3665
|
+
"type": "string",
|
|
3666
|
+
"format": "date-time"
|
|
3667
|
+
},
|
|
3668
|
+
"ttl": {
|
|
3669
|
+
"type": "number",
|
|
3670
|
+
"format": "double"
|
|
3671
|
+
},
|
|
3672
|
+
"pollInterval": {
|
|
3673
|
+
"type": "number",
|
|
3674
|
+
"format": "double"
|
|
3675
|
+
}
|
|
3676
|
+
},
|
|
3677
|
+
"description": "Task returned by an MCP task-augmented tool call. ttl and pollInterval are encoded as milliseconds."
|
|
3678
|
+
},
|
|
3679
|
+
"Runner.Mcp.RunnerMcpTaskMetadata": {
|
|
3680
|
+
"type": "object",
|
|
3681
|
+
"properties": {
|
|
3682
|
+
"ttl": {
|
|
3683
|
+
"type": "number",
|
|
3684
|
+
"format": "double"
|
|
3685
|
+
}
|
|
3686
|
+
},
|
|
3687
|
+
"description": "Task-augmentation metadata accepted on an MCP tool call. ttl is encoded as milliseconds."
|
|
3688
|
+
},
|
|
3689
|
+
"Runner.Mcp.RunnerMcpTaskStatus": {
|
|
3690
|
+
"type": "string",
|
|
3691
|
+
"enum": [
|
|
3692
|
+
"working",
|
|
3693
|
+
"input_required",
|
|
3694
|
+
"completed",
|
|
3695
|
+
"failed",
|
|
3696
|
+
"cancelled"
|
|
3697
|
+
],
|
|
3698
|
+
"description": "Lifecycle state of an MCP task returned by a task-augmented tool call."
|
|
3699
|
+
},
|
|
3589
3700
|
"Runner.Mcp.RunnerMcpTool": {
|
|
3590
3701
|
"type": "object",
|
|
3591
3702
|
"required": [
|
|
@@ -3614,6 +3725,15 @@
|
|
|
3614
3725
|
"type": "object",
|
|
3615
3726
|
"unevaluatedProperties": {}
|
|
3616
3727
|
},
|
|
3728
|
+
"execution": {
|
|
3729
|
+
"$ref": "#/$defs/Runner.Mcp.RunnerMcpToolExecution"
|
|
3730
|
+
},
|
|
3731
|
+
"icons": {
|
|
3732
|
+
"type": "array",
|
|
3733
|
+
"items": {
|
|
3734
|
+
"$ref": "#/$defs/Runner.Mcp.RunnerMcpIcon"
|
|
3735
|
+
}
|
|
3736
|
+
},
|
|
3617
3737
|
"_meta": {
|
|
3618
3738
|
"type": "object",
|
|
3619
3739
|
"unevaluatedProperties": {}
|
|
@@ -3633,6 +3753,13 @@
|
|
|
3633
3753
|
"arguments": {
|
|
3634
3754
|
"type": "object",
|
|
3635
3755
|
"unevaluatedProperties": {}
|
|
3756
|
+
},
|
|
3757
|
+
"task": {
|
|
3758
|
+
"$ref": "#/$defs/Runner.Mcp.RunnerMcpTaskMetadata"
|
|
3759
|
+
},
|
|
3760
|
+
"_meta": {
|
|
3761
|
+
"type": "object",
|
|
3762
|
+
"unevaluatedProperties": {}
|
|
3636
3763
|
}
|
|
3637
3764
|
},
|
|
3638
3765
|
"description": "Tool call accepted by the runner's MCP projection."
|
|
@@ -3657,6 +3784,9 @@
|
|
|
3657
3784
|
"isError": {
|
|
3658
3785
|
"type": "boolean"
|
|
3659
3786
|
},
|
|
3787
|
+
"task": {
|
|
3788
|
+
"$ref": "#/$defs/Runner.Mcp.RunnerMcpTask"
|
|
3789
|
+
},
|
|
3660
3790
|
"_meta": {
|
|
3661
3791
|
"type": "object",
|
|
3662
3792
|
"unevaluatedProperties": {}
|
|
@@ -3664,6 +3794,24 @@
|
|
|
3664
3794
|
},
|
|
3665
3795
|
"description": "Stable qyl projection of an MCP tool-call result."
|
|
3666
3796
|
},
|
|
3797
|
+
"Runner.Mcp.RunnerMcpToolExecution": {
|
|
3798
|
+
"type": "object",
|
|
3799
|
+
"properties": {
|
|
3800
|
+
"taskSupport": {
|
|
3801
|
+
"$ref": "#/$defs/Runner.Mcp.RunnerMcpToolTaskSupport"
|
|
3802
|
+
}
|
|
3803
|
+
},
|
|
3804
|
+
"description": "Execution metadata advertised for an MCP tool."
|
|
3805
|
+
},
|
|
3806
|
+
"Runner.Mcp.RunnerMcpToolTaskSupport": {
|
|
3807
|
+
"type": "string",
|
|
3808
|
+
"enum": [
|
|
3809
|
+
"forbidden",
|
|
3810
|
+
"optional",
|
|
3811
|
+
"required"
|
|
3812
|
+
],
|
|
3813
|
+
"description": "Task-augmentation support advertised for an MCP tool."
|
|
3814
|
+
},
|
|
3667
3815
|
"Runner.Mcp.RunnerMcpToolsResponse": {
|
|
3668
3816
|
"type": "object",
|
|
3669
3817
|
"required": [
|
|
@@ -6556,10 +6556,35 @@
|
|
|
6556
6556
|
"format": "int64",
|
|
6557
6557
|
"minimum": 0
|
|
6558
6558
|
},
|
|
6559
|
+
"icons": {
|
|
6560
|
+
"type": "array",
|
|
6561
|
+
"items": {
|
|
6562
|
+
"$ref": "#/components/schemas/Runner.Mcp.RunnerMcpIcon"
|
|
6563
|
+
}
|
|
6564
|
+
},
|
|
6559
6565
|
"resource": {
|
|
6566
|
+
"$ref": "#/components/schemas/Runner.Mcp.RunnerMcpResourceContent"
|
|
6567
|
+
},
|
|
6568
|
+
"id": {
|
|
6569
|
+
"type": "string"
|
|
6570
|
+
},
|
|
6571
|
+
"input": {},
|
|
6572
|
+
"toolUseId": {
|
|
6573
|
+
"type": "string"
|
|
6574
|
+
},
|
|
6575
|
+
"content": {
|
|
6576
|
+
"type": "array",
|
|
6577
|
+
"items": {
|
|
6578
|
+
"$ref": "#/components/schemas/Runner.Mcp.RunnerMcpContent"
|
|
6579
|
+
}
|
|
6580
|
+
},
|
|
6581
|
+
"structuredContent": {
|
|
6560
6582
|
"type": "object",
|
|
6561
6583
|
"unevaluatedProperties": {}
|
|
6562
6584
|
},
|
|
6585
|
+
"isError": {
|
|
6586
|
+
"type": "boolean"
|
|
6587
|
+
},
|
|
6563
6588
|
"annotations": {
|
|
6564
6589
|
"type": "object",
|
|
6565
6590
|
"unevaluatedProperties": {}
|
|
@@ -6569,7 +6594,31 @@
|
|
|
6569
6594
|
"unevaluatedProperties": {}
|
|
6570
6595
|
}
|
|
6571
6596
|
},
|
|
6572
|
-
"description": "One MCP content item projected onto a stable qyl JSON shape."
|
|
6597
|
+
"description": "One MCP content item projected onto a stable qyl JSON shape. Variant-specific required fields follow its type discriminator."
|
|
6598
|
+
},
|
|
6599
|
+
"Runner.Mcp.RunnerMcpIcon": {
|
|
6600
|
+
"type": "object",
|
|
6601
|
+
"required": [
|
|
6602
|
+
"src"
|
|
6603
|
+
],
|
|
6604
|
+
"properties": {
|
|
6605
|
+
"src": {
|
|
6606
|
+
"type": "string"
|
|
6607
|
+
},
|
|
6608
|
+
"mimeType": {
|
|
6609
|
+
"type": "string"
|
|
6610
|
+
},
|
|
6611
|
+
"sizes": {
|
|
6612
|
+
"type": "array",
|
|
6613
|
+
"items": {
|
|
6614
|
+
"type": "string"
|
|
6615
|
+
}
|
|
6616
|
+
},
|
|
6617
|
+
"theme": {
|
|
6618
|
+
"type": "string"
|
|
6619
|
+
}
|
|
6620
|
+
},
|
|
6621
|
+
"description": "Icon metadata carried by MCP tools and resource links."
|
|
6573
6622
|
},
|
|
6574
6623
|
"Runner.Mcp.RunnerMcpResourceContent": {
|
|
6575
6624
|
"type": "object",
|
|
@@ -6606,6 +6655,10 @@
|
|
|
6606
6655
|
"uri": {
|
|
6607
6656
|
"type": "string",
|
|
6608
6657
|
"format": "uri"
|
|
6658
|
+
},
|
|
6659
|
+
"_meta": {
|
|
6660
|
+
"type": "object",
|
|
6661
|
+
"unevaluatedProperties": {}
|
|
6609
6662
|
}
|
|
6610
6663
|
},
|
|
6611
6664
|
"description": "Resource URI accepted by the runner's MCP projection."
|
|
@@ -6629,6 +6682,64 @@
|
|
|
6629
6682
|
},
|
|
6630
6683
|
"description": "Stable qyl projection of an MCP resources/read result."
|
|
6631
6684
|
},
|
|
6685
|
+
"Runner.Mcp.RunnerMcpTask": {
|
|
6686
|
+
"type": "object",
|
|
6687
|
+
"required": [
|
|
6688
|
+
"taskId",
|
|
6689
|
+
"status",
|
|
6690
|
+
"createdAt",
|
|
6691
|
+
"lastUpdatedAt"
|
|
6692
|
+
],
|
|
6693
|
+
"properties": {
|
|
6694
|
+
"taskId": {
|
|
6695
|
+
"type": "string"
|
|
6696
|
+
},
|
|
6697
|
+
"status": {
|
|
6698
|
+
"$ref": "#/components/schemas/Runner.Mcp.RunnerMcpTaskStatus"
|
|
6699
|
+
},
|
|
6700
|
+
"statusMessage": {
|
|
6701
|
+
"type": "string"
|
|
6702
|
+
},
|
|
6703
|
+
"createdAt": {
|
|
6704
|
+
"type": "string",
|
|
6705
|
+
"format": "date-time"
|
|
6706
|
+
},
|
|
6707
|
+
"lastUpdatedAt": {
|
|
6708
|
+
"type": "string",
|
|
6709
|
+
"format": "date-time"
|
|
6710
|
+
},
|
|
6711
|
+
"ttl": {
|
|
6712
|
+
"type": "number",
|
|
6713
|
+
"format": "double"
|
|
6714
|
+
},
|
|
6715
|
+
"pollInterval": {
|
|
6716
|
+
"type": "number",
|
|
6717
|
+
"format": "double"
|
|
6718
|
+
}
|
|
6719
|
+
},
|
|
6720
|
+
"description": "Task returned by an MCP task-augmented tool call. ttl and pollInterval are encoded as milliseconds."
|
|
6721
|
+
},
|
|
6722
|
+
"Runner.Mcp.RunnerMcpTaskMetadata": {
|
|
6723
|
+
"type": "object",
|
|
6724
|
+
"properties": {
|
|
6725
|
+
"ttl": {
|
|
6726
|
+
"type": "number",
|
|
6727
|
+
"format": "double"
|
|
6728
|
+
}
|
|
6729
|
+
},
|
|
6730
|
+
"description": "Task-augmentation metadata accepted on an MCP tool call. ttl is encoded as milliseconds."
|
|
6731
|
+
},
|
|
6732
|
+
"Runner.Mcp.RunnerMcpTaskStatus": {
|
|
6733
|
+
"type": "string",
|
|
6734
|
+
"enum": [
|
|
6735
|
+
"working",
|
|
6736
|
+
"input_required",
|
|
6737
|
+
"completed",
|
|
6738
|
+
"failed",
|
|
6739
|
+
"cancelled"
|
|
6740
|
+
],
|
|
6741
|
+
"description": "Lifecycle state of an MCP task returned by a task-augmented tool call."
|
|
6742
|
+
},
|
|
6632
6743
|
"Runner.Mcp.RunnerMcpTool": {
|
|
6633
6744
|
"type": "object",
|
|
6634
6745
|
"required": [
|
|
@@ -6657,6 +6768,15 @@
|
|
|
6657
6768
|
"type": "object",
|
|
6658
6769
|
"unevaluatedProperties": {}
|
|
6659
6770
|
},
|
|
6771
|
+
"execution": {
|
|
6772
|
+
"$ref": "#/components/schemas/Runner.Mcp.RunnerMcpToolExecution"
|
|
6773
|
+
},
|
|
6774
|
+
"icons": {
|
|
6775
|
+
"type": "array",
|
|
6776
|
+
"items": {
|
|
6777
|
+
"$ref": "#/components/schemas/Runner.Mcp.RunnerMcpIcon"
|
|
6778
|
+
}
|
|
6779
|
+
},
|
|
6660
6780
|
"_meta": {
|
|
6661
6781
|
"type": "object",
|
|
6662
6782
|
"unevaluatedProperties": {}
|
|
@@ -6676,6 +6796,13 @@
|
|
|
6676
6796
|
"arguments": {
|
|
6677
6797
|
"type": "object",
|
|
6678
6798
|
"unevaluatedProperties": {}
|
|
6799
|
+
},
|
|
6800
|
+
"task": {
|
|
6801
|
+
"$ref": "#/components/schemas/Runner.Mcp.RunnerMcpTaskMetadata"
|
|
6802
|
+
},
|
|
6803
|
+
"_meta": {
|
|
6804
|
+
"type": "object",
|
|
6805
|
+
"unevaluatedProperties": {}
|
|
6679
6806
|
}
|
|
6680
6807
|
},
|
|
6681
6808
|
"description": "Tool call accepted by the runner's MCP projection."
|
|
@@ -6700,6 +6827,9 @@
|
|
|
6700
6827
|
"isError": {
|
|
6701
6828
|
"type": "boolean"
|
|
6702
6829
|
},
|
|
6830
|
+
"task": {
|
|
6831
|
+
"$ref": "#/components/schemas/Runner.Mcp.RunnerMcpTask"
|
|
6832
|
+
},
|
|
6703
6833
|
"_meta": {
|
|
6704
6834
|
"type": "object",
|
|
6705
6835
|
"unevaluatedProperties": {}
|
|
@@ -6707,6 +6837,24 @@
|
|
|
6707
6837
|
},
|
|
6708
6838
|
"description": "Stable qyl projection of an MCP tool-call result."
|
|
6709
6839
|
},
|
|
6840
|
+
"Runner.Mcp.RunnerMcpToolExecution": {
|
|
6841
|
+
"type": "object",
|
|
6842
|
+
"properties": {
|
|
6843
|
+
"taskSupport": {
|
|
6844
|
+
"$ref": "#/components/schemas/Runner.Mcp.RunnerMcpToolTaskSupport"
|
|
6845
|
+
}
|
|
6846
|
+
},
|
|
6847
|
+
"description": "Execution metadata advertised for an MCP tool."
|
|
6848
|
+
},
|
|
6849
|
+
"Runner.Mcp.RunnerMcpToolTaskSupport": {
|
|
6850
|
+
"type": "string",
|
|
6851
|
+
"enum": [
|
|
6852
|
+
"forbidden",
|
|
6853
|
+
"optional",
|
|
6854
|
+
"required"
|
|
6855
|
+
],
|
|
6856
|
+
"description": "Task-augmentation support advertised for an MCP tool."
|
|
6857
|
+
},
|
|
6710
6858
|
"Runner.Mcp.RunnerMcpToolsResponse": {
|
|
6711
6859
|
"type": "object",
|
|
6712
6860
|
"required": [
|
|
@@ -261,6 +261,20 @@ export declare const RunnerLogStreamValues: {
|
|
|
261
261
|
readonly stderr: "err";
|
|
262
262
|
};
|
|
263
263
|
export type RunnerLogStream = typeof RunnerLogStreamValues[keyof typeof RunnerLogStreamValues];
|
|
264
|
+
export declare const RunnerMcpToolTaskSupportValues: {
|
|
265
|
+
readonly forbidden: "forbidden";
|
|
266
|
+
readonly optional: "optional";
|
|
267
|
+
readonly required: "required";
|
|
268
|
+
};
|
|
269
|
+
export type RunnerMcpToolTaskSupport = typeof RunnerMcpToolTaskSupportValues[keyof typeof RunnerMcpToolTaskSupportValues];
|
|
270
|
+
export declare const RunnerMcpTaskStatusValues: {
|
|
271
|
+
readonly working: "working";
|
|
272
|
+
readonly inputRequired: "input_required";
|
|
273
|
+
readonly completed: "completed";
|
|
274
|
+
readonly failed: "failed";
|
|
275
|
+
readonly cancelled: "cancelled";
|
|
276
|
+
};
|
|
277
|
+
export type RunnerMcpTaskStatus = typeof RunnerMcpTaskStatusValues[keyof typeof RunnerMcpTaskStatusValues];
|
|
264
278
|
export declare const McpDataModeValues: {
|
|
265
279
|
readonly live: "live";
|
|
266
280
|
readonly demo: "demo";
|
|
@@ -695,6 +709,15 @@ export interface RunnerLogLine {
|
|
|
695
709
|
"stream": RunnerLogStream;
|
|
696
710
|
"line": string;
|
|
697
711
|
}
|
|
712
|
+
export interface RunnerMcpIcon {
|
|
713
|
+
"src": string;
|
|
714
|
+
"mimeType"?: string;
|
|
715
|
+
"sizes"?: string[];
|
|
716
|
+
"theme"?: string;
|
|
717
|
+
}
|
|
718
|
+
export interface RunnerMcpToolExecution {
|
|
719
|
+
"taskSupport"?: RunnerMcpToolTaskSupport;
|
|
720
|
+
}
|
|
698
721
|
export interface RunnerMcpTool {
|
|
699
722
|
"name": string;
|
|
700
723
|
"title"?: string;
|
|
@@ -702,6 +725,8 @@ export interface RunnerMcpTool {
|
|
|
702
725
|
"inputSchema": Record<string, unknown>;
|
|
703
726
|
"outputSchema"?: Record<string, unknown>;
|
|
704
727
|
"annotations"?: Record<string, unknown>;
|
|
728
|
+
"execution"?: RunnerMcpToolExecution;
|
|
729
|
+
"icons"?: RunnerMcpIcon[];
|
|
705
730
|
"_meta"?: Record<string, unknown>;
|
|
706
731
|
}
|
|
707
732
|
export interface RunnerMcpToolsResponse {
|
|
@@ -712,6 +737,11 @@ export interface RunnerMcpToolsResponse {
|
|
|
712
737
|
export interface RunnerMcpToolCallRequest {
|
|
713
738
|
"name": string;
|
|
714
739
|
"arguments"?: Record<string, unknown>;
|
|
740
|
+
"task"?: RunnerMcpTaskMetadata;
|
|
741
|
+
"_meta"?: Record<string, unknown>;
|
|
742
|
+
}
|
|
743
|
+
export interface RunnerMcpTaskMetadata {
|
|
744
|
+
"ttl"?: number;
|
|
715
745
|
}
|
|
716
746
|
export interface RunnerMcpContent {
|
|
717
747
|
"type": string;
|
|
@@ -723,24 +753,42 @@ export interface RunnerMcpContent {
|
|
|
723
753
|
"title"?: string;
|
|
724
754
|
"description"?: string;
|
|
725
755
|
"size"?: number;
|
|
726
|
-
"
|
|
756
|
+
"icons"?: RunnerMcpIcon[];
|
|
757
|
+
"resource"?: RunnerMcpResourceContent;
|
|
758
|
+
"id"?: string;
|
|
759
|
+
"input"?: unknown;
|
|
760
|
+
"toolUseId"?: string;
|
|
761
|
+
"content"?: RunnerMcpContent[];
|
|
762
|
+
"structuredContent"?: Record<string, unknown>;
|
|
763
|
+
"isError"?: boolean;
|
|
727
764
|
"annotations"?: Record<string, unknown>;
|
|
728
765
|
"_meta"?: Record<string, unknown>;
|
|
729
766
|
}
|
|
767
|
+
export interface RunnerMcpResourceContent {
|
|
768
|
+
"uri": string;
|
|
769
|
+
"mimeType"?: string;
|
|
770
|
+
"text"?: string;
|
|
771
|
+
"blob"?: string;
|
|
772
|
+
"_meta"?: Record<string, unknown>;
|
|
773
|
+
}
|
|
774
|
+
export interface RunnerMcpTask {
|
|
775
|
+
"taskId": string;
|
|
776
|
+
"status": RunnerMcpTaskStatus;
|
|
777
|
+
"statusMessage"?: string;
|
|
778
|
+
"createdAt": string;
|
|
779
|
+
"lastUpdatedAt": string;
|
|
780
|
+
"ttl"?: number;
|
|
781
|
+
"pollInterval"?: number;
|
|
782
|
+
}
|
|
730
783
|
export interface RunnerMcpToolCallResponse {
|
|
731
784
|
"content": RunnerMcpContent[];
|
|
732
785
|
"structuredContent"?: Record<string, unknown>;
|
|
733
786
|
"isError": boolean;
|
|
787
|
+
"task"?: RunnerMcpTask;
|
|
734
788
|
"_meta"?: Record<string, unknown>;
|
|
735
789
|
}
|
|
736
790
|
export interface RunnerMcpResourceReadRequest {
|
|
737
791
|
"uri": string;
|
|
738
|
-
}
|
|
739
|
-
export interface RunnerMcpResourceContent {
|
|
740
|
-
"uri": string;
|
|
741
|
-
"mimeType"?: string;
|
|
742
|
-
"text"?: string;
|
|
743
|
-
"blob"?: string;
|
|
744
792
|
"_meta"?: Record<string, unknown>;
|
|
745
793
|
}
|
|
746
794
|
export interface RunnerMcpResourceReadResponse {
|
|
@@ -225,6 +225,18 @@ export const RunnerLogStreamValues = {
|
|
|
225
225
|
"stdout": "out",
|
|
226
226
|
"stderr": "err",
|
|
227
227
|
};
|
|
228
|
+
export const RunnerMcpToolTaskSupportValues = {
|
|
229
|
+
"forbidden": "forbidden",
|
|
230
|
+
"optional": "optional",
|
|
231
|
+
"required": "required",
|
|
232
|
+
};
|
|
233
|
+
export const RunnerMcpTaskStatusValues = {
|
|
234
|
+
"working": "working",
|
|
235
|
+
"inputRequired": "input_required",
|
|
236
|
+
"completed": "completed",
|
|
237
|
+
"failed": "failed",
|
|
238
|
+
"cancelled": "cancelled",
|
|
239
|
+
};
|
|
228
240
|
export const McpDataModeValues = {
|
|
229
241
|
"live": "live",
|
|
230
242
|
"demo": "demo",
|
package/models/runner-mcp.tsp
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
namespace Qyl.Api.Contracts.Runner.Mcp;
|
|
2
2
|
|
|
3
|
+
@doc("Icon metadata carried by MCP tools and resource links.")
|
|
4
|
+
model RunnerMcpIcon {
|
|
5
|
+
src: string;
|
|
6
|
+
mimeType?: string;
|
|
7
|
+
sizes?: string[];
|
|
8
|
+
theme?: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@doc("Task-augmentation support advertised for an MCP tool.")
|
|
12
|
+
enum RunnerMcpToolTaskSupport {
|
|
13
|
+
forbidden: "forbidden",
|
|
14
|
+
optional: "optional",
|
|
15
|
+
required: "required",
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@doc("Execution metadata advertised for an MCP tool.")
|
|
19
|
+
model RunnerMcpToolExecution {
|
|
20
|
+
taskSupport?: RunnerMcpToolTaskSupport;
|
|
21
|
+
}
|
|
22
|
+
|
|
3
23
|
@doc("Stable qyl projection of an MCP tool advertised by a runner resource.")
|
|
4
24
|
model RunnerMcpTool {
|
|
5
25
|
name: string;
|
|
@@ -8,6 +28,8 @@ model RunnerMcpTool {
|
|
|
8
28
|
inputSchema: Record<unknown>;
|
|
9
29
|
outputSchema?: Record<unknown>;
|
|
10
30
|
annotations?: Record<unknown>;
|
|
31
|
+
execution?: RunnerMcpToolExecution;
|
|
32
|
+
icons?: RunnerMcpIcon[];
|
|
11
33
|
@encodedName("application/json", "_meta")
|
|
12
34
|
metadata?: Record<unknown>;
|
|
13
35
|
}
|
|
@@ -24,9 +46,17 @@ model RunnerMcpToolsResponse {
|
|
|
24
46
|
model RunnerMcpToolCallRequest {
|
|
25
47
|
name: string;
|
|
26
48
|
arguments?: Record<unknown>;
|
|
49
|
+
task?: RunnerMcpTaskMetadata;
|
|
50
|
+
@encodedName("application/json", "_meta")
|
|
51
|
+
metadata?: Record<unknown>;
|
|
27
52
|
}
|
|
28
53
|
|
|
29
|
-
@doc("
|
|
54
|
+
@doc("Task-augmentation metadata accepted on an MCP tool call. ttl is encoded as milliseconds.")
|
|
55
|
+
model RunnerMcpTaskMetadata {
|
|
56
|
+
ttl?: float64;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@doc("One MCP content item projected onto a stable qyl JSON shape. Variant-specific required fields follow its type discriminator.")
|
|
30
60
|
model RunnerMcpContent {
|
|
31
61
|
type: string;
|
|
32
62
|
text?: string;
|
|
@@ -38,17 +68,45 @@ model RunnerMcpContent {
|
|
|
38
68
|
description?: string;
|
|
39
69
|
@minValue(0)
|
|
40
70
|
size?: int64;
|
|
41
|
-
|
|
71
|
+
icons?: RunnerMcpIcon[];
|
|
72
|
+
resource?: RunnerMcpResourceContent;
|
|
73
|
+
id?: string;
|
|
74
|
+
input?: unknown;
|
|
75
|
+
toolUseId?: string;
|
|
76
|
+
content?: RunnerMcpContent[];
|
|
77
|
+
structuredContent?: Record<unknown>;
|
|
78
|
+
isError?: boolean;
|
|
42
79
|
annotations?: Record<unknown>;
|
|
43
80
|
@encodedName("application/json", "_meta")
|
|
44
81
|
metadata?: Record<unknown>;
|
|
45
82
|
}
|
|
46
83
|
|
|
84
|
+
@doc("Lifecycle state of an MCP task returned by a task-augmented tool call.")
|
|
85
|
+
enum RunnerMcpTaskStatus {
|
|
86
|
+
working: "working",
|
|
87
|
+
inputRequired: "input_required",
|
|
88
|
+
completed: "completed",
|
|
89
|
+
failed: "failed",
|
|
90
|
+
cancelled: "cancelled",
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
@doc("Task returned by an MCP task-augmented tool call. ttl and pollInterval are encoded as milliseconds.")
|
|
94
|
+
model RunnerMcpTask {
|
|
95
|
+
taskId: string;
|
|
96
|
+
status: RunnerMcpTaskStatus;
|
|
97
|
+
statusMessage?: string;
|
|
98
|
+
createdAt: utcDateTime;
|
|
99
|
+
lastUpdatedAt: utcDateTime;
|
|
100
|
+
ttl?: float64;
|
|
101
|
+
pollInterval?: float64;
|
|
102
|
+
}
|
|
103
|
+
|
|
47
104
|
@doc("Stable qyl projection of an MCP tool-call result.")
|
|
48
105
|
model RunnerMcpToolCallResponse {
|
|
49
106
|
content: RunnerMcpContent[];
|
|
50
107
|
structuredContent?: Record<unknown>;
|
|
51
108
|
isError: boolean;
|
|
109
|
+
task?: RunnerMcpTask;
|
|
52
110
|
@encodedName("application/json", "_meta")
|
|
53
111
|
metadata?: Record<unknown>;
|
|
54
112
|
}
|
|
@@ -56,6 +114,8 @@ model RunnerMcpToolCallResponse {
|
|
|
56
114
|
@doc("Resource URI accepted by the runner's MCP projection.")
|
|
57
115
|
model RunnerMcpResourceReadRequest {
|
|
58
116
|
uri: url;
|
|
117
|
+
@encodedName("application/json", "_meta")
|
|
118
|
+
metadata?: Record<unknown>;
|
|
59
119
|
}
|
|
60
120
|
|
|
61
121
|
@doc("Text or base64 resource content returned by an MCP server. Exactly one of text or blob is present.")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ancplua/qyl-api-schema",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "TypeSpec source of truth for qyl API contracts. Emits OpenAPI, JSON Schema, Qyl.Api.Contracts DTOs, and TypeScript contract types; not an OpenTelemetry package, storage schema, or server implementation.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|