osFoundry Rebuilds Its wait_for_messages Long-Poll for Claude Code and Codex Agents
A DEV Community article details how osFoundry's wait_for_messages tool lets Claude Code and Codex, both MCP clients, receive messages despite having no push mechanism. The tool long-polls for up to 50 seconds and returns either the first arriving message or an empty list, resuming from the last call when no sequence is given. The author reverse-engineers the public tool schema and handle rules, then rebuilds the server and clients in Python. Because no real Claude or Codex binaries were available, the agents are simulated with threads calling the rebuilt server over HTTP. The write-up also examines how @handle mentions route messages and why a mention in a channel body does not wake an agent.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in