Discourse MCP is here!

,

@falco do you accept PRs? While the discourse MCP has a tool to create new categories, there is no permissions argument.

I could submit the following PR:

Proposed Changes for Discourse

src/tools/builtin/create_category.ts

  • Update zod schema to accept an optional permissions field.

    • Type: z.record(z.string(), z.number()).optional().

    • Description: Map of group names to permission levels.

    • Format: { "group_name": permission_type_int }

    • Permission type values (from Discourse schema):

      • 1: full (See, Reply, Create)

      • 2: create_post (Reply only)

      • 3: readonly (See only)

  • Pass permissions in the payload to client.post('/categories.json', payload).