@agentmc/api 0.2.4 → 0.2.7
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.
- package/dist/cli.js +0 -252
- package/dist/cli.js.map +1 -1
- package/dist/generated/operations.d.ts +0 -205
- package/dist/generated/operations.js +0 -252
- package/dist/generated/operations.js.map +1 -1
- package/dist/index.d.ts +0 -638
- package/dist/index.js +0 -252
- package/dist/index.js.map +1 -1
- package/docs/operations/README.md +0 -2
- package/docs/operations/index.json +0 -252
- package/docs/operations/listAgents.md +0 -1
- package/package.json +1 -1
- package/spec/openapi.filtered.json +2 -766
- package/docs/operations/agentInstructions.md +0 -128
- package/docs/operations/connectAgent.md +0 -235
- package/examples/http/agentInstructions.ts +0 -19
- package/examples/http/connectAgent.ts +0 -65
|
@@ -12,114 +12,6 @@
|
|
|
12
12
|
}
|
|
13
13
|
],
|
|
14
14
|
"paths": {
|
|
15
|
-
"/agents/connect": {
|
|
16
|
-
"post": {
|
|
17
|
-
"tags": [
|
|
18
|
-
"Agents"
|
|
19
|
-
],
|
|
20
|
-
"summary": "Connect and register one agent using a short-lived connect token.",
|
|
21
|
-
"operationId": "connectAgent",
|
|
22
|
-
"responses": {
|
|
23
|
-
"201": {
|
|
24
|
-
"description": "Agent connected and bearer token issued.",
|
|
25
|
-
"content": {
|
|
26
|
-
"application/json": {
|
|
27
|
-
"schema": {
|
|
28
|
-
"$ref": "#/components/schemas/AgentRegisterResponse"
|
|
29
|
-
},
|
|
30
|
-
"example": {
|
|
31
|
-
"agent_id": 42,
|
|
32
|
-
"agent_token": "mca_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
|
|
33
|
-
"agent_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/agent-instructions",
|
|
34
|
-
"agent_authenticated_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/agent-instructions",
|
|
35
|
-
"agent_instructions_version": "32fe7fd14fca2d57c545f5f78f4a1c094f9ac1b3a1e8f6f9f8323b67a0ef9cc3",
|
|
36
|
-
"openapi_url": "https://agentmc.example.com/api/openapi.json",
|
|
37
|
-
"workspace": {
|
|
38
|
-
"id": 7,
|
|
39
|
-
"name": "AgentMC Demo Workspace"
|
|
40
|
-
},
|
|
41
|
-
"heartbeat_interval_seconds": 300,
|
|
42
|
-
"server_time": "2026-02-22T17:20:53Z",
|
|
43
|
-
"first_sync_required": true
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
"401": {
|
|
49
|
-
"$ref": "#/components/responses/ApiError401"
|
|
50
|
-
},
|
|
51
|
-
"403": {
|
|
52
|
-
"$ref": "#/components/responses/ApiError403"
|
|
53
|
-
},
|
|
54
|
-
"422": {
|
|
55
|
-
"$ref": "#/components/responses/ApiError422"
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
"security": [
|
|
59
|
-
{
|
|
60
|
-
"ConnectTokenAuth": []
|
|
61
|
-
}
|
|
62
|
-
],
|
|
63
|
-
"requestBody": {
|
|
64
|
-
"$ref": "#/components/requestBodies/RegisterAgentApiRequest"
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
"/agents/{agent}/agent-instructions": {
|
|
69
|
-
"get": {
|
|
70
|
-
"tags": [
|
|
71
|
-
"Agents"
|
|
72
|
-
],
|
|
73
|
-
"summary": "Return agent instructions for a connected agent using bearer auth.",
|
|
74
|
-
"operationId": "agentInstructions",
|
|
75
|
-
"parameters": [
|
|
76
|
-
{
|
|
77
|
-
"name": "agent",
|
|
78
|
-
"in": "path",
|
|
79
|
-
"description": "Agent identifier.",
|
|
80
|
-
"required": true,
|
|
81
|
-
"schema": {
|
|
82
|
-
"type": "integer",
|
|
83
|
-
"minimum": 1
|
|
84
|
-
},
|
|
85
|
-
"example": 1
|
|
86
|
-
}
|
|
87
|
-
],
|
|
88
|
-
"responses": {
|
|
89
|
-
"200": {
|
|
90
|
-
"description": "Agent instructions returned.",
|
|
91
|
-
"content": {
|
|
92
|
-
"application/json": {
|
|
93
|
-
"schema": {
|
|
94
|
-
"$ref": "#/components/schemas/AgentInstructionsResponse"
|
|
95
|
-
},
|
|
96
|
-
"example": {
|
|
97
|
-
"agent_instructions": "# Agent Instructions",
|
|
98
|
-
"agent_instructions_version": "32fe7fd14fca2d57c545f5f78f4a1c094f9ac1b3a1e8f6f9f8323b67a0ef9cc3",
|
|
99
|
-
"docs": [],
|
|
100
|
-
"schedules": [],
|
|
101
|
-
"config": {}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
|
-
"401": {
|
|
107
|
-
"$ref": "#/components/responses/ApiError401"
|
|
108
|
-
},
|
|
109
|
-
"403": {
|
|
110
|
-
"$ref": "#/components/responses/ApiError403"
|
|
111
|
-
},
|
|
112
|
-
"404": {
|
|
113
|
-
"$ref": "#/components/responses/ApiError404"
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
"security": [
|
|
117
|
-
{
|
|
118
|
-
"AgentBearerAuth": []
|
|
119
|
-
}
|
|
120
|
-
]
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
15
|
"/agents/{agent}/heartbeat": {
|
|
124
16
|
"post": {
|
|
125
17
|
"tags": [
|
|
@@ -3046,7 +2938,6 @@
|
|
|
3046
2938
|
]
|
|
3047
2939
|
},
|
|
3048
2940
|
"last_seen_at": "2026-02-24T02:11:00Z",
|
|
3049
|
-
"first_sync_at": "2026-02-24T02:01:00Z",
|
|
3050
2941
|
"tasks_count": 3,
|
|
3051
2942
|
"created_at": "2026-02-24T01:56:00Z",
|
|
3052
2943
|
"updated_at": "2026-02-24T02:11:00Z"
|
|
@@ -4226,16 +4117,10 @@
|
|
|
4226
4117
|
"name": "X-Api-Key",
|
|
4227
4118
|
"in": "header"
|
|
4228
4119
|
},
|
|
4229
|
-
"ConnectTokenAuth": {
|
|
4230
|
-
"type": "apiKey",
|
|
4231
|
-
"description": "Short-lived single-use connect token for agent registration only.",
|
|
4232
|
-
"name": "X-Connect-Token",
|
|
4233
|
-
"in": "header"
|
|
4234
|
-
},
|
|
4235
4120
|
"AgentBearerAuth": {
|
|
4236
4121
|
"type": "http",
|
|
4237
|
-
"description": "Agent-scoped
|
|
4238
|
-
"bearerFormat": "
|
|
4122
|
+
"description": "Agent-scoped API key issued from Agent setup and accepted on agent-compatible API operations.",
|
|
4123
|
+
"bearerFormat": "agent_api_key",
|
|
4239
4124
|
"scheme": "bearer"
|
|
4240
4125
|
},
|
|
4241
4126
|
"BearerAuth": {
|
|
@@ -4773,7 +4658,6 @@
|
|
|
4773
4658
|
"capabilities",
|
|
4774
4659
|
"meta",
|
|
4775
4660
|
"last_seen_at",
|
|
4776
|
-
"first_sync_at",
|
|
4777
4661
|
"tasks_count",
|
|
4778
4662
|
"created_at",
|
|
4779
4663
|
"updated_at"
|
|
@@ -4806,7 +4690,6 @@
|
|
|
4806
4690
|
]
|
|
4807
4691
|
},
|
|
4808
4692
|
"last_seen_at": "2026-02-24T02:11:00Z",
|
|
4809
|
-
"first_sync_at": "2026-02-24T02:01:00Z",
|
|
4810
4693
|
"tasks_count": 3,
|
|
4811
4694
|
"created_at": "2026-02-24T01:56:00Z",
|
|
4812
4695
|
"updated_at": "2026-02-24T02:11:00Z"
|
|
@@ -4910,13 +4793,6 @@
|
|
|
4910
4793
|
"description": "ISO-8601 timestamp for most recent heartbeat.",
|
|
4911
4794
|
"example": "2026-02-22T17:21:00Z"
|
|
4912
4795
|
},
|
|
4913
|
-
"first_sync_at": {
|
|
4914
|
-
"type": "string",
|
|
4915
|
-
"format": "date-time",
|
|
4916
|
-
"nullable": true,
|
|
4917
|
-
"description": "ISO-8601 timestamp when this agent first completed initial sync.",
|
|
4918
|
-
"example": "2026-02-22T17:21:00Z"
|
|
4919
|
-
},
|
|
4920
4796
|
"tasks_count": {
|
|
4921
4797
|
"type": "integer",
|
|
4922
4798
|
"minimum": 0,
|
|
@@ -4983,7 +4859,6 @@
|
|
|
4983
4859
|
]
|
|
4984
4860
|
},
|
|
4985
4861
|
"last_seen_at": "2026-02-24T02:11:00Z",
|
|
4986
|
-
"first_sync_at": "2026-02-24T02:01:00Z",
|
|
4987
4862
|
"tasks_count": 3,
|
|
4988
4863
|
"created_at": "2026-02-24T01:56:00Z",
|
|
4989
4864
|
"updated_at": "2026-02-24T02:11:00Z"
|
|
@@ -5051,7 +4926,6 @@
|
|
|
5051
4926
|
]
|
|
5052
4927
|
},
|
|
5053
4928
|
"last_seen_at": "2026-02-24T02:11:00Z",
|
|
5054
|
-
"first_sync_at": "2026-02-24T02:01:00Z",
|
|
5055
4929
|
"tasks_count": 3,
|
|
5056
4930
|
"created_at": "2026-02-24T01:56:00Z",
|
|
5057
4931
|
"updated_at": "2026-02-24T02:11:00Z"
|
|
@@ -5144,161 +5018,6 @@
|
|
|
5144
5018
|
}
|
|
5145
5019
|
}
|
|
5146
5020
|
},
|
|
5147
|
-
"AgentRegisterResponse": {
|
|
5148
|
-
"type": "object",
|
|
5149
|
-
"required": [
|
|
5150
|
-
"agent_id",
|
|
5151
|
-
"agent_token",
|
|
5152
|
-
"agent_instructions_endpoint",
|
|
5153
|
-
"agent_authenticated_instructions_endpoint",
|
|
5154
|
-
"agent_instructions_version",
|
|
5155
|
-
"openapi_url",
|
|
5156
|
-
"workspace",
|
|
5157
|
-
"heartbeat_interval_seconds",
|
|
5158
|
-
"server_time",
|
|
5159
|
-
"first_sync_required"
|
|
5160
|
-
],
|
|
5161
|
-
"properties": {
|
|
5162
|
-
"agent_id": {
|
|
5163
|
-
"type": "integer",
|
|
5164
|
-
"minimum": 1,
|
|
5165
|
-
"description": "Identifier for agent.",
|
|
5166
|
-
"example": 42
|
|
5167
|
-
},
|
|
5168
|
-
"agent_token": {
|
|
5169
|
-
"type": "string",
|
|
5170
|
-
"description": "Bearer token to use in `Authorization: Bearer <token>` headers.",
|
|
5171
|
-
"example": "mca_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
|
|
5172
|
-
},
|
|
5173
|
-
"agent_instructions_endpoint": {
|
|
5174
|
-
"type": "string",
|
|
5175
|
-
"format": "uri",
|
|
5176
|
-
"description": "Endpoint for agent instructions updates.",
|
|
5177
|
-
"example": "https://agentmc.example.com/resource"
|
|
5178
|
-
},
|
|
5179
|
-
"agent_authenticated_instructions_endpoint": {
|
|
5180
|
-
"type": "string",
|
|
5181
|
-
"format": "uri",
|
|
5182
|
-
"description": "Authenticated endpoint for agent instructions updates.",
|
|
5183
|
-
"example": "https://agentmc.example.com/resource"
|
|
5184
|
-
},
|
|
5185
|
-
"agent_instructions_version": {
|
|
5186
|
-
"type": "string",
|
|
5187
|
-
"description": "Agent instructions version.",
|
|
5188
|
-
"example": "example"
|
|
5189
|
-
},
|
|
5190
|
-
"openapi_url": {
|
|
5191
|
-
"type": "string",
|
|
5192
|
-
"description": "Canonical OpenAPI specification URL.",
|
|
5193
|
-
"example": "https://agentmc.example.com/api/openapi.json"
|
|
5194
|
-
},
|
|
5195
|
-
"workspace": {
|
|
5196
|
-
"$ref": "#/components/schemas/TeamSummary",
|
|
5197
|
-
"description": "Workspace.",
|
|
5198
|
-
"example": {
|
|
5199
|
-
"id": 42,
|
|
5200
|
-
"name": "Example Name"
|
|
5201
|
-
}
|
|
5202
|
-
},
|
|
5203
|
-
"heartbeat_interval_seconds": {
|
|
5204
|
-
"type": "integer",
|
|
5205
|
-
"minimum": 1,
|
|
5206
|
-
"description": "Heartbeat interval seconds.",
|
|
5207
|
-
"example": 1
|
|
5208
|
-
},
|
|
5209
|
-
"server_time": {
|
|
5210
|
-
"type": "string",
|
|
5211
|
-
"format": "date-time",
|
|
5212
|
-
"description": "Current server timestamp.",
|
|
5213
|
-
"example": "2026-02-22T17:21:00Z"
|
|
5214
|
-
},
|
|
5215
|
-
"first_sync_required": {
|
|
5216
|
-
"type": "boolean",
|
|
5217
|
-
"description": "Boolean flag for first sync required.",
|
|
5218
|
-
"example": true
|
|
5219
|
-
}
|
|
5220
|
-
},
|
|
5221
|
-
"description": "Connect/registration response with agent credentials, authenticated agent instructions endpoint, and OpenAPI URL.",
|
|
5222
|
-
"example": {
|
|
5223
|
-
"agent_id": 42,
|
|
5224
|
-
"agent_token": "mca_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
|
|
5225
|
-
"agent_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/agent-instructions",
|
|
5226
|
-
"agent_authenticated_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/agent-instructions",
|
|
5227
|
-
"agent_instructions_version": "32fe7fd14fca2d57c545f5f78f4a1c094f9ac1b3a1e8f6f9f8323b67a0ef9cc3",
|
|
5228
|
-
"openapi_url": "https://agentmc.example.com/api/openapi.json",
|
|
5229
|
-
"workspace": {
|
|
5230
|
-
"id": 7,
|
|
5231
|
-
"name": "AgentMC Demo Workspace"
|
|
5232
|
-
},
|
|
5233
|
-
"heartbeat_interval_seconds": 300,
|
|
5234
|
-
"server_time": "2026-02-22T17:20:53Z",
|
|
5235
|
-
"first_sync_required": true
|
|
5236
|
-
}
|
|
5237
|
-
},
|
|
5238
|
-
"AgentInstructionsResponse": {
|
|
5239
|
-
"type": "object",
|
|
5240
|
-
"required": [
|
|
5241
|
-
"agent_instructions",
|
|
5242
|
-
"agent_instructions_version",
|
|
5243
|
-
"docs",
|
|
5244
|
-
"schedules",
|
|
5245
|
-
"config"
|
|
5246
|
-
],
|
|
5247
|
-
"properties": {
|
|
5248
|
-
"agent_instructions": {
|
|
5249
|
-
"type": "string",
|
|
5250
|
-
"description": "Agent instructions.",
|
|
5251
|
-
"example": "example"
|
|
5252
|
-
},
|
|
5253
|
-
"agent_instructions_version": {
|
|
5254
|
-
"type": "string",
|
|
5255
|
-
"description": "Agent instructions version.",
|
|
5256
|
-
"example": "example"
|
|
5257
|
-
},
|
|
5258
|
-
"docs": {
|
|
5259
|
-
"type": "array",
|
|
5260
|
-
"items": {
|
|
5261
|
-
"type": "object",
|
|
5262
|
-
"additionalProperties": true
|
|
5263
|
-
},
|
|
5264
|
-
"description": "Docs.",
|
|
5265
|
-
"example": [
|
|
5266
|
-
{
|
|
5267
|
-
"key": "value"
|
|
5268
|
-
}
|
|
5269
|
-
]
|
|
5270
|
-
},
|
|
5271
|
-
"schedules": {
|
|
5272
|
-
"type": "array",
|
|
5273
|
-
"items": {
|
|
5274
|
-
"type": "object",
|
|
5275
|
-
"additionalProperties": true
|
|
5276
|
-
},
|
|
5277
|
-
"description": "Schedules.",
|
|
5278
|
-
"example": [
|
|
5279
|
-
{
|
|
5280
|
-
"key": "value"
|
|
5281
|
-
}
|
|
5282
|
-
]
|
|
5283
|
-
},
|
|
5284
|
-
"config": {
|
|
5285
|
-
"type": "object",
|
|
5286
|
-
"additionalProperties": true,
|
|
5287
|
-
"description": "Config.",
|
|
5288
|
-
"example": {
|
|
5289
|
-
"key": "value"
|
|
5290
|
-
}
|
|
5291
|
-
}
|
|
5292
|
-
},
|
|
5293
|
-
"description": "Connected agent instructions payload returned after successful bearer authentication.",
|
|
5294
|
-
"example": {
|
|
5295
|
-
"agent_instructions": "# Agent Instructions",
|
|
5296
|
-
"agent_instructions_version": "32fe7fd14fca2d57c545f5f78f4a1c094f9ac1b3a1e8f6f9f8323b67a0ef9cc3",
|
|
5297
|
-
"docs": [],
|
|
5298
|
-
"schedules": [],
|
|
5299
|
-
"config": {}
|
|
5300
|
-
}
|
|
5301
|
-
},
|
|
5302
5021
|
"AgentHeartbeatResponse": {
|
|
5303
5022
|
"type": "object",
|
|
5304
5023
|
"required": [
|
|
@@ -9826,386 +9545,6 @@
|
|
|
9826
9545
|
}
|
|
9827
9546
|
}
|
|
9828
9547
|
},
|
|
9829
|
-
"RegisterAgentApiRequest": {
|
|
9830
|
-
"type": "object",
|
|
9831
|
-
"properties": {
|
|
9832
|
-
"host": {
|
|
9833
|
-
"type": "string",
|
|
9834
|
-
"maxLength": 255,
|
|
9835
|
-
"description": "Runtime host identifier (hostname or machine name).",
|
|
9836
|
-
"example": "ip-10-0-3-42"
|
|
9837
|
-
},
|
|
9838
|
-
"runtime_version": {
|
|
9839
|
-
"type": "string",
|
|
9840
|
-
"maxLength": 255,
|
|
9841
|
-
"description": "Required runtime/client version string for diagnostics.",
|
|
9842
|
-
"example": "2026.02.1"
|
|
9843
|
-
},
|
|
9844
|
-
"capabilities": {
|
|
9845
|
-
"nullable": true,
|
|
9846
|
-
"type": "array",
|
|
9847
|
-
"items": {
|
|
9848
|
-
"type": "string",
|
|
9849
|
-
"maxLength": 120
|
|
9850
|
-
},
|
|
9851
|
-
"description": "Required (nullable) capability tags supported by this runtime.",
|
|
9852
|
-
"example": [
|
|
9853
|
-
"tasks",
|
|
9854
|
-
"calendar",
|
|
9855
|
-
"realtime"
|
|
9856
|
-
]
|
|
9857
|
-
},
|
|
9858
|
-
"agents_md": {
|
|
9859
|
-
"type": "string",
|
|
9860
|
-
"minLength": 1,
|
|
9861
|
-
"maxLength": 262144,
|
|
9862
|
-
"description": "Required current local AGENTS.md content captured by the runtime before first sync.",
|
|
9863
|
-
"example": "# Existing AGENTS.md\n\n## Runtime\n- Keep heartbeat alive.\n"
|
|
9864
|
-
},
|
|
9865
|
-
"models": {
|
|
9866
|
-
"nullable": true,
|
|
9867
|
-
"oneOf": [
|
|
9868
|
-
{
|
|
9869
|
-
"type": "array",
|
|
9870
|
-
"items": {
|
|
9871
|
-
"oneOf": [
|
|
9872
|
-
{
|
|
9873
|
-
"type": "string",
|
|
9874
|
-
"description": "Full model ID in provider/model format.",
|
|
9875
|
-
"example": "openai/gpt-5-codex"
|
|
9876
|
-
},
|
|
9877
|
-
{
|
|
9878
|
-
"type": "object",
|
|
9879
|
-
"required": [
|
|
9880
|
-
"model_id"
|
|
9881
|
-
],
|
|
9882
|
-
"properties": {
|
|
9883
|
-
"model_id": {
|
|
9884
|
-
"type": "string",
|
|
9885
|
-
"description": "Full model ID in provider/model format.",
|
|
9886
|
-
"example": "openai/gpt-5-codex"
|
|
9887
|
-
},
|
|
9888
|
-
"provider": {
|
|
9889
|
-
"type": "string",
|
|
9890
|
-
"description": "Model provider slug.",
|
|
9891
|
-
"example": "openai"
|
|
9892
|
-
},
|
|
9893
|
-
"name": {
|
|
9894
|
-
"type": "string",
|
|
9895
|
-
"description": "Optional display name.",
|
|
9896
|
-
"example": "GPT-5 Codex"
|
|
9897
|
-
}
|
|
9898
|
-
}
|
|
9899
|
-
}
|
|
9900
|
-
]
|
|
9901
|
-
}
|
|
9902
|
-
},
|
|
9903
|
-
{
|
|
9904
|
-
"type": "object",
|
|
9905
|
-
"additionalProperties": true,
|
|
9906
|
-
"description": "Structured model snapshot (for example status/list output). AgentMC extracts model IDs recursively."
|
|
9907
|
-
}
|
|
9908
|
-
],
|
|
9909
|
-
"description": "Optional runtime LLM inventory. Send an array of model refs/objects or a structured runtime snapshot object.",
|
|
9910
|
-
"example": [
|
|
9911
|
-
{
|
|
9912
|
-
"model_id": "openai/gpt-5-codex",
|
|
9913
|
-
"provider": "openai"
|
|
9914
|
-
},
|
|
9915
|
-
{
|
|
9916
|
-
"model_id": "anthropic/claude-sonnet-4-20250514",
|
|
9917
|
-
"provider": "anthropic"
|
|
9918
|
-
}
|
|
9919
|
-
]
|
|
9920
|
-
},
|
|
9921
|
-
"identity": {
|
|
9922
|
-
"nullable": true,
|
|
9923
|
-
"description": "Optional full agent identity payload persisted in agent metadata.",
|
|
9924
|
-
"example": {
|
|
9925
|
-
"name": "Jarvis",
|
|
9926
|
-
"creature": "robot",
|
|
9927
|
-
"vibe": "calm",
|
|
9928
|
-
"emoji": "🤖"
|
|
9929
|
-
}
|
|
9930
|
-
},
|
|
9931
|
-
"metadata": {
|
|
9932
|
-
"type": "object",
|
|
9933
|
-
"additionalProperties": true,
|
|
9934
|
-
"required": [
|
|
9935
|
-
"hostname",
|
|
9936
|
-
"ip",
|
|
9937
|
-
"network",
|
|
9938
|
-
"os",
|
|
9939
|
-
"os_version",
|
|
9940
|
-
"arch",
|
|
9941
|
-
"cpu",
|
|
9942
|
-
"cpu_cores",
|
|
9943
|
-
"ram_gb",
|
|
9944
|
-
"disk",
|
|
9945
|
-
"uptime_seconds",
|
|
9946
|
-
"runtime"
|
|
9947
|
-
],
|
|
9948
|
-
"properties": {
|
|
9949
|
-
"hostname": {
|
|
9950
|
-
"type": "string",
|
|
9951
|
-
"maxLength": 255,
|
|
9952
|
-
"description": "Hostname.",
|
|
9953
|
-
"example": "Example Name"
|
|
9954
|
-
},
|
|
9955
|
-
"ip": {
|
|
9956
|
-
"type": "string",
|
|
9957
|
-
"format": "ipv4",
|
|
9958
|
-
"description": "Ip.",
|
|
9959
|
-
"example": "example"
|
|
9960
|
-
},
|
|
9961
|
-
"network": {
|
|
9962
|
-
"type": "object",
|
|
9963
|
-
"required": [
|
|
9964
|
-
"private_ip",
|
|
9965
|
-
"public_ip"
|
|
9966
|
-
],
|
|
9967
|
-
"properties": {
|
|
9968
|
-
"private_ip": {
|
|
9969
|
-
"type": "string",
|
|
9970
|
-
"format": "ipv4",
|
|
9971
|
-
"description": "Private ip.",
|
|
9972
|
-
"example": "example"
|
|
9973
|
-
},
|
|
9974
|
-
"public_ip": {
|
|
9975
|
-
"type": "string",
|
|
9976
|
-
"format": "ipv4",
|
|
9977
|
-
"description": "Public ip.",
|
|
9978
|
-
"example": "example"
|
|
9979
|
-
}
|
|
9980
|
-
},
|
|
9981
|
-
"description": "Network.",
|
|
9982
|
-
"example": {
|
|
9983
|
-
"private_ip": "example",
|
|
9984
|
-
"public_ip": "example"
|
|
9985
|
-
}
|
|
9986
|
-
},
|
|
9987
|
-
"os": {
|
|
9988
|
-
"type": "string",
|
|
9989
|
-
"maxLength": 120,
|
|
9990
|
-
"description": "Os.",
|
|
9991
|
-
"example": "example"
|
|
9992
|
-
},
|
|
9993
|
-
"os_version": {
|
|
9994
|
-
"type": "string",
|
|
9995
|
-
"maxLength": 120,
|
|
9996
|
-
"description": "Os version.",
|
|
9997
|
-
"example": "example"
|
|
9998
|
-
},
|
|
9999
|
-
"arch": {
|
|
10000
|
-
"type": "string",
|
|
10001
|
-
"maxLength": 120,
|
|
10002
|
-
"description": "Arch.",
|
|
10003
|
-
"example": "example"
|
|
10004
|
-
},
|
|
10005
|
-
"cpu": {
|
|
10006
|
-
"oneOf": [
|
|
10007
|
-
{
|
|
10008
|
-
"type": "string"
|
|
10009
|
-
},
|
|
10010
|
-
{
|
|
10011
|
-
"type": "object",
|
|
10012
|
-
"additionalProperties": true
|
|
10013
|
-
}
|
|
10014
|
-
],
|
|
10015
|
-
"description": "Cpu.",
|
|
10016
|
-
"example": "example"
|
|
10017
|
-
},
|
|
10018
|
-
"cpu_cores": {
|
|
10019
|
-
"type": "integer",
|
|
10020
|
-
"minimum": 1,
|
|
10021
|
-
"maximum": 4096,
|
|
10022
|
-
"description": "Cpu cores.",
|
|
10023
|
-
"example": 8
|
|
10024
|
-
},
|
|
10025
|
-
"ram_gb": {
|
|
10026
|
-
"type": "number",
|
|
10027
|
-
"minimum": 0,
|
|
10028
|
-
"description": "Ram gb.",
|
|
10029
|
-
"example": 32
|
|
10030
|
-
},
|
|
10031
|
-
"disk": {
|
|
10032
|
-
"type": "object",
|
|
10033
|
-
"required": [
|
|
10034
|
-
"total_bytes",
|
|
10035
|
-
"free_bytes"
|
|
10036
|
-
],
|
|
10037
|
-
"properties": {
|
|
10038
|
-
"total_bytes": {
|
|
10039
|
-
"type": "integer",
|
|
10040
|
-
"minimum": 0,
|
|
10041
|
-
"description": "Total bytes.",
|
|
10042
|
-
"example": 0
|
|
10043
|
-
},
|
|
10044
|
-
"free_bytes": {
|
|
10045
|
-
"type": "integer",
|
|
10046
|
-
"minimum": 0,
|
|
10047
|
-
"description": "Free bytes.",
|
|
10048
|
-
"example": 0
|
|
10049
|
-
}
|
|
10050
|
-
},
|
|
10051
|
-
"description": "Disk.",
|
|
10052
|
-
"example": {
|
|
10053
|
-
"total_bytes": 0,
|
|
10054
|
-
"free_bytes": 0
|
|
10055
|
-
}
|
|
10056
|
-
},
|
|
10057
|
-
"uptime_seconds": {
|
|
10058
|
-
"type": "integer",
|
|
10059
|
-
"minimum": 0,
|
|
10060
|
-
"description": "Uptime seconds.",
|
|
10061
|
-
"example": 86400
|
|
10062
|
-
},
|
|
10063
|
-
"runtime": {
|
|
10064
|
-
"type": "object",
|
|
10065
|
-
"required": [
|
|
10066
|
-
"name",
|
|
10067
|
-
"version"
|
|
10068
|
-
],
|
|
10069
|
-
"properties": {
|
|
10070
|
-
"name": {
|
|
10071
|
-
"type": "string",
|
|
10072
|
-
"maxLength": 120,
|
|
10073
|
-
"description": "Human-readable name.",
|
|
10074
|
-
"example": "Example Name"
|
|
10075
|
-
},
|
|
10076
|
-
"version": {
|
|
10077
|
-
"type": "string",
|
|
10078
|
-
"maxLength": 120,
|
|
10079
|
-
"description": "Version.",
|
|
10080
|
-
"example": "example"
|
|
10081
|
-
}
|
|
10082
|
-
},
|
|
10083
|
-
"description": "Runtime.",
|
|
10084
|
-
"example": {
|
|
10085
|
-
"name": "Example Name",
|
|
10086
|
-
"version": "example"
|
|
10087
|
-
}
|
|
10088
|
-
},
|
|
10089
|
-
"identity": {
|
|
10090
|
-
"description": "Optional identity payload persisted as host metadata.",
|
|
10091
|
-
"oneOf": [
|
|
10092
|
-
{
|
|
10093
|
-
"type": "object",
|
|
10094
|
-
"additionalProperties": true,
|
|
10095
|
-
"properties": {
|
|
10096
|
-
"name": {
|
|
10097
|
-
"type": "string",
|
|
10098
|
-
"maxLength": 255,
|
|
10099
|
-
"example": "Jarvis",
|
|
10100
|
-
"description": "Human-readable name."
|
|
10101
|
-
}
|
|
10102
|
-
}
|
|
10103
|
-
},
|
|
10104
|
-
{
|
|
10105
|
-
"type": "string",
|
|
10106
|
-
"description": "Raw IDENTITY.md content. AgentMC will parse a `Name:` line when present.",
|
|
10107
|
-
"example": "Name: Jarvis"
|
|
10108
|
-
}
|
|
10109
|
-
],
|
|
10110
|
-
"example": {
|
|
10111
|
-
"name": "Jarvis"
|
|
10112
|
-
}
|
|
10113
|
-
}
|
|
10114
|
-
},
|
|
10115
|
-
"description": "Required host telemetry snapshot for registration. Mirrors heartbeat host metadata and is saved as host metadata.",
|
|
10116
|
-
"example": {
|
|
10117
|
-
"hostname": "worker-01",
|
|
10118
|
-
"ip": "10.0.2.15",
|
|
10119
|
-
"network": {
|
|
10120
|
-
"private_ip": "10.0.2.15",
|
|
10121
|
-
"public_ip": "34.201.22.9"
|
|
10122
|
-
},
|
|
10123
|
-
"os": "Ubuntu",
|
|
10124
|
-
"os_version": "22.04",
|
|
10125
|
-
"arch": "x86_64",
|
|
10126
|
-
"cpu": "Intel Xeon",
|
|
10127
|
-
"cpu_cores": 8,
|
|
10128
|
-
"ram_gb": 32,
|
|
10129
|
-
"disk": {
|
|
10130
|
-
"total_bytes": 512110190592,
|
|
10131
|
-
"free_bytes": 321102110720
|
|
10132
|
-
},
|
|
10133
|
-
"uptime_seconds": 86400,
|
|
10134
|
-
"runtime": {
|
|
10135
|
-
"name": "codex",
|
|
10136
|
-
"version": "2026.02.1"
|
|
10137
|
-
},
|
|
10138
|
-
"identity": {
|
|
10139
|
-
"name": "Jarvis",
|
|
10140
|
-
"creature": "robot",
|
|
10141
|
-
"vibe": "calm"
|
|
10142
|
-
}
|
|
10143
|
-
}
|
|
10144
|
-
}
|
|
10145
|
-
},
|
|
10146
|
-
"required": [
|
|
10147
|
-
"host",
|
|
10148
|
-
"runtime_version",
|
|
10149
|
-
"capabilities",
|
|
10150
|
-
"agents_md",
|
|
10151
|
-
"metadata"
|
|
10152
|
-
],
|
|
10153
|
-
"description": "One-time agent registration payload. Resolve this schema from OpenAPI at runtime instead of hardcoding fields.",
|
|
10154
|
-
"example": {
|
|
10155
|
-
"host": "ip-10-0-3-42",
|
|
10156
|
-
"runtime_version": "2026.02.1",
|
|
10157
|
-
"capabilities": [
|
|
10158
|
-
"tasks",
|
|
10159
|
-
"calendar",
|
|
10160
|
-
"realtime"
|
|
10161
|
-
],
|
|
10162
|
-
"agents_md": "# Existing AGENTS.md\n\n## Runtime\n- Keep heartbeat alive.\n",
|
|
10163
|
-
"models": [
|
|
10164
|
-
{
|
|
10165
|
-
"model_id": "openai/gpt-5-codex",
|
|
10166
|
-
"provider": "openai"
|
|
10167
|
-
},
|
|
10168
|
-
{
|
|
10169
|
-
"model_id": "anthropic/claude-sonnet-4-20250514",
|
|
10170
|
-
"provider": "anthropic"
|
|
10171
|
-
}
|
|
10172
|
-
],
|
|
10173
|
-
"identity": {
|
|
10174
|
-
"name": "Jarvis",
|
|
10175
|
-
"creature": "robot",
|
|
10176
|
-
"vibe": "calm",
|
|
10177
|
-
"emoji": "🤖"
|
|
10178
|
-
},
|
|
10179
|
-
"metadata": {
|
|
10180
|
-
"hostname": "worker-01",
|
|
10181
|
-
"ip": "10.0.2.15",
|
|
10182
|
-
"network": {
|
|
10183
|
-
"private_ip": "10.0.2.15",
|
|
10184
|
-
"public_ip": "34.201.22.9"
|
|
10185
|
-
},
|
|
10186
|
-
"os": "Ubuntu",
|
|
10187
|
-
"os_version": "22.04",
|
|
10188
|
-
"arch": "x86_64",
|
|
10189
|
-
"cpu": "Intel Xeon",
|
|
10190
|
-
"cpu_cores": 8,
|
|
10191
|
-
"ram_gb": 32,
|
|
10192
|
-
"disk": {
|
|
10193
|
-
"total_bytes": 512110190592,
|
|
10194
|
-
"free_bytes": 321102110720
|
|
10195
|
-
},
|
|
10196
|
-
"uptime_seconds": 86400,
|
|
10197
|
-
"runtime": {
|
|
10198
|
-
"name": "codex",
|
|
10199
|
-
"version": "2026.02.1"
|
|
10200
|
-
},
|
|
10201
|
-
"identity": {
|
|
10202
|
-
"name": "Jarvis",
|
|
10203
|
-
"creature": "robot",
|
|
10204
|
-
"vibe": "calm"
|
|
10205
|
-
}
|
|
10206
|
-
}
|
|
10207
|
-
}
|
|
10208
|
-
},
|
|
10209
9548
|
"StoreAgentHeartbeatApiRequest": {
|
|
10210
9549
|
"type": "object",
|
|
10211
9550
|
"properties": {
|
|
@@ -11826,67 +11165,6 @@
|
|
|
11826
11165
|
}
|
|
11827
11166
|
}
|
|
11828
11167
|
},
|
|
11829
|
-
"RegisterAgentApiRequest": {
|
|
11830
|
-
"required": true,
|
|
11831
|
-
"content": {
|
|
11832
|
-
"application/json": {
|
|
11833
|
-
"schema": {
|
|
11834
|
-
"$ref": "#/components/schemas/RegisterAgentApiRequest"
|
|
11835
|
-
},
|
|
11836
|
-
"example": {
|
|
11837
|
-
"host": "ip-10-0-3-42",
|
|
11838
|
-
"runtime_version": "2026.02.1",
|
|
11839
|
-
"capabilities": [
|
|
11840
|
-
"tasks",
|
|
11841
|
-
"calendar",
|
|
11842
|
-
"realtime"
|
|
11843
|
-
],
|
|
11844
|
-
"agents_md": "# Existing AGENTS.md\n\n## Runtime\n- Keep heartbeat alive.\n",
|
|
11845
|
-
"models": [
|
|
11846
|
-
{
|
|
11847
|
-
"model_id": "openai/gpt-5-codex",
|
|
11848
|
-
"provider": "openai"
|
|
11849
|
-
},
|
|
11850
|
-
{
|
|
11851
|
-
"model_id": "anthropic/claude-sonnet-4-20250514",
|
|
11852
|
-
"provider": "anthropic"
|
|
11853
|
-
}
|
|
11854
|
-
],
|
|
11855
|
-
"identity": {
|
|
11856
|
-
"name": "Jarvis",
|
|
11857
|
-
"creature": "robot",
|
|
11858
|
-
"vibe": "calm"
|
|
11859
|
-
},
|
|
11860
|
-
"metadata": {
|
|
11861
|
-
"hostname": "worker-01",
|
|
11862
|
-
"ip": "10.0.2.15",
|
|
11863
|
-
"network": {
|
|
11864
|
-
"private_ip": "10.0.2.15",
|
|
11865
|
-
"public_ip": "34.201.22.9"
|
|
11866
|
-
},
|
|
11867
|
-
"os": "Ubuntu",
|
|
11868
|
-
"os_version": "22.04",
|
|
11869
|
-
"arch": "x86_64",
|
|
11870
|
-
"cpu": "Intel Xeon",
|
|
11871
|
-
"cpu_cores": 8,
|
|
11872
|
-
"ram_gb": 32,
|
|
11873
|
-
"disk": {
|
|
11874
|
-
"total_bytes": 512110190592,
|
|
11875
|
-
"free_bytes": 321102110720
|
|
11876
|
-
},
|
|
11877
|
-
"uptime_seconds": 86400,
|
|
11878
|
-
"runtime": {
|
|
11879
|
-
"name": "codex",
|
|
11880
|
-
"version": "2026.02.1"
|
|
11881
|
-
},
|
|
11882
|
-
"identity": {
|
|
11883
|
-
"name": "Jarvis"
|
|
11884
|
-
}
|
|
11885
|
-
}
|
|
11886
|
-
}
|
|
11887
|
-
}
|
|
11888
|
-
}
|
|
11889
|
-
},
|
|
11890
11168
|
"StoreAgentHeartbeatApiRequest": {
|
|
11891
11169
|
"required": true,
|
|
11892
11170
|
"content": {
|
|
@@ -12258,48 +11536,6 @@
|
|
|
12258
11536
|
}
|
|
12259
11537
|
},
|
|
12260
11538
|
"responses": {
|
|
12261
|
-
"AgentRegisterResponse": {
|
|
12262
|
-
"description": "Agent registered and bearer token issued.",
|
|
12263
|
-
"content": {
|
|
12264
|
-
"application/json": {
|
|
12265
|
-
"schema": {
|
|
12266
|
-
"$ref": "#/components/schemas/AgentRegisterResponse"
|
|
12267
|
-
},
|
|
12268
|
-
"example": {
|
|
12269
|
-
"agent_id": 42,
|
|
12270
|
-
"agent_token": "mca_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
|
|
12271
|
-
"agent_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/agent-instructions",
|
|
12272
|
-
"agent_authenticated_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/agent-instructions",
|
|
12273
|
-
"agent_instructions_version": "32fe7fd14fca2d57c545f5f78f4a1c094f9ac1b3a1e8f6f9f8323b67a0ef9cc3",
|
|
12274
|
-
"openapi_url": "https://agentmc.example.com/api/openapi.json",
|
|
12275
|
-
"workspace": {
|
|
12276
|
-
"id": 7,
|
|
12277
|
-
"name": "AgentMC Demo Workspace"
|
|
12278
|
-
},
|
|
12279
|
-
"heartbeat_interval_seconds": 300,
|
|
12280
|
-
"server_time": "2026-02-22T17:20:53Z",
|
|
12281
|
-
"first_sync_required": true
|
|
12282
|
-
}
|
|
12283
|
-
}
|
|
12284
|
-
}
|
|
12285
|
-
},
|
|
12286
|
-
"AgentInstructionsResponse": {
|
|
12287
|
-
"description": "Agent instructions returned.",
|
|
12288
|
-
"content": {
|
|
12289
|
-
"application/json": {
|
|
12290
|
-
"schema": {
|
|
12291
|
-
"$ref": "#/components/schemas/AgentInstructionsResponse"
|
|
12292
|
-
},
|
|
12293
|
-
"example": {
|
|
12294
|
-
"agent_instructions": "# Agent Instructions",
|
|
12295
|
-
"agent_instructions_version": "32fe7fd14fca2d57c545f5f78f4a1c094f9ac1b3a1e8f6f9f8323b67a0ef9cc3",
|
|
12296
|
-
"docs": [],
|
|
12297
|
-
"schedules": [],
|
|
12298
|
-
"config": {}
|
|
12299
|
-
}
|
|
12300
|
-
}
|
|
12301
|
-
}
|
|
12302
|
-
},
|
|
12303
11539
|
"AgentHeartbeatResponse": {
|
|
12304
11540
|
"description": "Heartbeat accepted.",
|
|
12305
11541
|
"content": {
|