Mark posts that disappear from X instead of erasing them; pin mcp below 2

social.x_deletions checks stored posts through the official API. A post X
reports as not found keeps a marked record (author, link, dates, Internet
Archive link if a copy exists) while every copy of its text is removed, as
the Developer Agreement requires. A post that shows up in the timeline again
is restored by the normal upsert.

mcp 2.x removed FastMCP, which crash-looped the MCP server on first deploy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
simonandClaude Opus 5.5 committed 2026-11-09 00:43:36 +01:00
1 parent 0e21730b9f
commit 693c32a5e9
18 files changed
+265 -16

No files matched your search

@@ -0,0 +1,25 @@
[
{
"__type__": "PostRemoved",
"detected_at": "2026-01-01T00:00:00+00:00",
"platform": "x",
"platform_label": "X",
"url": "https://x.com/example/status/222"
},
{
"__type__": "Request",
"conditional": false,
"headers": null,
"json": null,
"kind": "wayback",
"meta": {
"url": "https://x.com/example/status/222"
},
"method": "GET",
"params": {
"url": "https://x.com/example/status/222"
},
"skip_unchanged": false,
"url": "https://archive.org/wayback/available"
}
]
+25
View File
@@ -0,0 +1,25 @@
{
"data": [
{"id": "111", "text": "Still online"}
],
"errors": [
{
"value": "222",
"detail": "Could not find tweet with ids: [222].",
"title": "Not Found Error",
"resource_type": "tweet",
"parameter": "ids",
"resource_id": "222",
"type": "https://api.twitter.com/2/problems/resource-not-found"
},
{
"value": "333",
"detail": "Sorry, you are not authorized to see the Tweet with ids: [333].",
"title": "Authorization Error",
"resource_type": "tweet",
"parameter": "ids",
"resource_id": "333",
"type": "https://api.twitter.com/2/problems/not-authorized-for-resource"
}
]
}
@@ -0,0 +1,18 @@
{
"url": "https://api.x.com/2/tweets",
"kind": "lookup",
"method": "GET",
"params": {
"ids": "111,222,333"
},
"json": null,
"meta": {
"urls": {
"111": "https://x.com/example/status/111",
"222": "https://x.com/example/status/222",
"333": "https://x.com/example/status/333"
}
},
"content_type": "application/json; charset=utf-8",
"body_file": "lookup.json"
}
@@ -0,0 +1,7 @@
[
{
"__type__": "ArchiveCopy",
"archive_url": "https://web.archive.org/web/20260101000000/https://x.com/example/status/222",
"url": "https://x.com/example/status/222"
}
]
+11
View File
@@ -0,0 +1,11 @@
{
"url": "https://x.com/example/status/222",
"archived_snapshots": {
"closest": {
"status": "200",
"available": true,
"url": "http://web.archive.org/web/20260101000000/https://x.com/example/status/222",
"timestamp": "20260101000000"
}
}
}
@@ -0,0 +1,14 @@
{
"url": "https://archive.org/wayback/available",
"kind": "wayback",
"method": "GET",
"params": {
"url": "https://x.com/example/status/222"
},
"json": null,
"meta": {
"url": "https://x.com/example/status/222"
},
"content_type": "application/json",
"body_file": "wayback.json"
}