@iflow-mcp/nearestnabors-assa
v0.2.0
Published
Anti-Social Social Agent - MCP server for Twitter with rich UI components
Readme
ASSA lets you get timeline digests and have conversations with people on X (formerly Twitter)via rich UI components. Built for Goose and other MCP-compatible AI agents.
What is ASSA?
ASSA reclaims your social life by moving your activity off of algorithm driven sites and apps and into your personal agent, where you control the flow and decide how to engage. Enjoy:
- Digest tell you what's happening without opening any social app. Let your agent filter spam, ads, and hate speech!
- Have conversations right in your agent's interface, no need to open the X app or site.
Features
- 🔐 Safe authorization via Arcade: Access you social accounts with sharing your password with an agent (or accidentally committing it, oops!)
- 📊 Interactive interface: Mentions displayed with avatars, text. Respond right there!
- 🔁 You're in control: Nothing posts without your explicit approval
Installation
Prerequisites
- Goose (or another MCP-compatible agent)
- Arcade.dev API key
Setup
Get your Arcade API key at arcade.dev
Clone and install:
git clone https://github.com/nearestnabors/assa cd assa bun install bun run buildAdd to Goose App (recommended—Goose CLI can't display interactive UI!)
- In Goose's sidebar, go to Extensiions
- Select "+ Add Custom Extension"
- Add the command:
node PATH TO ASSA FOLDER/dist/index.js - Add Environment variables
ARCADE_USER_ID(the email you signed up to Arcade with) andARCADE_API_KEY(get your Arcade API key here - Select "Add Extension"
How to use
Check X Activity
Check my X mentions from the last 24 hoursGet Timeline Digest
Show me a digest of my X timeline from the past 24 hoursNote: Timeline digest requires Chrome running with remote debugging. See Timeline Digest Setup below.
Post a Tweet
Post a tweet: "Just shipped a new feature! 🚀"Reply to Someone
Reply to @anthropic_devs saying I'll share slides after the talkTimeline Digest Setup
The timeline digest feature accesses your "Following" timeline using your existing browser session and Playwright. This is free (no API costs) and uses your logged-in state. (An API would be more robust, but X only makes timeline API functionality available to industrial developers who can afford extortionate fees. So here we are, as hobbyists.)
Prerequisites
- Google Chrome installed
- Logged into X in Chrome
Start Chrome with Remote Debugging
Before using timeline digest, start Chrome with the remote debugging port:
Mac:
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222Windows:
"C:\Program Files\Google\Chrome\Application\chrome.exe" --remote-debugging-port=9222Linux:
google-chrome --remote-debugging-port=9222Then make sure you're logged into X in that browser window. (I keep one open and minimized on startup.)
Goose Recipe
ASSA includes a recipe for scheduled timeline digests:
| Recipe | Description |
| -------------------- | ------------------------------------------------------------------------------- |
| x-news-digest.yaml | Daily digest of your Following timeline (requires Chrome with remote debugging) |
Import the Recipe
Option 1: Generate a Deep Link
goose recipe deeplink recipes/x-news-digest.yamlThis outputs a goose://recipe?config=... URL. Paste it in a browser to import into Goose Desktop.
Option 2: Import in Goose Desktop
- Open Goose Desktop
- Click Recipes in the sidebar
- Click Import Recipe or browse for file
- Choose
recipes/x-news-digest.yamlfrom the Recipe File input field
Option 3: Run via CLI
goose run --recipe recipes/x-news-digest.yamlSchedule the Recipe
After importing, on the Recipes screen:
- Click the clock icon next to the recipe
- Select the frequency and time in the Add Schedule modal
- Click Save
Note: Requires Chrome running with --remote-debugging-port=9222.
Tools
| Tool | Description |
| ------------------------ | ------------------------------------------------------- |
| x_auth_status | Check authentication, show connect button if needed |
| x_conversations | Show unreplied mentions as a conversation inbox |
| x_dismiss_conversation | Dismiss a conversation (reappears on new activity) |
| x_draft_tweet | Create draft with preview |
| x_post_tweet | Post after approval |
| x_timeline_digest | Fetch and summarize your Following timeline (past 24h) |
| x_show_tweet | Display a single tweet as a rich card with reply option |
Development
# Run in development mode (auto-reload)
bun dev
# Type check
bun typecheck
# Lint check
bun check
# Run tests
bun test
# Run tests in watch mode
bun test:watch
# Build for production
bun run buildTesting
ASSA uses Bun's built-in test runner with Jest-compatible syntax.
Running Tests
# Run all tests
bun test
# Run tests in watch mode (re-runs on file changes)
bun test:watch
# Run a specific test file
bun test src/__tests__/utils/time.test.ts
# Run tests matching a pattern
bun test --grep "snowflake"Test Structure
Tests are located in src/__tests__/ mirroring the source structure:
src/
├── __tests__/
│ ├── state/
│ │ └── manager.test.ts # State management tests
│ ├── tools/
│ │ └── dismiss-conversation.test.ts
│ └── utils/
│ └── time.test.ts # Time utility tests
├── state/
│ └── manager.ts
├── tools/
│ └── ...
└── utils/
└── time.tsWriting Tests
Create a .test.ts file in the appropriate __tests__ subdirectory:
import { describe, expect, test } from "bun:test";
import { myFunction } from "../../utils/my-module.js";
describe("myFunction", () => {
test("does something expected", () => {
const result = myFunction("input");
expect(result).toBe("expected output");
});
});Mocking
Use mock.module() to mock Node.js modules:
import { mock } from "bun:test";
// Mock before importing the module that uses it
mock.module("node:os", () => ({
homedir: () => "/tmp/test-home",
}));
// Now import your module
import { myFunction } from "../../state/manager.js";Test Isolation
When testing stateful modules, use unique IDs and clean up between tests:
import { beforeEach } from "bun:test";
let testCounter = 0;
function uniqueId(prefix: string): string {
return `${prefix}_${Date.now()}_${++testCounter}`;
}
beforeEach(() => {
clearState(); // Reset shared state
});Getting an Arcade API Key
- Go to arcade.dev
- Create an account
- Navigate to API Keys
- Create a new key
- Add it to your
.envfile
Architecture
Goose (MCP Client)
│
│ MCP Protocol
▼
ASSA MCP Server
│
│ HTTPS
▼
Arcade.dev
│
│ OAuth + API
▼
XRoadmap
Completed
- [x] Migrate to React components
- [x] Custom CSS design system (9 color palettes, semantic tokens)
- [x] Timeline digest via Playwright browser automation
- [x] Goose recipe for scheduled digests
Next Steps
- [ ] Make the "reply UI" smaller:
- [ ] Add small "dismiss" and "reply" icons in the lower left corner of each card
- [ ] Clicking "reply" replaces icons with input area and reply button
- [ ] Clicking outside closes the UI and brings back the icons
Future
- [ ] Add
X.GetMutedUsersto Arcade to filter muted accounts from conversations - [ ] Add media expansion to Arcade to show images in tweets
- [ ] VIP accounts feature (track specific users)
- [ ] If a Tweet is a reply, show the original tweet as a stylized quote above the comment
- [ ] If a tweet quotes another tweet, show the quoted tweet below the comment
Known Limitations
- No DM support — Arcade's X integration doesn't include DM access
- 7-day limit — X search only goes back 7 days
Credits
Built for MCP Connect 2026 by RL Nabors.
Uses:
