universal-social
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| X_API_KEY | No | X OAuth 1.0a user-context API key, required only when publishing live to X. | |
| US_DB_PATH | No | Path to the SQLite database file instead of the default ~/.universal-social/social.db. | |
| US_DATA_DIR | No | Directory used to store the local SQLite data instead of the default ~/.universal-social. | |
| US_X_PUBLISH | No | Set to "live" to enable publishing to X. Publishing is off/dry-run by default. | |
| X_API_SECRET | No | X OAuth 1.0a user-context API secret, required only when publishing live to X. | |
| X_ACCESS_TOKEN | No | X OAuth 1.0a user-context access token, required only when publishing live to X. | |
| X_ACCESS_TOKEN_SECRET | No | X OAuth 1.0a user-context access token secret, required only when publishing live to X. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Local, site-less social network ranked by the X algorithm. Read-only adapters pull posts in; the only public output is X, and only through queue_for_x -> approve_post. Never call approve_post without the account owner's explicit approval of that exact text.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| statusA | Show the database path, owner, pinned x-algorithm version, X publisher mode, and counts. |
| seed_demoA | Create the owner account, three demo users, follows and sample posts (local only). Safe to run twice. |
| create_userA | Create a local account (no sign-up, no password; it exists only in this local DB). |
| list_usersB | List local accounts. |
| list_adaptersC | List the network adapters (universal input layer), their status, and options. |
| ingestA | Pull public posts in from another network through a read-only adapter (bluesky or mastodon) and store them locally so they can be ranked. Never posts anywhere. |
| compose_postA | Write a native post (stored locally). Optionally also put it in the X approval queue; it is still not posted until approve_post. |
| followB | Follow an account (local or imported) so its posts are in-network. |
| unfollowC | Stop following an account. |
| muteB | Mute an account (its posts are filtered out). |
| likeB | Like a post (local signal only). |
| repostA | Repost inside universal-social (local only; use queue_for_x to share on X). |
| not_interestedA | Mark a post not interested (removes it and lowers that author). |
| mute_wordC | Hide posts containing a word or phrase. |
| threadB | Show a post and its replies. |
| rank_feedA | Rank the For You feed for a user with the X algorithm weights (pinned version unless "version" is given). Returns ranked posts with scores. |
| why_thisB | Explain why a post ranked where it did: source, each filter, every scoring head (prediction x weight), author-diversity and out-of-network multipliers, final rank. |
| algo_versionsB | List the x-algorithm ranking versions this app knows (one per upstream commit that changed a ranking parameter). |
| algo_changelogA | Changelog of every x-algorithm ranking-parameter change (old -> new), with plain-English notes from fitzyracing1/x-algorithm-changelog where available. |
| algo_compareA | Rank the same feed under two x-algorithm versions and show how each post moved (old weights vs new weights). |
| pin_versionB | Pin the x-algorithm version the feed ranks with ("latest" follows the newest synced version). |
| queue_for_xA | Add a post to the X approval queue. Your own posts go out as written; posts from other people/networks become an attributed quote with a link to the original. Nothing is posted until approve_post. |
| queue_changelogA | Queue an x-algorithm changelog entry as an X post (like @XAlgoChangelog). Still needs approve_post. |
| list_queueB | List X queue items, optionally by status (pending, approved, rejected, posted, failed). |
| approve_postA | Approve one queued item and publish it to X. Only call after the account owner explicitly approved this exact text. In dry-run mode (default) nothing is sent and the item stays approved; it is sent when approved again in live mode. |
| reject_postB | Reject a queued item so it can never be posted. |
| action_logB | Read the append-only, hash-chained action log (newest first) and verify the chain. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 27 tools
Most tools target a distinct resource+action: ranking (rank_feed, why_this, algo_compare), adapters (list_adapters, ingest), and the X queue (queue_for_x, approve_post, reject_post, list_queue) are cleanly separated. The main risk is compose_post vs queue_for_x vs repost vs queue_changelog, plus the mute/mute_word/not_interested cluster, but the descriptions explicitly disambiguate each of these.
The dominant convention is verb_noun (create_user, list_users, rank_feed, pin_version, approve_post, reject_post, queue_for_x), with a coherent algo_* prefix family. However a substantial minority are bare nouns or unqualified verbs (status, thread, action_log, ingest, follow, mute, like, repost), and the list_ prefix is applied to only two of the four listing tools (list_users, list_adapters, list_queue yes, but algo_versions and status are not list_*).
27 tools exceeds the comfortable range, though the server genuinely spans four sub-domains (local social graph, ingest adapters, X-algorithm ranking, X publishing queue). Several tools are narrow single-purpose probes (status, why_this, algo_versions, algo_changelog, action_log) that push the surface toward heavy without being obviously redundant.
The core lifecycle is covered—users, posts, follows, feed ranking, algorithm versioning, and a full queue lifecycle (queue, list, approve, reject)—but notable gaps remain. mute and mute_word have no unmute counterpart, and there is no delete/edit for users or posts, leaving several dead ends an agent cannot undo.