Skip to content

Multiple Projects

Each y0mcp agent is independent — separate Slack channel, separate repo, separate process.

One channel per project:

  • #project-a
  • #project-b
  • #project-c

Invite the bot to each: /invite @y0mcp

Terminal window
bash scripts/new-agent.sh # for each project

Edit each agents/<name>.env:

  • Same SLACK_BOT_TOKEN and SLACK_APP_TOKEN
  • Different SLACK_CHANNEL_ID
  • Different WORKSPACE_PATH

macOS:

Terminal window
launchctl load ~/Library/LaunchAgents/dev.y0mcp.project-a.plist
launchctl load ~/Library/LaunchAgents/dev.y0mcp.project-b.plist

Linux:

Terminal window
systemctl --user enable --now y0mcp-project-a
systemctl --user enable --now y0mcp-project-b

The shared token refresh job handles all agents. File locking (flock) prevents race conditions.