capx café

v0.1.3
io.github.vb-tyagi/capx-cafe Checked 3 days ago Published 3 months ago

Agent-native X (Twitter) posting as one MCP server; every post clears a server-side guardrail.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

connect_x

Connect (or confirm) your X account via the capx chokepoint. Call once for a consent URL; after authorizing in the browser, call again with { confirm: true }.

ParameterTypeDescription
clientIdstring
confirmboolean
lanestring

whoami

Show the connected X account and its status (via the chokepoint).

post_now

Post text to X now. Every post passes the casserole guardrail at the chokepoint; blocked/held posts are never sent, and the token never touches this machine. Set aiGenerated only if the user wants this post labelled AI-assisted (default off — it is the user's choice). Pass inReplyToId with a prior post's platformPostId to chain a native reply/thread.

ParameterTypeDescription
text *string
aiGeneratedbooleanlabel this post AI-assisted — the USER decides; default false
idempotencyKeystring
inReplyToIdstringplatformPostId of the post this replies to (for threads)
mediaIdsarraymedia ids from upload_media to attach to this post

preview

Dry-run a draft through the casserole guardrail WITHOUT posting: returns whether it would pass, be held, or be blocked, and why. Use it to fix a draft before posting or scheduling. This is a linter, never a way to bypass the guard.

ParameterTypeDescription
text *string
aiGeneratedboolean

audit

Show the durable history of what capx has posted or attempted on your behalf (most recent first, with delivery state). A trust feature — read-only, your own handle only.

ParameterTypeDescription
limitnumbermax rows (default 50)

upload_media

Upload a local image or video (produced by your own media tool) so it can be attached to a post. Reads the file, streams the bytes to the chokepoint, and returns a media id to pass to post_now as mediaIds. Media is not moderated by casserole — you set the AI-content label per the media skills.

ParameterTypeDescription
path *stringlocal file path to the image/video, e.g. ./out/hero.png

create_loop

Schedule recurring posts. YOU (the agent) must write the posts and pass them in `posts` — capx never generates content, so at fire time it only ships text you already wrote. When the queue empties the loop pauses and asks for more. Requires a verified X account at least 30 days old.

ParameterTypeDescription
daysOfWeek *array0=Sunday .. 6=Saturday, e.g. [1,3,5]
posts *arraythe posts YOU wrote; one is sent per fire, in order
time *stringlocal time, HH:MM, e.g. "09:00"
aiGeneratedbooleanlabel this loop's posts AI-assisted — the USER decides; default false
timezonestringIANA zone (defaults to this machine's), e.g. Asia/Kolkata

list_loops

List your scheduled loops, their next-post queue, and whether any are paused.

pause_loop

Pause or resume a loop.

ParameterTypeDescription
id *string
pausedbooleanfalse to resume; defaults to true

top_up_loop

Add more posts YOU wrote to a loop's queue. Resumes a loop that paused because it ran out.

ParameterTypeDescription
id *string
posts *array

delete_loop

Delete a loop permanently.

ParameterTypeDescription
id *string