The second batch: connect your AI assistant to Discuss 
Discuss was updated again this afternoon, and is running everything merged for 2.1 since the last update (
Dev Diary - Flarum 2.1 cycle / 5), with one new thing we'd really like you to try.
Try it: your AI assistant, on Discuss
Flarum 2.1 brings a new bundled extension, MCP (flarum/framework5354). It lets AI assistants that speak the Model Context Protocol (Claude, ChatGPT, Gemini, Cursor, VS Code and many others) use a forum with your account. It's switched on here, so you can connect your assistant to Discuss right now.
Once connected, you can ask your assistant things like:
- "What's new on Discuss today?"
- "Find discussions about upgrading from Flarum 1.x and summarise the common problems."
- "Read my unread notifications and tell me what needs a reply."
- "Draft a reply to the latest post in my extension's discussion."
How it works:
- It uses your account, with exactly your permissions. It can't see or do anything you couldn't do yourself on the forum.
- No API keys or passwords. You sign in to Discuss and approve the assistant on a consent screen, the same way "Sign in with…" works on other sites.
- You stay in control. Your Security page lists every assistant you've connected, when it was last used and from where, with a button to revoke it.
- What you post through it is posted as you, so read what your assistant suggests before letting it post. Most assistants ask before they write.
Setting it up
Everything uses the same address: https://discuss.flarum.org/mcp. When your assistant opens Discuss, sign in if you need to, then select Authorize.
Claude (claude.ai, Claude Desktop and the mobile apps)
- Open Settings → Connectors (Customize → Connectors on some plans), and select Add custom connector.
- Name it "Flarum Discuss", paste the address, and select Add.
- Select Connect, then approve it on Discuss.
Custom connectors work on every Claude plan, including Free (which allows one). On Team and Enterprise plans, an owner adds the connector first, and members then connect their own accounts.
Claude Code
claude mcp add --transport http flarum-discuss https://discuss.flarum.org/mcp
Then run /mcp, choose flarum-discuss and sign in.
ChatGPT (paid plans)
- Open Settings → Apps & Connectors (Connectors in some versions) → Advanced settings, and switch on Developer mode.
- Back in Apps & Connectors, select Create. Name it "Flarum Discuss", paste the address, and choose OAuth for authentication.
- Approve it on Discuss, then turn it on for a chat from the tools menu.
On Business and Enterprise plans, an admin may need to allow custom connectors first.
Gemini CLI
Add this to ~/.gemini/settings.json:
{
"mcpServers": {
"flarum-discuss": {
"httpUrl": "https://discuss.flarum.org/mcp"
}
}
}
Restart Gemini CLI. It opens Discuss to sign in; if it doesn't, run /mcp auth flarum-discuss. If the Gemini app offers to add a custom app or MCP server on your plan, the same address works there too.
VS Code (GitHub Copilot)
Add this to .vscode/mcp.json, then select Start above the server:
{
"servers": {
"flarum-discuss": {
"type": "http",
"url": "https://discuss.flarum.org/mcp"
}
}
}
Cursor
Add this to ~/.cursor/mcp.json, then connect it in Cursor's settings under MCP (Tools & Integrations in newer versions):
{
"mcpServers": {
"flarum-discuss": {
"url": "https://discuss.flarum.org/mcp"
}
}
}
Anything else: any client that supports remote MCP servers with OAuth should work with the same address. Discuss tells it how to sign you in.
Tell us how it goes
This is the first time MCP has run on a busy forum, and we'd love your feedback in this discussion:
- what you asked, and whether the answer was useful;
- anything it couldn't do that you expected it to;
- anything that went wrong, with the assistant you used.
Follow-ups from our own testing have already landed: flarum/framework5366, flarum/framework5367, flarum/framework5368, flarum/framework5369, flarum/framework5374 and flarum/framework5377.
For forum admins
When you run 2.1, MCP is yours to switch on:
- "Connect AI assistants (MCP)" is a permission, given to members by default. Give it to guests as well to let assistants read your forum without signing in.
- What an assistant is told about your forum, and which tools it gets, follows the member's permissions: a member who can't moderate isn't told how to, and one who can is.
Sign in to other sites with your forum account
MCP signs assistants in through the second new extension, OAuth Provider (flarum/framework4623). It turns a forum into an OAuth 2.0 and OpenID Connect provider, so other sites and apps can offer "Sign in with" your forum too.
- Applications you add get a client ID, and a secret if they can keep one.
- Applications that register themselves, as AI assistants do, are listed on their own tab and marked as unverified on the consent screen. A switch for each kind turns them off (flarum/framework5382).
- Each application shows how many members connected it and when it was last used. The count opens the admin user list filtered to those members.
- Members see their connected applications on their Security page, listed like their browser sessions. They can revoke one or all of them, and Global Logout disconnects them too (flarum/framework5384).
- "Connect applications to their account" is a new permission, given to members by default. Suspended members lose it while they're suspended, so their applications stop working until the suspension ends (flarum/framework5383).
- With GDPR, a member's export lists the applications they connected, and erasing their account disconnects them. With Audit, connecting and disconnecting applications, and changes to clients, are logged (flarum/framework5387).
A foundation for AI features
The third new extension, AI (flarum/framework5111), isn't switched on here yet, and doesn't give members an AI feature on its own. It gives Flarum and extensions one place to connect AI providers and keep their cost under control:
- Connections to Anthropic, OpenAI, Gemini, Mistral, Groq, DeepSeek, xAI, OpenRouter, Ollama or any OpenAI-compatible server, each with a default model and a monthly token limit.
- API keys are write-only, kept out of settings, and never sent back to the admin panel.
- Every call is recorded: which feature, who it was for, the model and the tokens, never the prompt or the reply.
- Token limits per connection each month, per feature and per member each day, and for all guests together.
Group conversations
Private messages can now go to several people at once, which starts a group conversation (flarum/framework5347).
- Members can leave a group, and the conversation says when someone leaves.
- An admin can let members name groups. Unnamed groups are titled by their members.
- "Recipients per message" sets the largest group, 10 by default. Setting it to 1 turns groups off.
Admin panel
- Settings pages have tabs and sections (flarum/framework5346). The core Basics, Appearance, Mail and Advanced pages and the bundled extensions use them, and an extension's page opens with General and Permissions tabs. Admin search results take you to the right tab (flarum/framework5361, flarum/framework5385).
- The user list shows every search filter as a chip, and its search goes in the address, so other pages can link to a filtered list (flarum/framework5381).
- Search filter suggestions filter better as you type, and picking one replaces what you'd typed more reliably (flarum/framework5225). Thanks to @huoxin233.
- The Extension Manager can safely resume or roll back an update that was cut off part-way, and "Check now" is always a button (flarum/framework5370, flarum/framework5308). Thanks to @ernestdefoe.
Fixes
- A signed-in member's chosen colour scheme is used from the first paint, without a flash of the other one (flarum/framework5331), and a guest's choice carries over when they sign up (flarum/framework5330).
- Searching the forum from the browser's address bar works when the homepage isn't the discussion list, handles spaces, and works in Chrome with a large favicon (flarum/framework5328, flarum/framework5386).
- Changing a discussion list's filter quickly no longer shows the previous filter's results (flarum/framework5325). Thanks to HawkForge, and to @rafaucau for the report.
- Posts listed on profiles and the posts page have their spacing back, and "Load more" is centred (flarum/framework5332). The "…" icon in the phone header is centred (flarum/framework5329).
- Mentions no longer need the Tags extension installed (flarum/framework5326). Thanks to HawkForge.
- Translations: the cache is rebuilt safely when several processes or servers do it at once, and edited translation files are picked up in debug mode (flarum/framework5132, flarum/framework5351, flarum/framework5352, flarum/framework5353). Thanks to @ernestdefoe.
- Screen readers: the post stream and post avatars no longer trip accessibility checks (flarum/framework5342, flarum/framework5343). Thanks to @Karl.
- The API finds nothing for a user or discussion id that isn't a number, rather than an error, and ids in API paths are decoded (flarum/framework5378, flarum/framework5380).
Faster discussion pages
When a discussion is the first page someone opens, the browser now fetches the code that shows its posts alongside the main bundle, instead of after it (flarum/framework5333). On a fast 4G connection, posts appear about 70 ms sooner.
For extension developers
- Settings sections and tabs:
Extend.Admin().section() and .tab(), and a section key on settings (flarum/framework5346). Pages that override content() keep their own layout.
- MCP: the
Mcp extender adds tools, resources and prompts, instructions for assistants, and abilities to report (flarum/framework5354).
- OAuth: the
Scope and Resource extenders add scopes and protect your own API with the forum's tokens, and TokenValidator checks them. The extension dispatches events when members connect and disconnect applications, and when clients change (flarum/framework4623, flarum/framework5387).
- AI:
Extend\Ai registers a feature, and calls made for it are metered and limited (flarum/framework5111).
- Preloading:
Document::preloadChunk() has the browser fetch one of your chunks with the page (flarum/framework5333).
- Typings: the s9e Text Formatter is typed, so you no longer need to type it yourself (flarum/framework5337). Thanks to @davetodave178.
- Tests: edited translation files are picked up in debug mode, which extension test suites run in (flarum/framework5352). Frontend CI runs only your package's own Jest tests, not core's as well (flarum/framework5336).
Docs for all of this will go live with 2.1. Until then, the pull requests above have the details, and this discussion is the place for questions and feedback.