Skip to content

Add scoped DiscordPHP connector for Codex MCP chats - #1

Merged
valzargaming merged 5 commits into
mainfrom
scoped-discord-mcp
Oct 12, 2026
Merged

valzargaming merged 5 commits into
mainfrom
scoped-discord-mcp

Conversation

@valzargaming

@valzargaming valzargaming commented Oct 12, 2026 •

Copy link
Copy Markdown
Member

Codex can inspect explicitly authorized Discord channels through a local PHP MCP server using a Discord bot identity. This adds bounded guild/channel discovery, message lookup, history and literal search, with optional scoped send/edit tools and Discord acknowledgement receipts.

Uses the official mcp/sdk v0.4.0 and released discord-php/http v10.9.8. Credentials stay in private files or environment; an existing dotenv file can supply a single selected credential without importing other settings. Bot identity, guild/channel allowlists, disabled mentions, stale-edit checks and uncertain-write errors enforce the access boundary. Local stdio does not automatically provide cloud access or human-account actions.

Validation: 14 offline PHPUnit tests / 44 assertions; real SDK stdio initialization, tool listing, successful calls and scope-error responses; injected 429 retry and authentication/error redaction checks. CI runs PHP 8.3–8.5 on Linux and Windows, including Composer validation and formatting. No live Discord messages or deployment.

Authorized live verification: bot identity and channel discovery for three user-selected guilds, plus real read-only MCP initialization, tool discovery, guild reads and out-of-scope denial. Sending/editing remained disabled. Delayed offline fixture responses cover the SDK/ReactPHP scheduler boundary.

@valzargaming
valzargaming marked this pull request as ready for review October 12, 2026 14:29
Copilot AI balanced review requested due to automatic review settings October 12, 2026 14:29
@valzargaming
valzargaming merged commit 0b97593 into main Oct 12, 2026
12 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants