Skip to content

Commit 224dad4

Browse files
authored
[codex][mcp] Add resource uri meta to tool call item. (#17831)
- [x] Add resource uri meta to tool call item so that the app-server client can start prefetching resources immediately without loading mcp server status.
1 parent 77fe33b commit 224dad4

32 files changed

Lines changed: 269 additions & 20 deletions

codex-rs/app-server-protocol/schema/json/ServerNotification.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2891,6 +2891,12 @@
28912891
"id": {
28922892
"type": "string"
28932893
},
2894+
"mcpAppResourceUri": {
2895+
"type": [
2896+
"string",
2897+
"null"
2898+
]
2899+
},
28942900
"result": {
28952901
"anyOf": [
28962902
{

codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.schemas.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13369,6 +13369,12 @@
1336913369
"id": {
1337013370
"type": "string"
1337113371
},
13372+
"mcpAppResourceUri": {
13373+
"type": [
13374+
"string",
13375+
"null"
13376+
]
13377+
},
1337213378
"result": {
1337313379
"anyOf": [
1337413380
{

codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.v2.schemas.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11213,6 +11213,12 @@
1121311213
"id": {
1121411214
"type": "string"
1121511215
},
11216+
"mcpAppResourceUri": {
11217+
"type": [
11218+
"string",
11219+
"null"
11220+
]
11221+
},
1121611222
"result": {
1121711223
"anyOf": [
1121811224
{

codex-rs/app-server-protocol/schema/json/v2/ItemCompletedNotification.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -787,6 +787,12 @@
787787
"id": {
788788
"type": "string"
789789
},
790+
"mcpAppResourceUri": {
791+
"type": [
792+
"string",
793+
"null"
794+
]
795+
},
790796
"result": {
791797
"anyOf": [
792798
{

codex-rs/app-server-protocol/schema/json/v2/ItemStartedNotification.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -787,6 +787,12 @@
787787
"id": {
788788
"type": "string"
789789
},
790+
"mcpAppResourceUri": {
791+
"type": [
792+
"string",
793+
"null"
794+
]
795+
},
790796
"result": {
791797
"anyOf": [
792798
{

codex-rs/app-server-protocol/schema/json/v2/ReviewStartResponse.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -930,6 +930,12 @@
930930
"id": {
931931
"type": "string"
932932
},
933+
"mcpAppResourceUri": {
934+
"type": [
935+
"string",
936+
"null"
937+
]
938+
},
933939
"result": {
934940
"anyOf": [
935941
{

codex-rs/app-server-protocol/schema/json/v2/ThreadForkResponse.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1444,6 +1444,12 @@
14441444
"id": {
14451445
"type": "string"
14461446
},
1447+
"mcpAppResourceUri": {
1448+
"type": [
1449+
"string",
1450+
"null"
1451+
]
1452+
},
14471453
"result": {
14481454
"anyOf": [
14491455
{

codex-rs/app-server-protocol/schema/json/v2/ThreadListResponse.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1206,6 +1206,12 @@
12061206
"id": {
12071207
"type": "string"
12081208
},
1209+
"mcpAppResourceUri": {
1210+
"type": [
1211+
"string",
1212+
"null"
1213+
]
1214+
},
12091215
"result": {
12101216
"anyOf": [
12111217
{

codex-rs/app-server-protocol/schema/json/v2/ThreadMetadataUpdateResponse.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1206,6 +1206,12 @@
12061206
"id": {
12071207
"type": "string"
12081208
},
1209+
"mcpAppResourceUri": {
1210+
"type": [
1211+
"string",
1212+
"null"
1213+
]
1214+
},
12091215
"result": {
12101216
"anyOf": [
12111217
{

codex-rs/app-server-protocol/schema/json/v2/ThreadReadResponse.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1206,6 +1206,12 @@
12061206
"id": {
12071207
"type": "string"
12081208
},
1209+
"mcpAppResourceUri": {
1210+
"type": [
1211+
"string",
1212+
"null"
1213+
]
1214+
},
12091215
"result": {
12101216
"anyOf": [
12111217
{

0 commit comments

Comments
 (0)