fettle-mcp 1.10.0 → 1.10.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.
- package/README.md +3 -3
- package/contracts/mcp_tools.json +34 -1
- package/dist/executor.d.ts +8 -4
- package/dist/executor.js +57 -11
- package/dist/executor.js.map +1 -1
- package/dist/validation.js +11 -2
- package/dist/validation.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -281,10 +281,10 @@ ERRORS (in a failed call's text)
|
|
|
281
281
|
- "This tool requires an API key with write scope" or "needs write access": read-only; tell the user.
|
|
282
282
|
- "Invalid argument(s)" or "Invalid request:": fix what it names, retry.
|
|
283
283
|
- "Forbidden:": a plan limit, an unknown region, or the user's role; the reason says which.
|
|
284
|
-
- "Not found:":
|
|
284
|
+
- "Not found:": unknown id.
|
|
285
285
|
- "Rate limited": wait the seconds given. All API keys and app connections share the organization's per-minute budget. One busy integration can use it all.
|
|
286
|
-
- "the API returned 5xx": retry once later.
|
|
287
|
-
- "does not accept argument(s)": drop
|
|
286
|
+
- "the API returned 5xx": reads: retry once later; writes: check first.
|
|
287
|
+
- "does not accept argument(s)": drop them.
|
|
288
288
|
- "Request failed with status N": read the reason; do not retry unchanged.
|
|
289
289
|
|
|
290
290
|
```
|
package/contracts/mcp_tools.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 1,
|
|
3
|
-
"instructions": "Fettle is an uptime monitoring service. The tools see only the caller's organization. Channels and status pages are created and configured only in the dashboard (https://dashboard.fettle.sh); members, API keys and billing live only there. Read a tool's description before its first call.\n\nFINDING THINGS\nlist_monitors gives one short row per monitor. Broken now: status [\"DOWN\", \"DEGRADED\"]. Certificates expiring first: type [\"SSL\"], sort \"ssl_expiry\". What changed on targets (DNS answers, certificates) since a deploy: list_changes with since.\n\nPLAN LIMITS\nCall get_plan_usage before creating anything (null means no limit). A 403 names a broken limit or unknown region: change the request or tell the user; never retry it unchanged.\n\nCREATING MONITORS\n- check_target probes a target once before create_monitor.\n- regions: unless the user names some, use every limits.allowed_regions code, up to max_regions; SSL, DNS and port-list TCP take one.\n- type and target never change after create.\n- After create, tell the user the interval and regions chosen; offer to change the interval (update_monitor).\n- channel_ids come from list_channels (email addresses are channels too); omitted on create alerts every working channel. If no channel works, the organization's owner is emailed.\n- update tools change only the fields you pass; never send null. A monitor's config is replaced whole: resend every field to keep.\n- Exposed ports on a server: follow get_exposed_ports_preset.\n\nMANY MONITORS AT ONCE\nCreate many with bulk_create_monitors. Find ids with list_monitors, then bulk_pause_monitors, bulk_resume_monitors or bulk_update_monitors, all or nothing. There is no bulk delete.\n\nTAGS\nCall list_tags first and reuse names, such as env:prod.\n\nHEARTBEATS\nA job calls ping_url when it succeeds. Job every N seconds, alert after T seconds of silence: period_seconds = N, grace_seconds = T - N.\n\nMAINTENANCE\nBefore a deploy or reboot, create_maintenance_window instead of pausing monitors: checks keep running, no incident opens, no down or change alert goes out (certificate and domain warnings still do). Not for heartbeats.\n\nDEPLOYS\nAfter a deploy, offer verify_deploy; run it only if the user agrees, never on your own. If yes: record_deploy, check_now the monitors, wait a minute, verify_deploy with since = deployed_at. Reuse the same deployed_at on every retry. On INSUFFICIENT_DATA wait retry_after_seconds, check_now monitors with needs_fresh_checks, call again; stop when it is null. REGRESSED and FAIL are not monitor statuses. Never roll back without asking.\n\nOUTAGES\nlist_monitors status [\"DOWN\"] -> list_incidents (monitor_id, status \"open\") -> get_incident_diagnosis (READY: follow agent.next_calls; else list_check_results) -> get_incident_context (regions, timeline, who acknowledged) -> get_incident. Pasted Fettle alert or dashboard /incidents/<uuid> link: call get_incident_diagnosis on it. acknowledge_incident leaves an incident out of reminders. create_status_page_incident and post_status_page_update can email subscribers: confirm the text with the user first. draft_status_page_post writes the text for those two; it never publishes.\n\nERRORS (in a failed call's text)\n- \"Authentication failed\": the credential is missing, revoked or expired, the address is not allowed, or its user lost access. Do not retry; tell the user.\n- \"This tool requires an API key with write scope\" or \"needs write access\": read-only; tell the user.\n- \"Invalid argument(s)\" or \"Invalid request:\": fix what it names, retry.\n- \"Forbidden:\": a plan limit, an unknown region, or the user's role; the reason says which.\n- \"Not found:\":
|
|
3
|
+
"instructions": "Fettle is an uptime monitoring service. The tools see only the caller's organization. Channels and status pages are created and configured only in the dashboard (https://dashboard.fettle.sh); members, API keys and billing live only there. Read a tool's description before its first call.\n\nFINDING THINGS\nlist_monitors gives one short row per monitor. Broken now: status [\"DOWN\", \"DEGRADED\"]. Certificates expiring first: type [\"SSL\"], sort \"ssl_expiry\". What changed on targets (DNS answers, certificates) since a deploy: list_changes with since.\n\nPLAN LIMITS\nCall get_plan_usage before creating anything (null means no limit). A 403 names a broken limit or unknown region: change the request or tell the user; never retry it unchanged.\n\nCREATING MONITORS\n- check_target probes a target once before create_monitor.\n- regions: unless the user names some, use every limits.allowed_regions code, up to max_regions; SSL, DNS and port-list TCP take one.\n- type and target never change after create.\n- After create, tell the user the interval and regions chosen; offer to change the interval (update_monitor).\n- channel_ids come from list_channels (email addresses are channels too); omitted on create alerts every working channel. If no channel works, the organization's owner is emailed.\n- update tools change only the fields you pass; never send null. A monitor's config is replaced whole: resend every field to keep.\n- Exposed ports on a server: follow get_exposed_ports_preset.\n\nMANY MONITORS AT ONCE\nCreate many with bulk_create_monitors. Find ids with list_monitors, then bulk_pause_monitors, bulk_resume_monitors or bulk_update_monitors, all or nothing. There is no bulk delete.\n\nTAGS\nCall list_tags first and reuse names, such as env:prod.\n\nHEARTBEATS\nA job calls ping_url when it succeeds. Job every N seconds, alert after T seconds of silence: period_seconds = N, grace_seconds = T - N.\n\nMAINTENANCE\nBefore a deploy or reboot, create_maintenance_window instead of pausing monitors: checks keep running, no incident opens, no down or change alert goes out (certificate and domain warnings still do). Not for heartbeats.\n\nDEPLOYS\nAfter a deploy, offer verify_deploy; run it only if the user agrees, never on your own. If yes: record_deploy, check_now the monitors, wait a minute, verify_deploy with since = deployed_at. Reuse the same deployed_at on every retry. On INSUFFICIENT_DATA wait retry_after_seconds, check_now monitors with needs_fresh_checks, call again; stop when it is null. REGRESSED and FAIL are not monitor statuses. Never roll back without asking.\n\nOUTAGES\nlist_monitors status [\"DOWN\"] -> list_incidents (monitor_id, status \"open\") -> get_incident_diagnosis (READY: follow agent.next_calls; else list_check_results) -> get_incident_context (regions, timeline, who acknowledged) -> get_incident. Pasted Fettle alert or dashboard /incidents/<uuid> link: call get_incident_diagnosis on it. acknowledge_incident leaves an incident out of reminders. create_status_page_incident and post_status_page_update can email subscribers: confirm the text with the user first. draft_status_page_post writes the text for those two; it never publishes.\n\nERRORS (in a failed call's text)\n- \"Authentication failed\": the credential is missing, revoked or expired, the address is not allowed, or its user lost access. Do not retry; tell the user.\n- \"This tool requires an API key with write scope\" or \"needs write access\": read-only; tell the user.\n- \"Invalid argument(s)\" or \"Invalid request:\": fix what it names, retry.\n- \"Forbidden:\": a plan limit, an unknown region, or the user's role; the reason says which.\n- \"Not found:\": unknown id.\n- \"Rate limited\": wait the seconds given. All API keys and app connections share the organization's per-minute budget. One busy integration can use it all.\n- \"the API returned 5xx\": reads: retry once later; writes: check first.\n- \"does not accept argument(s)\": drop them.\n- \"Request failed with status N\": read the reason; do not retry unchanged.\n",
|
|
4
4
|
"tools": [
|
|
5
5
|
{
|
|
6
6
|
"name": "list_monitors",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"type": "object",
|
|
12
12
|
"properties": {
|
|
13
13
|
"page": {
|
|
14
|
+
"maximum": 2147483647,
|
|
14
15
|
"minimum": 1,
|
|
15
16
|
"type": "integer",
|
|
16
17
|
"description": "Page number, 1 or more; default 1."
|
|
@@ -50,6 +51,7 @@
|
|
|
50
51
|
],
|
|
51
52
|
"type": "string"
|
|
52
53
|
},
|
|
54
|
+
"maxItems": 100,
|
|
53
55
|
"type": "array",
|
|
54
56
|
"description": "Keep monitors of any of these types: a JSON array."
|
|
55
57
|
},
|
|
@@ -64,6 +66,7 @@
|
|
|
64
66
|
],
|
|
65
67
|
"type": "string"
|
|
66
68
|
},
|
|
69
|
+
"maxItems": 100,
|
|
67
70
|
"type": "array",
|
|
68
71
|
"description": "Keep monitors in any of these states: a JSON array. PENDING means no verdict yet."
|
|
69
72
|
},
|
|
@@ -698,14 +701,17 @@
|
|
|
698
701
|
},
|
|
699
702
|
"regions": {
|
|
700
703
|
"items": {
|
|
704
|
+
"maxLength": 64,
|
|
701
705
|
"type": "string"
|
|
702
706
|
},
|
|
707
|
+
"maxItems": 100,
|
|
703
708
|
"minItems": 1,
|
|
704
709
|
"type": "array",
|
|
705
710
|
"description": "One or more distinct region codes: the plan's choices are limits.allowed_regions in get_plan_usage. An unknown code, or more regions than max_regions, is a 403. SSL, DNS and TCP monitors with a ports list take exactly one region (422 otherwise). Unless the user names regions, pass every code in limits.allowed_regions, up to the plan's max_regions."
|
|
706
711
|
},
|
|
707
712
|
"config": {
|
|
708
713
|
"additionalProperties": true,
|
|
714
|
+
"maxProperties": 32,
|
|
709
715
|
"type": "object",
|
|
710
716
|
"description": "An object whose fields depend on type, all optional unless stated. HTTP: method (GET, HEAD, POST, PUT, PATCH or DELETE, any case; default GET); expected_status_codes (non-empty list of codes 100 to 599, default [200]); keyword (case-sensitive substring the body must contain, at most 1024 characters, not with HEAD); follow_redirects (default true); verify_ssl (default true; false skips TLS verification, so the monitor can never report TLS_INVALID); request_headers (object of name to value: at most 20, a name at most 128 characters of letters, digits and ! # $ % & ' * + - . ^ _ ` | ~, a value at most 1024 bytes of printable ASCII, space or tab, the whole object at most 8192 bytes as JSON; names differing only in case, and Host, Content-Length, Transfer-Encoding, Connection, Upgrade, TE, Trailer, Keep-Alive, CF-Connecting-IP or any Proxy-* name, are a 422); request_body (string, at most 8192 bytes as UTF-8, needs POST, PUT, PATCH or DELETE). Reads return every request_headers value as the literal __FETTLE_UNCHANGED__; writing that literal back in an update keeps the stored value (on create it is a 422). PING: packet_count (1 to 20, default 4). SSL: warn_before_days (1 to 365, default 14; the first expiry alert, then again at 30, 14, 7 and 1 day left, whichever come after it) and port (1 to 65535, default 443). TCP: either port (1 to 65535) with expected_state \"open\" (default) or \"closed\", or ports (1 to 20 distinct ports that must all be closed, which needs expected_state \"closed\", exactly one region and interval_seconds of at least 300; a check fails when any of them accepts a connection, and the monitor goes DOWN once confirmation_threshold failures confirm it). Both port and ports, or neither, is a 422; expected_state values are lowercase. DNS: record_type (A, AAAA, CNAME, MX, TXT, NS or SRV; required) and expected_value (at most 2048 characters). With expected_value one answer must equal it (case-insensitive, ignoring surrounding spaces and a trailing dot; exact for TXT); without it any answer passes. MX answers are the mail host names without priority (mail.example.com, not 10 mail.example.com). A and AAAA look up every address of the host, IPv4 and IPv6 alike, and any one may match; write an IPv6 address in its shortest form. SRV: the target is the full name (_sip._tcp.example.com) and each answer reads priority weight port target (10 60 5060 sip.example.com); expected_value is either all four fields, which must all match, or target:port (sip.example.com:5060), which ignores priority and weight; any other SRV expected_value is a 422. Omit it for HTTP, PING or SSL to take the defaults; a TCP or DNS monitor without it is a 422."
|
|
711
717
|
},
|
|
@@ -720,6 +726,7 @@
|
|
|
720
726
|
"format": "uuid",
|
|
721
727
|
"type": "string"
|
|
722
728
|
},
|
|
729
|
+
"maxItems": 10000,
|
|
723
730
|
"type": "array",
|
|
724
731
|
"description": "Notification channel uuids from list_channels; email addresses are channels too. Omit it or pass [] to alert every working channel of the organization. A list replaces that default: only the listed channels are alerted, nobody else is emailed implicitly. An id that is not an active channel of this organization is a 404. Once every bound channel is deleted, every working channel is alerted. If none of the channels works, the organization's owner is emailed."
|
|
725
732
|
},
|
|
@@ -1247,13 +1254,16 @@
|
|
|
1247
1254
|
},
|
|
1248
1255
|
"regions": {
|
|
1249
1256
|
"items": {
|
|
1257
|
+
"maxLength": 64,
|
|
1250
1258
|
"type": "string"
|
|
1251
1259
|
},
|
|
1260
|
+
"maxItems": 100,
|
|
1252
1261
|
"minItems": 1,
|
|
1253
1262
|
"type": "array"
|
|
1254
1263
|
},
|
|
1255
1264
|
"config": {
|
|
1256
1265
|
"additionalProperties": true,
|
|
1266
|
+
"maxProperties": 32,
|
|
1257
1267
|
"type": "object"
|
|
1258
1268
|
},
|
|
1259
1269
|
"confirmation_threshold": {
|
|
@@ -1266,6 +1276,7 @@
|
|
|
1266
1276
|
"format": "uuid",
|
|
1267
1277
|
"type": "string"
|
|
1268
1278
|
},
|
|
1279
|
+
"maxItems": 10000,
|
|
1269
1280
|
"type": "array"
|
|
1270
1281
|
},
|
|
1271
1282
|
"tags": {
|
|
@@ -1662,8 +1673,10 @@
|
|
|
1662
1673
|
},
|
|
1663
1674
|
"regions": {
|
|
1664
1675
|
"items": {
|
|
1676
|
+
"maxLength": 64,
|
|
1665
1677
|
"type": "string"
|
|
1666
1678
|
},
|
|
1679
|
+
"maxItems": 100,
|
|
1667
1680
|
"minItems": 1,
|
|
1668
1681
|
"type": "array"
|
|
1669
1682
|
},
|
|
@@ -1673,6 +1686,7 @@
|
|
|
1673
1686
|
"format": "uuid",
|
|
1674
1687
|
"type": "string"
|
|
1675
1688
|
},
|
|
1689
|
+
"maxItems": 10000,
|
|
1676
1690
|
"type": "array"
|
|
1677
1691
|
},
|
|
1678
1692
|
"confirmation_threshold": {
|
|
@@ -1871,14 +1885,17 @@
|
|
|
1871
1885
|
},
|
|
1872
1886
|
"regions": {
|
|
1873
1887
|
"items": {
|
|
1888
|
+
"maxLength": 64,
|
|
1874
1889
|
"type": "string"
|
|
1875
1890
|
},
|
|
1891
|
+
"maxItems": 100,
|
|
1876
1892
|
"minItems": 1,
|
|
1877
1893
|
"type": "array",
|
|
1878
1894
|
"description": "One or more distinct region codes: the plan's choices are limits.allowed_regions in get_plan_usage. An unknown code, or more regions than max_regions, is a 403. SSL, DNS and TCP monitors with a ports list take exactly one region (422 otherwise)."
|
|
1879
1895
|
},
|
|
1880
1896
|
"config": {
|
|
1881
1897
|
"additionalProperties": true,
|
|
1898
|
+
"maxProperties": 32,
|
|
1882
1899
|
"type": "object",
|
|
1883
1900
|
"description": "Replaces the monitor's whole config, not just the keys you send: a field of the type's schema you leave out resets to its default (read the current one with get_monitor first). Sending only port on a TCP monitor whose expected_state is closed resets it to open. A port-list TCP monitor cannot switch to a single port (422). An object whose fields depend on type, all optional unless stated. HTTP: method (GET, HEAD, POST, PUT, PATCH or DELETE, any case; default GET); expected_status_codes (non-empty list of codes 100 to 599, default [200]); keyword (case-sensitive substring the body must contain, at most 1024 characters, not with HEAD); follow_redirects (default true); verify_ssl (default true; false skips TLS verification, so the monitor can never report TLS_INVALID); request_headers (object of name to value: at most 20, a name at most 128 characters of letters, digits and ! # $ % & ' * + - . ^ _ ` | ~, a value at most 1024 bytes of printable ASCII, space or tab, the whole object at most 8192 bytes as JSON; names differing only in case, and Host, Content-Length, Transfer-Encoding, Connection, Upgrade, TE, Trailer, Keep-Alive, CF-Connecting-IP or any Proxy-* name, are a 422); request_body (string, at most 8192 bytes as UTF-8, needs POST, PUT, PATCH or DELETE). Reads return every request_headers value as the literal __FETTLE_UNCHANGED__; writing that literal back in an update keeps the stored value (on create it is a 422). PING: packet_count (1 to 20, default 4). SSL: warn_before_days (1 to 365, default 14; the first expiry alert, then again at 30, 14, 7 and 1 day left, whichever come after it) and port (1 to 65535, default 443). TCP: either port (1 to 65535) with expected_state \"open\" (default) or \"closed\", or ports (1 to 20 distinct ports that must all be closed, which needs expected_state \"closed\", exactly one region and interval_seconds of at least 300; a check fails when any of them accepts a connection, and the monitor goes DOWN once confirmation_threshold failures confirm it). Both port and ports, or neither, is a 422; expected_state values are lowercase. DNS: record_type (A, AAAA, CNAME, MX, TXT, NS or SRV; required) and expected_value (at most 2048 characters). With expected_value one answer must equal it (case-insensitive, ignoring surrounding spaces and a trailing dot; exact for TXT); without it any answer passes. MX answers are the mail host names without priority (mail.example.com, not 10 mail.example.com). A and AAAA look up every address of the host, IPv4 and IPv6 alike, and any one may match; write an IPv6 address in its shortest form. SRV: the target is the full name (_sip._tcp.example.com) and each answer reads priority weight port target (10 60 5060 sip.example.com); expected_value is either all four fields, which must all match, or target:port (sip.example.com:5060), which ignores priority and weight; any other SRV expected_value is a 422."
|
|
1884
1901
|
},
|
|
@@ -1893,6 +1910,7 @@
|
|
|
1893
1910
|
"format": "uuid",
|
|
1894
1911
|
"type": "string"
|
|
1895
1912
|
},
|
|
1913
|
+
"maxItems": 10000,
|
|
1896
1914
|
"type": "array",
|
|
1897
1915
|
"description": "Notification channel uuids from list_channels; email addresses are channels too. When passed it replaces the whole binding: only the listed channels are alerted, nobody else is emailed implicitly; [] clears it, after which every working channel is alerted; omit it to keep the binding. A newly added id must be an active channel of this organization (else 404); resending a channel that is already bound keeps it even if it is muted, and it gets no alerts while muted. Once every bound channel is deleted, every working channel is alerted. If none of the channels works, the organization's owner is emailed."
|
|
1898
1916
|
},
|
|
@@ -4245,6 +4263,7 @@
|
|
|
4245
4263
|
"type": "object",
|
|
4246
4264
|
"properties": {
|
|
4247
4265
|
"page": {
|
|
4266
|
+
"maximum": 2147483647,
|
|
4248
4267
|
"minimum": 1,
|
|
4249
4268
|
"type": "integer",
|
|
4250
4269
|
"description": "Page number, 1 or more; default 1."
|
|
@@ -5025,6 +5044,7 @@
|
|
|
5025
5044
|
"type": "object",
|
|
5026
5045
|
"properties": {
|
|
5027
5046
|
"page": {
|
|
5047
|
+
"maximum": 2147483647,
|
|
5028
5048
|
"minimum": 1,
|
|
5029
5049
|
"type": "integer",
|
|
5030
5050
|
"description": "Page number, 1 or more; default 1."
|
|
@@ -5298,6 +5318,7 @@
|
|
|
5298
5318
|
"format": "uuid",
|
|
5299
5319
|
"type": "string"
|
|
5300
5320
|
},
|
|
5321
|
+
"maxItems": 10000,
|
|
5301
5322
|
"type": "array",
|
|
5302
5323
|
"description": "Notification channel uuids from list_channels; email addresses are channels too. Omit it or pass [] to alert every working channel of the organization. A list replaces that default: only the listed channels are alerted, nobody else is emailed implicitly. An id that is not an active channel of this organization is a 404. Once every bound channel is deleted, every working channel is alerted. If none of the channels works, the organization's owner is emailed."
|
|
5303
5324
|
},
|
|
@@ -5846,6 +5867,7 @@
|
|
|
5846
5867
|
"format": "uuid",
|
|
5847
5868
|
"type": "string"
|
|
5848
5869
|
},
|
|
5870
|
+
"maxItems": 10000,
|
|
5849
5871
|
"type": "array",
|
|
5850
5872
|
"description": "Notification channel uuids from list_channels; email addresses are channels too. When passed it replaces the whole binding: only the listed channels are alerted, nobody else is emailed implicitly; [] clears it, after which every working channel is alerted; omit it to keep the binding. A newly added id must be an active channel of this organization (else 404); resending a channel that is already bound keeps it even if it is muted, and it gets no alerts while muted. Once every bound channel is deleted, every working channel is alerted. If none of the channels works, the organization's owner is emailed."
|
|
5851
5873
|
},
|
|
@@ -6515,6 +6537,7 @@
|
|
|
6515
6537
|
"type": "object",
|
|
6516
6538
|
"properties": {
|
|
6517
6539
|
"page": {
|
|
6540
|
+
"maximum": 2147483647,
|
|
6518
6541
|
"minimum": 1,
|
|
6519
6542
|
"type": "integer",
|
|
6520
6543
|
"description": "Page number, 1 or more; default 1."
|
|
@@ -6938,6 +6961,7 @@
|
|
|
6938
6961
|
"format": "uuid",
|
|
6939
6962
|
"type": "string"
|
|
6940
6963
|
},
|
|
6964
|
+
"maxItems": 10000,
|
|
6941
6965
|
"type": "array",
|
|
6942
6966
|
"description": "Monitor uuids from list_monitors, at least one when scope is MONITOR. An id that is not a monitor of this organization is a 404."
|
|
6943
6967
|
}
|
|
@@ -7130,6 +7154,7 @@
|
|
|
7130
7154
|
"format": "uuid",
|
|
7131
7155
|
"type": "string"
|
|
7132
7156
|
},
|
|
7157
|
+
"maxItems": 10000,
|
|
7133
7158
|
"type": "array",
|
|
7134
7159
|
"description": "Replaces the list when passed. Monitor uuids from list_monitors, at least one when scope is MONITOR. An id that is not a monitor of this organization is a 404. A deleted monitor the window already has may be resent."
|
|
7135
7160
|
}
|
|
@@ -7372,6 +7397,7 @@
|
|
|
7372
7397
|
"type": "object",
|
|
7373
7398
|
"properties": {
|
|
7374
7399
|
"page": {
|
|
7400
|
+
"maximum": 2147483647,
|
|
7375
7401
|
"minimum": 1,
|
|
7376
7402
|
"type": "integer",
|
|
7377
7403
|
"description": "Page number, 1 or more; default 1."
|
|
@@ -7647,6 +7673,7 @@
|
|
|
7647
7673
|
"description": "The monitor's uuid from list_monitors. An id that is not a monitor of this organization, or a deleted one, is a 404."
|
|
7648
7674
|
},
|
|
7649
7675
|
"page": {
|
|
7676
|
+
"maximum": 2147483647,
|
|
7650
7677
|
"minimum": 1,
|
|
7651
7678
|
"type": "integer",
|
|
7652
7679
|
"description": "Page number, 1 or more; default 1."
|
|
@@ -7839,6 +7866,7 @@
|
|
|
7839
7866
|
"type": "object",
|
|
7840
7867
|
"properties": {
|
|
7841
7868
|
"page": {
|
|
7869
|
+
"maximum": 2147483647,
|
|
7842
7870
|
"minimum": 1,
|
|
7843
7871
|
"type": "integer",
|
|
7844
7872
|
"description": "Page number, 1 or more; default 1."
|
|
@@ -10475,6 +10503,7 @@
|
|
|
10475
10503
|
"description": "The status page's uuid from list_status_pages. An id that is not a status page of this organization is a 404."
|
|
10476
10504
|
},
|
|
10477
10505
|
"page": {
|
|
10506
|
+
"maximum": 2147483647,
|
|
10478
10507
|
"minimum": 1,
|
|
10479
10508
|
"type": "integer",
|
|
10480
10509
|
"description": "Page number, 1 or more; default 1."
|
|
@@ -10694,6 +10723,7 @@
|
|
|
10694
10723
|
"format": "uuid",
|
|
10695
10724
|
"type": "string"
|
|
10696
10725
|
},
|
|
10726
|
+
"maxItems": 10000,
|
|
10697
10727
|
"type": "array",
|
|
10698
10728
|
"description": "New incident only: the components it is about, uuids from get_status_page. Omit to draft from every component of the page. Not with incident_id."
|
|
10699
10729
|
}
|
|
@@ -10882,6 +10912,7 @@
|
|
|
10882
10912
|
"format": "uuid",
|
|
10883
10913
|
"type": "string"
|
|
10884
10914
|
},
|
|
10915
|
+
"maxItems": 10000,
|
|
10885
10916
|
"type": "array",
|
|
10886
10917
|
"description": "The affected components: uuids from get_status_page. An id that is not a component of this page is a 404."
|
|
10887
10918
|
}
|
|
@@ -11597,6 +11628,7 @@
|
|
|
11597
11628
|
},
|
|
11598
11629
|
"config": {
|
|
11599
11630
|
"additionalProperties": true,
|
|
11631
|
+
"maxProperties": 32,
|
|
11600
11632
|
"type": "object",
|
|
11601
11633
|
"description": "As in create_monitor; TCP and DNS need it. The region, interval and update rules there do not apply to a one-off probe. An object whose fields depend on type, all optional unless stated. HTTP: method (GET, HEAD, POST, PUT, PATCH or DELETE, any case; default GET); expected_status_codes (non-empty list of codes 100 to 599, default [200]); keyword (case-sensitive substring the body must contain, at most 1024 characters, not with HEAD); follow_redirects (default true); verify_ssl (default true; false skips TLS verification, so the monitor can never report TLS_INVALID); request_headers (object of name to value: at most 20, a name at most 128 characters of letters, digits and ! # $ % & ' * + - . ^ _ ` | ~, a value at most 1024 bytes of printable ASCII, space or tab, the whole object at most 8192 bytes as JSON; names differing only in case, and Host, Content-Length, Transfer-Encoding, Connection, Upgrade, TE, Trailer, Keep-Alive, CF-Connecting-IP or any Proxy-* name, are a 422); request_body (string, at most 8192 bytes as UTF-8, needs POST, PUT, PATCH or DELETE). Reads return every request_headers value as the literal __FETTLE_UNCHANGED__; writing that literal back in an update keeps the stored value (on create it is a 422). PING: packet_count (1 to 20, default 4). SSL: warn_before_days (1 to 365, default 14; the first expiry alert, then again at 30, 14, 7 and 1 day left, whichever come after it) and port (1 to 65535, default 443). TCP: either port (1 to 65535) with expected_state \"open\" (default) or \"closed\", or ports (1 to 20 distinct ports that must all be closed, which needs expected_state \"closed\", exactly one region and interval_seconds of at least 300; a check fails when any of them accepts a connection, and the monitor goes DOWN once confirmation_threshold failures confirm it). Both port and ports, or neither, is a 422; expected_state values are lowercase. DNS: record_type (A, AAAA, CNAME, MX, TXT, NS or SRV; required) and expected_value (at most 2048 characters). With expected_value one answer must equal it (case-insensitive, ignoring surrounding spaces and a trailing dot; exact for TXT); without it any answer passes. MX answers are the mail host names without priority (mail.example.com, not 10 mail.example.com). A and AAAA look up every address of the host, IPv4 and IPv6 alike, and any one may match; write an IPv6 address in its shortest form. SRV: the target is the full name (_sip._tcp.example.com) and each answer reads priority weight port target (10 60 5060 sip.example.com); expected_value is either all four fields, which must all match, or target:port (sip.example.com:5060), which ignores priority and weight; any other SRV expected_value is a 422."
|
|
11602
11634
|
}
|
|
@@ -11694,6 +11726,7 @@
|
|
|
11694
11726
|
},
|
|
11695
11727
|
"ref": {
|
|
11696
11728
|
"description": "The commit SHA, tag or branch: 1 to 200 printable characters with no spaces; anything else is a 422.",
|
|
11729
|
+
"maxLength": 200,
|
|
11697
11730
|
"pattern": "^[\\x21-\\x7E]{1,200}$",
|
|
11698
11731
|
"type": "string"
|
|
11699
11732
|
},
|
package/dist/executor.d.ts
CHANGED
|
@@ -39,8 +39,9 @@ export declare class ToolArgumentError extends Error {
|
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
41
41
|
* A failure the model cannot fix by retrying with different arguments — the
|
|
42
|
-
* API answered 5xx,
|
|
43
|
-
* error, the same choice core makes for a 5xx.
|
|
42
|
+
* API answered 5xx, the request never got there, or the answer did not arrive
|
|
43
|
+
* whole. Surfaces as a JSON-RPC error, the same choice core makes for a 5xx. A
|
|
44
|
+
* write that may have been applied carries `CHECK_CHANGE_FIRST`.
|
|
44
45
|
*/
|
|
45
46
|
export declare class ToolProtocolError extends Error {
|
|
46
47
|
}
|
|
@@ -57,6 +58,7 @@ export declare class ToolExecutor {
|
|
|
57
58
|
private readonly options;
|
|
58
59
|
private readonly fetchImpl;
|
|
59
60
|
constructor(options: ExecutorOptions);
|
|
61
|
+
private timeoutError;
|
|
60
62
|
/**
|
|
61
63
|
* Execute one tool call and return an MCP `tools/call` result.
|
|
62
64
|
*
|
|
@@ -77,12 +79,14 @@ export declare class ToolExecutor {
|
|
|
77
79
|
* no redirects: a 3xx is reported, never chased, so the credential cannot
|
|
78
80
|
* be replayed to a host the contract did not name.
|
|
79
81
|
* 5. Map the response — 2xx is a result, any other non-5xx is an actionable
|
|
80
|
-
* tool error, 5xx and transport failures raise
|
|
82
|
+
* tool error, 5xx, timeouts and transport failures raise, and say to
|
|
83
|
+
* check first when a write may have been applied.
|
|
81
84
|
*
|
|
82
85
|
* Throws:
|
|
83
86
|
* ToolArgumentError: an argument is missing, wrongly typed, or matched no
|
|
84
87
|
* declared parameter on a tool with no request body.
|
|
85
|
-
* ToolProtocolError: the API answered 5xx, or
|
|
88
|
+
* ToolProtocolError: the API answered 5xx, or no complete answer
|
|
89
|
+
* arrived.
|
|
86
90
|
*/
|
|
87
91
|
execute(tool: ToolEntry, args: Record<string, unknown>): Promise<ToolResult>;
|
|
88
92
|
}
|
package/dist/executor.js
CHANGED
|
@@ -24,8 +24,9 @@ export class ToolArgumentError extends Error {
|
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
26
|
* A failure the model cannot fix by retrying with different arguments — the
|
|
27
|
-
* API answered 5xx,
|
|
28
|
-
* error, the same choice core makes for a 5xx.
|
|
27
|
+
* API answered 5xx, the request never got there, or the answer did not arrive
|
|
28
|
+
* whole. Surfaces as a JSON-RPC error, the same choice core makes for a 5xx. A
|
|
29
|
+
* write that may have been applied carries `CHECK_CHANGE_FIRST`.
|
|
29
30
|
*/
|
|
30
31
|
export class ToolProtocolError extends Error {
|
|
31
32
|
}
|
|
@@ -34,6 +35,18 @@ export class ToolProtocolError extends Error {
|
|
|
34
35
|
* itself is broken), not something the calling model can act on.
|
|
35
36
|
*/
|
|
36
37
|
const SERVER_ERROR_THRESHOLD = 500;
|
|
38
|
+
/**
|
|
39
|
+
* Added to a write whose outcome is unknown: it may have committed before the
|
|
40
|
+
* failure. Core's remote channel uses the same sentence.
|
|
41
|
+
*/
|
|
42
|
+
const CHECK_CHANGE_FIRST = "Check whether the change went through before you try again.";
|
|
43
|
+
/** Failures before a connection existed, so nothing can have been applied. */
|
|
44
|
+
const NEVER_SENT_CODES = new Set(["ENOTFOUND", "EAI_AGAIN", "ECONNREFUSED"]);
|
|
45
|
+
/** Whether fetch failed before the request could leave; undici nests the code. */
|
|
46
|
+
function neverSent(cause) {
|
|
47
|
+
const inner = cause instanceof Error ? cause.cause : null;
|
|
48
|
+
return typeof inner?.code === "string" && NEVER_SENT_CODES.has(inner.code);
|
|
49
|
+
}
|
|
37
50
|
function substitutePathParams(tool, args) {
|
|
38
51
|
let path = tool.operation.path;
|
|
39
52
|
for (const name of tool.operation.path_params) {
|
|
@@ -64,6 +77,13 @@ function substitutePathParams(tool, args) {
|
|
|
64
77
|
if (value.includes("/") || value.includes("?")) {
|
|
65
78
|
throw new ToolArgumentError(`Tool '${tool.name}' argument '${name}' may not contain '/' or '?'.`);
|
|
66
79
|
}
|
|
80
|
+
// The URL parser resolves '.' and '..' segments, so '..' would turn
|
|
81
|
+
// /v1/status-pages/{id}/incidents into /v1/incidents, another route. Core
|
|
82
|
+
// refuses the same values.
|
|
83
|
+
if (value === "." || value === ".." || value.toLowerCase().includes("%2e")) {
|
|
84
|
+
throw new ToolArgumentError(`Tool '${tool.name}' argument '${name}' may not be '.' or '..' ` +
|
|
85
|
+
"or contain '%2e'.");
|
|
86
|
+
}
|
|
67
87
|
path = path.replace(`{${name}}`, encodeURIComponent(value));
|
|
68
88
|
}
|
|
69
89
|
return path;
|
|
@@ -155,6 +175,9 @@ function buildQuery(tool, args) {
|
|
|
155
175
|
}
|
|
156
176
|
return params;
|
|
157
177
|
}
|
|
178
|
+
function isTimeout(cause) {
|
|
179
|
+
return cause instanceof Error && cause.name === "TimeoutError";
|
|
180
|
+
}
|
|
158
181
|
async function readBody(response) {
|
|
159
182
|
const text = await response.text();
|
|
160
183
|
if (text === "") {
|
|
@@ -177,6 +200,12 @@ export class ToolExecutor {
|
|
|
177
200
|
this.options = options;
|
|
178
201
|
this.fetchImpl = options.fetchImpl ?? globalThis.fetch;
|
|
179
202
|
}
|
|
203
|
+
timeoutError(tool, mayHaveApplied) {
|
|
204
|
+
return new ToolProtocolError(`Tool '${tool.name}' timed out after ${this.options.timeoutMs}ms ` +
|
|
205
|
+
`waiting for ${this.options.apiUrl}. ` +
|
|
206
|
+
(mayHaveApplied ? `${CHECK_CHANGE_FIRST} Raise ` : "Retry, or raise ") +
|
|
207
|
+
"FETTLE_TIMEOUT_MS if this endpoint is legitimately slow.");
|
|
208
|
+
}
|
|
180
209
|
/**
|
|
181
210
|
* Execute one tool call and return an MCP `tools/call` result.
|
|
182
211
|
*
|
|
@@ -197,12 +226,14 @@ export class ToolExecutor {
|
|
|
197
226
|
* no redirects: a 3xx is reported, never chased, so the credential cannot
|
|
198
227
|
* be replayed to a host the contract did not name.
|
|
199
228
|
* 5. Map the response — 2xx is a result, any other non-5xx is an actionable
|
|
200
|
-
* tool error, 5xx and transport failures raise
|
|
229
|
+
* tool error, 5xx, timeouts and transport failures raise, and say to
|
|
230
|
+
* check first when a write may have been applied.
|
|
201
231
|
*
|
|
202
232
|
* Throws:
|
|
203
233
|
* ToolArgumentError: an argument is missing, wrongly typed, or matched no
|
|
204
234
|
* declared parameter on a tool with no request body.
|
|
205
|
-
* ToolProtocolError: the API answered 5xx, or
|
|
235
|
+
* ToolProtocolError: the API answered 5xx, or no complete answer
|
|
236
|
+
* arrived.
|
|
206
237
|
*/
|
|
207
238
|
async execute(tool, args) {
|
|
208
239
|
const remaining = { ...args };
|
|
@@ -225,6 +256,8 @@ export class ToolExecutor {
|
|
|
225
256
|
if (body !== undefined) {
|
|
226
257
|
headers["Content-Type"] = "application/json";
|
|
227
258
|
}
|
|
259
|
+
const write = tool.scope === "write";
|
|
260
|
+
const checkFirst = write ? ` ${CHECK_CHANGE_FIRST}` : "";
|
|
228
261
|
let response;
|
|
229
262
|
try {
|
|
230
263
|
response = await this.fetchImpl(url, {
|
|
@@ -236,17 +269,30 @@ export class ToolExecutor {
|
|
|
236
269
|
});
|
|
237
270
|
}
|
|
238
271
|
catch (cause) {
|
|
239
|
-
if (cause
|
|
240
|
-
throw
|
|
241
|
-
`waiting for ${this.options.apiUrl}. Retry, or raise ` +
|
|
242
|
-
"FETTLE_TIMEOUT_MS if this endpoint is legitimately slow.");
|
|
272
|
+
if (isTimeout(cause)) {
|
|
273
|
+
throw this.timeoutError(tool, write);
|
|
243
274
|
}
|
|
244
|
-
throw new ToolProtocolError(describeTransportFailure(this.options.apiUrl, cause)
|
|
275
|
+
throw new ToolProtocolError(describeTransportFailure(this.options.apiUrl, cause) +
|
|
276
|
+
(neverSent(cause) ? "" : checkFirst));
|
|
245
277
|
}
|
|
246
278
|
if (response.status >= SERVER_ERROR_THRESHOLD) {
|
|
247
|
-
throw new ToolProtocolError(`Tool '${tool.name}' failed: the API returned ${response.status}
|
|
279
|
+
throw new ToolProtocolError(`Tool '${tool.name}' failed: the API returned ${response.status}.${checkFirst}`);
|
|
280
|
+
}
|
|
281
|
+
let payload;
|
|
282
|
+
try {
|
|
283
|
+
payload = await readBody(response);
|
|
284
|
+
}
|
|
285
|
+
catch (cause) {
|
|
286
|
+
// The timeout covers the body too, and a connection can break inside it.
|
|
287
|
+
if (isTimeout(cause)) {
|
|
288
|
+
throw this.timeoutError(tool, write && response.ok);
|
|
289
|
+
}
|
|
290
|
+
const reason = cause instanceof Error ? cause.message : String(cause);
|
|
291
|
+
throw new ToolProtocolError(`Tool '${tool.name}' failed: the API returned ${response.status}, but the ` +
|
|
292
|
+
`connection broke before the full response arrived: ${reason}.` +
|
|
293
|
+
// A refused write (3xx, 4xx) changed nothing.
|
|
294
|
+
(response.ok ? checkFirst : ""));
|
|
248
295
|
}
|
|
249
|
-
const payload = await readBody(response);
|
|
250
296
|
if (response.status < 200 || response.status >= 300) {
|
|
251
297
|
const errorBody = typeof payload === "object" && payload !== null && !Array.isArray(payload)
|
|
252
298
|
? payload
|
package/dist/executor.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../src/executor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAexE;;;;GAIG;AACH,MAAM,OAAO,iBAAkB,SAAQ,K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,OAAO,CAAC;QACrC,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"}
|
package/dist/validation.js
CHANGED
|
@@ -48,6 +48,8 @@ function describeError(error) {
|
|
|
48
48
|
const field = path === "" ? "arguments" : path;
|
|
49
49
|
return `'${field}': ${error.message ?? "is invalid"}`;
|
|
50
50
|
}
|
|
51
|
+
/** The text goes into the model's context, so a long array must not fill it. */
|
|
52
|
+
const MAX_REPORTED_ERRORS = 10;
|
|
51
53
|
/**
|
|
52
54
|
* Turn Ajv's errors into the same field-naming sentence a 422 would produce.
|
|
53
55
|
*
|
|
@@ -56,10 +58,17 @@ function describeError(error) {
|
|
|
56
58
|
* be told twice about one argument.
|
|
57
59
|
*/
|
|
58
60
|
export function describeSchemaErrors(toolName, errors) {
|
|
59
|
-
|
|
61
|
+
// Size errors first: one oversized array also reports each bad item in it.
|
|
62
|
+
const all = [...(errors ?? [])];
|
|
63
|
+
const bySize = all.filter((error) => error.keyword === "maxItems");
|
|
64
|
+
const rest = all.filter((error) => error.keyword !== "maxItems");
|
|
65
|
+
const parts = [...new Set([...bySize, ...rest].map(describeError))];
|
|
60
66
|
if (parts.length === 0) {
|
|
61
67
|
return `Tool '${toolName}' rejected the arguments. Check them and retry.`;
|
|
62
68
|
}
|
|
63
|
-
|
|
69
|
+
const shown = parts.slice(0, MAX_REPORTED_ERRORS).join("; ");
|
|
70
|
+
const hidden = parts.length - MAX_REPORTED_ERRORS;
|
|
71
|
+
const more = hidden > 0 ? `; and ${hidden} more` : "";
|
|
72
|
+
return `Invalid argument(s) for '${toolName}' — ${shown}${more}. Fix the value(s) and retry.`;
|
|
64
73
|
}
|
|
65
74
|
//# sourceMappingURL=validation.js.map
|
package/dist/validation.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation.js","sourceRoot":"","sources":["../src/validation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,GAAG,EAA2C,M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AK,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,MAAM,EAAE,GAAG,IAAI,CAAC,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;IACpE,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACvB,OAAO,SAAS,QAAQ,iDAAiD,CAAC;IAC5E,CAAC;IACD,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,mBAAmB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7D,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,GAAG,mBAAmB,CAAC;IAClD,MAAM,IAAI,GAAG,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;IACtD,OAAO,4BAA4B,QAAQ,OAAO,KAAK,GAAG,IAAI,+BAA+B,CAAC;AAChG,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fettle-mcp",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.2",
|
|
4
4
|
"mcpName": "sh.fettle/mcp",
|
|
5
5
|
"description": "Fettle uptime monitoring (https://fettle.sh) for any MCP client — manage monitors, incidents, heartbeats, maintenance windows, status page incidents and deploy checks from Claude, Cursor or Codex.",
|
|
6
6
|
"keywords": [
|