productivity
Discourse MCP, CLI, and Lua Integration for AI Agents
Discourse integration docs for AI agents: MCP gateway setup, Discourse CLI commands, Lua API reference, credentials, and function schemas.Discourse for agents
Credentials can be configured manually in web or CLI hosts.
Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.
Agent Surfaces
Machine-Readable Metadata
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
discourse.discourse_list_topics | Read read | 1 | List the latest topics from the Discourse forum. Returns topic titles, categories, and activity metadata. |
discourse.discourse_get_topic | Read read | 1 | Get a single Discourse topic by ID, including its posts, author, and metadata. |
discourse.discourse_create_topic | Write write | 4 | Create a new topic in a Discourse category. Requires a title, body content (Markdown), and category ID. |
discourse.discourse_update_topic | Write write | 3 | Update an existing Discourse topic's title or move it to a different category. |
discourse.discourse_list_categories | Read read | 0 | List all categories on the Discourse forum. Returns category names, IDs, descriptions, and parent relationships. |
discourse.discourse_get_category | Read read | 1 | Get a single Discourse category by ID, including its recent topics and metadata. |
discourse.discourse_create_post | Write write | 2 | Reply to an existing Discourse topic with a new post. Provide the topic ID and body content in Markdown. |
discourse.discourse_get_current_user | Read read | 0 | Get the currently authenticated Discourse user profile. Useful for verifying API credentials and identifying the user context. |