Home / Work / Slackbot ↔ Codex Plugin via MCP
Agentic / MCP · Proof of conceptSlackbot ↔ Codex Plugin via MCP
Shows Slackbot can reach a customer's own plugin and act on it, without opening an inbound path into anyone's machine.
Status
Active sales cycle
Call to demo
Same day
The need
A major enterprise software company had built a Codex plugin and wanted it usable from Slack.
What I built
An MCP server on AWS Lambda that queues each request to a Mac worker, which runs the customer's installed Codex plugin read-only through a closed allowlist and replies in Slack. The Mac only makes outbound connections: no tunnel and no open ports.
Architecture (client details redacted)
How it works
- The path: Slackbot calls an MCP server on AWS Lambda, which puts a job on an SQS queue. A worker on a Mac, running as a LaunchAgent, picks the job up and runs it through Codex and the plugin, and the reply goes back to Slack. DynamoDB holds the job state.
- No inbound connections: the Mac only makes outbound calls to AWS, so there is no tunnel and no open port to defend, which is a smaller surface for a security review.
- Security gating: Slack request signatures are verified (HMAC, with a five-minute replay window). The machine is chosen from the verified Slack user ID, never from anything the caller types. Codex runs read-only, and the plugin exposes a closed allowlist of ten actions. Out-of-scope requests are rejected and logged in the Codex session.
- Audit trail: each request creates a Codex session that shows up in the desktop app, and the session ID appears in the Slack reply, so a reviewer can see what was asked, what was done and what was refused.
- Async pattern: Slack gives a tool call about 40 seconds. If the Mac finishes in time, the answer comes back in the same reply; otherwise a Check status button picks it up, so nobody watches a spinner.
- The real plugin: the worker calls the customer's actual installed plugin, not a stand-in. The plugin belongs to the customer, so this page describes only the pattern.
What I learned, and what is not claimed
- Typical runs take about 8 to 15 seconds, with a median around 11 seconds. I did not measure a direct-Codex baseline, so no latency difference is claimed either way.
- Limits: the Mac has to be online and signed in to AWS. An expired AWS login silently stalled jobs until I signed in again, which is exactly the kind of operational question a reviewer should ask.
- What I learned: with five connectors, Slackbot got confused and called tools that did not exist. A narrow, closed tool list fixed that.
- This is a demo, not a production deployment, and there are no usage or adoption numbers.
Node.jsMCPAWS LambdaSQSDynamoDBSSMIAMCodex CLImacOS LaunchAgentSlack manifest and CLI
More work
- Slackbot + Tableau Next Pre-Call Brief
- Conversational Slack Analytics
- Slack ↔ Salesforce Case Sync
- Live Event Engagement App
Want to talk about something like this? Get in touch or ask the agent.