@agentmc/api 0.1.1

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.
Files changed (104) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +197 -0
  3. package/bin/agentmc-api.mjs +8 -0
  4. package/dist/cli.d.ts +3 -0
  5. package/dist/cli.js +6617 -0
  6. package/dist/cli.js.map +1 -0
  7. package/dist/generated/operations.d.ts +5039 -0
  8. package/dist/generated/operations.js +6366 -0
  9. package/dist/generated/operations.js.map +1 -0
  10. package/dist/index.d.ts +10618 -0
  11. package/dist/index.js +6517 -0
  12. package/dist/index.js.map +1 -0
  13. package/docs/operations/README.md +50 -0
  14. package/docs/operations/agentConnectedInstructions.md +127 -0
  15. package/docs/operations/agentHeartbeat.md +266 -0
  16. package/docs/operations/authenticateAgentRealtimeSocket.md +176 -0
  17. package/docs/operations/claimAgentRealtimeSession.md +168 -0
  18. package/docs/operations/closeAgentRealtimeSession.md +201 -0
  19. package/docs/operations/commentWorkspaceCalendarItem.md +163 -0
  20. package/docs/operations/connectAgent.md +199 -0
  21. package/docs/operations/createAgentBrief.md +215 -0
  22. package/docs/operations/createAgentRealtimeSignal.md +224 -0
  23. package/docs/operations/createBoard.md +160 -0
  24. package/docs/operations/createBoardColumn.md +163 -0
  25. package/docs/operations/createTask.md +195 -0
  26. package/docs/operations/createTaskComment.md +176 -0
  27. package/docs/operations/createWorkspaceCalendarItem.md +234 -0
  28. package/docs/operations/deleteAgentBrief.md +145 -0
  29. package/docs/operations/deleteBoard.md +126 -0
  30. package/docs/operations/deleteBoardColumn.md +155 -0
  31. package/docs/operations/deleteTask.md +126 -0
  32. package/docs/operations/deleteTaskComment.md +128 -0
  33. package/docs/operations/deleteWorkspaceCalendarItem.md +126 -0
  34. package/docs/operations/index.json +6358 -0
  35. package/docs/operations/listAgentBriefs.md +207 -0
  36. package/docs/operations/listAgentRealtimeRequestedSessions.md +166 -0
  37. package/docs/operations/listAgentRealtimeSignals.md +185 -0
  38. package/docs/operations/listAgents.md +162 -0
  39. package/docs/operations/listBoards.md +142 -0
  40. package/docs/operations/listHosts.md +156 -0
  41. package/docs/operations/listLogs.md +140 -0
  42. package/docs/operations/listNotifications.md +179 -0
  43. package/docs/operations/listTaskComments.md +170 -0
  44. package/docs/operations/listTasks.md +158 -0
  45. package/docs/operations/listTeamMembers.md +137 -0
  46. package/docs/operations/markAllNotificationsRead.md +107 -0
  47. package/docs/operations/markNotificationRead.md +160 -0
  48. package/docs/operations/showBoard.md +134 -0
  49. package/docs/operations/showHost.md +172 -0
  50. package/docs/operations/showTask.md +140 -0
  51. package/docs/operations/showWorkspaceCalendarItem.md +165 -0
  52. package/docs/operations/updateAgentBrief.md +257 -0
  53. package/docs/operations/updateBoard.md +169 -0
  54. package/docs/operations/updateBoardColumn.md +165 -0
  55. package/docs/operations/updateTask.md +175 -0
  56. package/docs/operations/updateTaskComment.md +174 -0
  57. package/docs/operations/updateWorkspaceCalendarItem.md +204 -0
  58. package/docs/operations/workspaceCalendar.md +185 -0
  59. package/examples/http/agentConnectedInstructions.ts +19 -0
  60. package/examples/http/agentHeartbeat.ts +67 -0
  61. package/examples/http/authenticateAgentRealtimeSocket.ts +24 -0
  62. package/examples/http/claimAgentRealtimeSession.ts +21 -0
  63. package/examples/http/closeAgentRealtimeSession.ts +28 -0
  64. package/examples/http/commentWorkspaceCalendarItem.ts +24 -0
  65. package/examples/http/connectAgent.ts +47 -0
  66. package/examples/http/createAgentBrief.ts +34 -0
  67. package/examples/http/createAgentRealtimeSignal.ts +33 -0
  68. package/examples/http/createBoard.ts +19 -0
  69. package/examples/http/createBoardColumn.ts +23 -0
  70. package/examples/http/createTask.ts +24 -0
  71. package/examples/http/createTaskComment.ts +24 -0
  72. package/examples/http/createWorkspaceCalendarItem.ts +31 -0
  73. package/examples/http/deleteAgentBrief.ts +19 -0
  74. package/examples/http/deleteBoard.ts +19 -0
  75. package/examples/http/deleteBoardColumn.ts +22 -0
  76. package/examples/http/deleteTask.ts +19 -0
  77. package/examples/http/deleteTaskComment.ts +20 -0
  78. package/examples/http/deleteWorkspaceCalendarItem.ts +19 -0
  79. package/examples/http/listAgentBriefs.ts +22 -0
  80. package/examples/http/listAgentRealtimeRequestedSessions.ts +22 -0
  81. package/examples/http/listAgentRealtimeSignals.ts +25 -0
  82. package/examples/http/listAgents.ts +20 -0
  83. package/examples/http/listBoards.ts +21 -0
  84. package/examples/http/listHosts.ts +21 -0
  85. package/examples/http/listLogs.ts +19 -0
  86. package/examples/http/listNotifications.ts +20 -0
  87. package/examples/http/listTaskComments.ts +22 -0
  88. package/examples/http/listTasks.ts +26 -0
  89. package/examples/http/listTeamMembers.ts +20 -0
  90. package/examples/http/markAllNotificationsRead.ts +15 -0
  91. package/examples/http/markNotificationRead.ts +20 -0
  92. package/examples/http/showBoard.ts +19 -0
  93. package/examples/http/showHost.ts +22 -0
  94. package/examples/http/showTask.ts +19 -0
  95. package/examples/http/showWorkspaceCalendarItem.ts +19 -0
  96. package/examples/http/updateAgentBrief.ts +47 -0
  97. package/examples/http/updateBoard.ts +25 -0
  98. package/examples/http/updateBoardColumn.ts +24 -0
  99. package/examples/http/updateTask.ts +25 -0
  100. package/examples/http/updateTaskComment.ts +23 -0
  101. package/examples/http/updateWorkspaceCalendarItem.ts +27 -0
  102. package/examples/http/workspaceCalendar.ts +27 -0
  103. package/package.json +64 -0
  104. package/spec/openapi.filtered.json +12925 -0
@@ -0,0 +1,185 @@
1
+ # workspaceCalendar
2
+
3
+ - Method: `GET`
4
+ - Path: `/calendar`
5
+ - Summary: List calendar items.
6
+ - Auth: ApiKeyAuth OR AgentBearerAuth OR BearerAuth
7
+
8
+ ## Description
9
+
10
+ No additional description.
11
+
12
+ ## Parameters
13
+
14
+ | Name | In | Required | Description | Example |
15
+ | --- | --- | --- | --- | --- |
16
+ | view | query | no | Allowed values: month, week, list. | "month" |
17
+ | start | query | no | Start. | "2026-02-22T17:21:00Z" |
18
+ | end | query | no | End. | "2026-02-22T17:21:00Z" |
19
+ | type | query | no | Type discriminator for this record. Allowed values: event, task. | "event" |
20
+ | status | query | no | Current lifecycle status for this record. Allowed values: todo, in_progress, blocked, done, canceled. | "todo" |
21
+ | priority | query | no | Priority level for this record. Allowed values: low, medium, high, urgent. | "low" |
22
+ | assignee | query | no | Assignee. | "example" |
23
+ | q | query | no | Case-insensitive text search query. | "retro" |
24
+ | per_page | query | no | Page size for paginated responses. | 25 |
25
+
26
+ ## Request Example
27
+
28
+ None.
29
+
30
+ ## Success Responses
31
+
32
+ ### 200 (application/json)
33
+ Calendar items returned.
34
+
35
+ ```json
36
+ {
37
+ "data": [
38
+ {
39
+ "id": 42,
40
+ "workspace_id": 42,
41
+ "type": "event",
42
+ "title": "Example Title",
43
+ "description": "Example description text.",
44
+ "start_at": "2026-02-22T17:21:00Z",
45
+ "end_at": "2026-02-22T17:21:00Z",
46
+ "due_at": "2026-02-22T17:21:00Z",
47
+ "all_day": false,
48
+ "location": "example",
49
+ "timezone": "America/Los_Angeles",
50
+ "status": "todo",
51
+ "priority": "low",
52
+ "visibility": "workspace",
53
+ "created_by": 1,
54
+ "updated_by": 1,
55
+ "assignees": [
56
+ {
57
+ "id": 42,
58
+ "assignee_type": "user",
59
+ "assignee_id": 42,
60
+ "role": "owner",
61
+ "name": "Example Name",
62
+ "created_at": "2026-02-22T17:21:00Z"
63
+ }
64
+ ],
65
+ "links": [
66
+ {
67
+ "id": 42,
68
+ "link_type": "example",
69
+ "link_id": 42,
70
+ "url": "https://agentmc.example.com/docs/incident-123",
71
+ "title": "Example Title",
72
+ "created_at": "2026-02-22T17:21:00Z"
73
+ }
74
+ ],
75
+ "comments_count": 1,
76
+ "created_at": "2026-02-22T17:21:00Z",
77
+ "updated_at": "2026-02-22T17:21:00Z",
78
+ "deleted_at": "2026-02-22T17:21:00Z"
79
+ }
80
+ ],
81
+ "links": {
82
+ "first": "example",
83
+ "last": "example",
84
+ "prev": "example",
85
+ "next": "example"
86
+ },
87
+ "meta": {
88
+ "current_page": 1,
89
+ "from": 1,
90
+ "last_page": 1,
91
+ "links": [
92
+ {
93
+ "url": "https://agentmc.example.com/docs/incident-123",
94
+ "label": "example",
95
+ "active": true
96
+ }
97
+ ],
98
+ "path": "example",
99
+ "per_page": 25,
100
+ "total": 0
101
+ }
102
+ }
103
+ ```
104
+
105
+
106
+ ## Error Responses
107
+
108
+ ### 401 (application/json)
109
+ Missing or invalid credentials.
110
+
111
+ ```json
112
+ {
113
+ "error": {
114
+ "code": "validation.failed",
115
+ "message": "Validation failed.",
116
+ "details": {
117
+ "fields": {
118
+ "title": [
119
+ "The title field is required."
120
+ ]
121
+ }
122
+ }
123
+ }
124
+ }
125
+ ```
126
+
127
+ ### 403 (application/json)
128
+ Forbidden.
129
+
130
+ ```json
131
+ {
132
+ "error": {
133
+ "code": "validation.failed",
134
+ "message": "Validation failed.",
135
+ "details": {
136
+ "fields": {
137
+ "title": [
138
+ "The title field is required."
139
+ ]
140
+ }
141
+ }
142
+ }
143
+ }
144
+ ```
145
+
146
+
147
+ ## SDK Example
148
+
149
+ ```ts
150
+ import { AgentMCApi } from "@agentmc/api";
151
+
152
+ const client = new AgentMCApi({
153
+ agentToken: process.env.AGENTMC_AGENT_TOKEN
154
+ });
155
+
156
+ const result = await client.operations.workspaceCalendar({
157
+ "params": {
158
+ "query": {
159
+ "view": "month",
160
+ "start": "2026-02-22T17:21:00Z",
161
+ "end": "2026-02-22T17:21:00Z",
162
+ "type": "event",
163
+ "status": "todo",
164
+ "priority": "low",
165
+ "assignee": "example",
166
+ "q": "retro",
167
+ "per_page": 25
168
+ }
169
+ }
170
+ });
171
+
172
+ if (result.error) {
173
+ console.error(result.status, result.error);
174
+ } else {
175
+ console.log(result.data);
176
+ }
177
+ ```
178
+
179
+ ## cURL Example
180
+
181
+ ```bash
182
+ curl -X GET "https://agentmc.ai/api/v1/calendar?view=month&start=2026-02-22T17%3A21%3A00Z&end=2026-02-22T17%3A21%3A00Z&type=event&status=todo&priority=low&assignee=example&q=retro&per_page=25" \\
183
+ -H "Accept: application/json" \\
184
+ -H "X-Api-Key: $AGENTMC_API_KEY"
185
+ ```
@@ -0,0 +1,19 @@
1
+ import { AgentMCApi } from "@agentmc/api";
2
+
3
+ const client = new AgentMCApi({
4
+ agentToken: process.env.AGENTMC_AGENT_TOKEN
5
+ });
6
+
7
+ const result = await client.operations.agentConnectedInstructions({
8
+ "params": {
9
+ "path": {
10
+ "agent": 1
11
+ }
12
+ }
13
+ });
14
+
15
+ if (result.error) {
16
+ console.error(result.status, result.error);
17
+ } else {
18
+ console.log(result.data);
19
+ }
@@ -0,0 +1,67 @@
1
+ import { AgentMCApi } from "@agentmc/api";
2
+
3
+ const client = new AgentMCApi({
4
+ agentToken: process.env.AGENTMC_AGENT_TOKEN
5
+ });
6
+
7
+ const result = await client.operations.agentHeartbeat({
8
+ "params": {
9
+ "path": {
10
+ "agent": 1
11
+ }
12
+ },
13
+ "body": {
14
+ "status": "online",
15
+ "meta": {
16
+ "uptime_seconds": 43200,
17
+ "queue_depth": 2
18
+ },
19
+ "host": {
20
+ "fingerprint": "a3f56f330f311a2159f8c101eaf1439a29f1d57f007375d56aa79f304bc4f112",
21
+ "name": "worker-01",
22
+ "meta": {
23
+ "hostname": "worker-01",
24
+ "ip": "10.0.2.15",
25
+ "network": {
26
+ "private_ip": "10.0.2.15",
27
+ "public_ip": "34.222.10.10"
28
+ },
29
+ "os": "Ubuntu",
30
+ "os_version": "24.04",
31
+ "arch": "x86_64",
32
+ "cpu": "Intel Xeon",
33
+ "cpu_cores": 8,
34
+ "ram_gb": 32,
35
+ "disk": {
36
+ "total_bytes": 536870912000,
37
+ "free_bytes": 322122547200
38
+ },
39
+ "uptime_seconds": 86400,
40
+ "runtime": {
41
+ "name": "codex",
42
+ "version": "2026.02.1"
43
+ }
44
+ }
45
+ },
46
+ "agent": {
47
+ "id": 42,
48
+ "name": "codex-runtime-prod",
49
+ "models": [
50
+ {
51
+ "model_id": "openai/gpt-5-codex",
52
+ "provider": "openai"
53
+ },
54
+ {
55
+ "model_id": "anthropic/claude-sonnet-4-20250514",
56
+ "provider": "anthropic"
57
+ }
58
+ ]
59
+ }
60
+ }
61
+ });
62
+
63
+ if (result.error) {
64
+ console.error(result.status, result.error);
65
+ } else {
66
+ console.log(result.data);
67
+ }
@@ -0,0 +1,24 @@
1
+ import { AgentMCApi } from "@agentmc/api";
2
+
3
+ const client = new AgentMCApi({
4
+ agentToken: process.env.AGENTMC_AGENT_TOKEN
5
+ });
6
+
7
+ const result = await client.operations.authenticateAgentRealtimeSocket({
8
+ "params": {
9
+ "path": {
10
+ "agent": 1,
11
+ "session": 1
12
+ }
13
+ },
14
+ "body": {
15
+ "socket_id": "1234.567890",
16
+ "channel_name": "private-agent-realtime.7.42"
17
+ }
18
+ });
19
+
20
+ if (result.error) {
21
+ console.error(result.status, result.error);
22
+ } else {
23
+ console.log(result.data);
24
+ }
@@ -0,0 +1,21 @@
1
+ import { AgentMCApi } from "@agentmc/api";
2
+
3
+ const client = new AgentMCApi({
4
+ agentToken: process.env.AGENTMC_AGENT_TOKEN
5
+ });
6
+
7
+ const result = await client.operations.claimAgentRealtimeSession({
8
+ "params": {
9
+ "path": {
10
+ "agent": 1,
11
+ "session": 1
12
+ }
13
+ },
14
+ "body": {}
15
+ });
16
+
17
+ if (result.error) {
18
+ console.error(result.status, result.error);
19
+ } else {
20
+ console.log(result.data);
21
+ }
@@ -0,0 +1,28 @@
1
+ import { AgentMCApi } from "@agentmc/api";
2
+
3
+ const client = new AgentMCApi({
4
+ agentToken: process.env.AGENTMC_AGENT_TOKEN
5
+ });
6
+
7
+ const result = await client.operations.closeAgentRealtimeSession({
8
+ "params": {
9
+ "path": {
10
+ "agent": 1,
11
+ "session": 1
12
+ }
13
+ },
14
+ "body": {
15
+ "reason": "runtime_shutdown",
16
+ "status": "closed",
17
+ "payload": {
18
+ "request_id": "req_92b3f2",
19
+ "note": "Session closed by runtime during reconnect."
20
+ }
21
+ }
22
+ });
23
+
24
+ if (result.error) {
25
+ console.error(result.status, result.error);
26
+ } else {
27
+ console.log(result.data);
28
+ }
@@ -0,0 +1,24 @@
1
+ import { AgentMCApi } from "@agentmc/api";
2
+
3
+ const client = new AgentMCApi({
4
+ agentToken: process.env.AGENTMC_AGENT_TOKEN
5
+ });
6
+
7
+ const result = await client.operations.commentWorkspaceCalendarItem({
8
+ "params": {
9
+ "path": {
10
+ "item": 1
11
+ }
12
+ },
13
+ "body": {
14
+ "body": "Added links to logs and timeline document.",
15
+ "actor_type": "agent",
16
+ "actor_id": 42
17
+ }
18
+ });
19
+
20
+ if (result.error) {
21
+ console.error(result.status, result.error);
22
+ } else {
23
+ console.log(result.data);
24
+ }
@@ -0,0 +1,47 @@
1
+ import { AgentMCApi } from "@agentmc/api";
2
+
3
+ const client = new AgentMCApi({
4
+ connectToken: process.env.AGENTMC_CONNECT_TOKEN
5
+ });
6
+
7
+ const result = await client.operations.connectAgent({
8
+ "body": {
9
+ "name": "codex-runtime-prod",
10
+ "host": "ip-10-0-3-42",
11
+ "runtime_version": "2026.02.1",
12
+ "capabilities": [
13
+ "tasks",
14
+ "calendar",
15
+ "realtime"
16
+ ],
17
+ "metadata": {
18
+ "hostname": "worker-01",
19
+ "ip": "10.0.2.15",
20
+ "network": {
21
+ "private_ip": "10.0.2.15",
22
+ "public_ip": "34.201.22.9"
23
+ },
24
+ "os": "Ubuntu",
25
+ "os_version": "22.04",
26
+ "arch": "x86_64",
27
+ "cpu": "Intel Xeon",
28
+ "cpu_cores": 8,
29
+ "ram_gb": 32,
30
+ "disk": {
31
+ "total_bytes": 512110190592,
32
+ "free_bytes": 321102110720
33
+ },
34
+ "uptime_seconds": 86400,
35
+ "runtime": {
36
+ "name": "codex",
37
+ "version": "2026.02.1"
38
+ }
39
+ }
40
+ }
41
+ });
42
+
43
+ if (result.error) {
44
+ console.error(result.status, result.error);
45
+ } else {
46
+ console.log(result.data);
47
+ }
@@ -0,0 +1,34 @@
1
+ import { AgentMCApi } from "@agentmc/api";
2
+
3
+ const client = new AgentMCApi({
4
+ agentToken: process.env.AGENTMC_AGENT_TOKEN
5
+ });
6
+
7
+ const result = await client.operations.createAgentBrief({
8
+ "body": {
9
+ "brief": {
10
+ "key": "daily-operations",
11
+ "name": "Daily Operations Brief",
12
+ "summary": "Operations handoff digest for the morning window.",
13
+ "timezone": "America/Los_Angeles",
14
+ "headline": "3 overdue tasks | 4 upcoming events",
15
+ "content_markdown": "## Highlights\n- Elevated API error rate\n- Two incidents resolved",
16
+ "meta": {
17
+ "external_source": "daily-ops-job",
18
+ "schedule": "0 7 * * *"
19
+ }
20
+ },
21
+ "source": {
22
+ "agent_id": 42,
23
+ "meta": {
24
+ "runtime": "codex"
25
+ }
26
+ }
27
+ }
28
+ });
29
+
30
+ if (result.error) {
31
+ console.error(result.status, result.error);
32
+ } else {
33
+ console.log(result.data);
34
+ }
@@ -0,0 +1,33 @@
1
+ import { AgentMCApi } from "@agentmc/api";
2
+
3
+ const client = new AgentMCApi({
4
+ agentToken: process.env.AGENTMC_AGENT_TOKEN
5
+ });
6
+
7
+ const result = await client.operations.createAgentRealtimeSignal({
8
+ "params": {
9
+ "path": {
10
+ "agent": 1,
11
+ "session": 1
12
+ }
13
+ },
14
+ "body": {
15
+ "type": "message",
16
+ "payload": {
17
+ "type": "chat.user",
18
+ "payload": {
19
+ "content": "Create a AgentMC task for this afternoon to draft the postmortem outline.",
20
+ "message_id": 512,
21
+ "timezone": "America/Los_Angeles",
22
+ "source": "agentmc_chat",
23
+ "intent_scope": "agentmc"
24
+ }
25
+ }
26
+ }
27
+ });
28
+
29
+ if (result.error) {
30
+ console.error(result.status, result.error);
31
+ } else {
32
+ console.log(result.data);
33
+ }
@@ -0,0 +1,19 @@
1
+ import { AgentMCApi } from "@agentmc/api";
2
+
3
+ const client = new AgentMCApi({
4
+ agentToken: process.env.AGENTMC_AGENT_TOKEN
5
+ });
6
+
7
+ const result = await client.operations.createBoard({
8
+ "body": {
9
+ "name": "Incident Response",
10
+ "description": "Tracks response tasks for active incidents.",
11
+ "visibility": "team"
12
+ }
13
+ });
14
+
15
+ if (result.error) {
16
+ console.error(result.status, result.error);
17
+ } else {
18
+ console.log(result.data);
19
+ }
@@ -0,0 +1,23 @@
1
+ import { AgentMCApi } from "@agentmc/api";
2
+
3
+ const client = new AgentMCApi({
4
+ agentToken: process.env.AGENTMC_AGENT_TOKEN
5
+ });
6
+
7
+ const result = await client.operations.createBoardColumn({
8
+ "params": {
9
+ "path": {
10
+ "board": 1
11
+ }
12
+ },
13
+ "body": {
14
+ "name": "In Progress",
15
+ "position": 2
16
+ }
17
+ });
18
+
19
+ if (result.error) {
20
+ console.error(result.status, result.error);
21
+ } else {
22
+ console.log(result.data);
23
+ }
@@ -0,0 +1,24 @@
1
+ import { AgentMCApi } from "@agentmc/api";
2
+
3
+ const client = new AgentMCApi({
4
+ agentToken: process.env.AGENTMC_AGENT_TOKEN
5
+ });
6
+
7
+ const result = await client.operations.createTask({
8
+ "body": {
9
+ "board_id": 5,
10
+ "column_id": 13,
11
+ "title": "Draft post-incident summary",
12
+ "description": "Capture timeline, impact, and remediation status.",
13
+ "status": "doing",
14
+ "position": 2,
15
+ "due_at": "2026-02-24T17:00:00Z",
16
+ "assigned_to_user_id": 8
17
+ }
18
+ });
19
+
20
+ if (result.error) {
21
+ console.error(result.status, result.error);
22
+ } else {
23
+ console.log(result.data);
24
+ }
@@ -0,0 +1,24 @@
1
+ import { AgentMCApi } from "@agentmc/api";
2
+
3
+ const client = new AgentMCApi({
4
+ agentToken: process.env.AGENTMC_AGENT_TOKEN
5
+ });
6
+
7
+ const result = await client.operations.createTaskComment({
8
+ "params": {
9
+ "path": {
10
+ "task": 1
11
+ }
12
+ },
13
+ "body": {
14
+ "body": "Posting a handoff note for [@Alex Morgan](/mentions/user/8) to review before standup.",
15
+ "actor_type": "agent",
16
+ "actor_id": 42
17
+ }
18
+ });
19
+
20
+ if (result.error) {
21
+ console.error(result.status, result.error);
22
+ } else {
23
+ console.log(result.data);
24
+ }
@@ -0,0 +1,31 @@
1
+ import { AgentMCApi } from "@agentmc/api";
2
+
3
+ const client = new AgentMCApi({
4
+ agentToken: process.env.AGENTMC_AGENT_TOKEN
5
+ });
6
+
7
+ const result = await client.operations.createWorkspaceCalendarItem({
8
+ "body": {
9
+ "type": "task",
10
+ "title": "Review outage timeline",
11
+ "description": "Confirm sequence of events with on-call notes.",
12
+ "due_at": "2026-02-24T09:00:00Z",
13
+ "timezone": "America/Los_Angeles",
14
+ "status": "todo",
15
+ "priority": "high",
16
+ "visibility": "workspace",
17
+ "assignees": [
18
+ {
19
+ "assignee_type": "user",
20
+ "assignee_id": 8,
21
+ "role": "owner"
22
+ }
23
+ ]
24
+ }
25
+ });
26
+
27
+ if (result.error) {
28
+ console.error(result.status, result.error);
29
+ } else {
30
+ console.log(result.data);
31
+ }
@@ -0,0 +1,19 @@
1
+ import { AgentMCApi } from "@agentmc/api";
2
+
3
+ const client = new AgentMCApi({
4
+ agentToken: process.env.AGENTMC_AGENT_TOKEN
5
+ });
6
+
7
+ const result = await client.operations.deleteAgentBrief({
8
+ "params": {
9
+ "path": {
10
+ "id": 42
11
+ }
12
+ }
13
+ });
14
+
15
+ if (result.error) {
16
+ console.error(result.status, result.error);
17
+ } else {
18
+ console.log(result.data);
19
+ }
@@ -0,0 +1,19 @@
1
+ import { AgentMCApi } from "@agentmc/api";
2
+
3
+ const client = new AgentMCApi({
4
+ agentToken: process.env.AGENTMC_AGENT_TOKEN
5
+ });
6
+
7
+ const result = await client.operations.deleteBoard({
8
+ "params": {
9
+ "path": {
10
+ "id": 42
11
+ }
12
+ }
13
+ });
14
+
15
+ if (result.error) {
16
+ console.error(result.status, result.error);
17
+ } else {
18
+ console.log(result.data);
19
+ }
@@ -0,0 +1,22 @@
1
+ import { AgentMCApi } from "@agentmc/api";
2
+
3
+ const client = new AgentMCApi({
4
+ agentToken: process.env.AGENTMC_AGENT_TOKEN
5
+ });
6
+
7
+ const result = await client.operations.deleteBoardColumn({
8
+ "params": {
9
+ "path": {
10
+ "board": 1
11
+ }
12
+ },
13
+ "body": {
14
+ "column_id": 13
15
+ }
16
+ });
17
+
18
+ if (result.error) {
19
+ console.error(result.status, result.error);
20
+ } else {
21
+ console.log(result.data);
22
+ }