האם קיים פרוטוקול הקשר של מודל דיסקורס רשמי (MCP)?

עבור מקרה השימוש שלנו, אנו למעשה מחפשים תיעוד של discourse-dev MCP. כך, אנו רוצים לוודא שאנו עומדים בסטנדרטים העדכניים ביותר של פיתוח ובכללים הספציפיים של discourse כדי לבצע שינויים קטנים ברכיבי ערכות נושא (ואולי אף תוספים).

4 לייקים

I published a first revision of this:

{
  "mcpServers": {
    "discourse": {
      "command": "npx",
      "args": ["-y", "@discourse/mcp@latest"],
      "env": {}
    }
  }
}

4 לייקים

{
  "mcpServers": {
    "discourse": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@discourse/mcp@latest", "--site", "https://meta.discourse.org", "--default-search", "#developer-guides"],
      "env": {}
    }
}

Its not quite perfect cause it does not support “falling back” to the entire forum, but it achieves a most of the task you presented.

Particularly --site can be used to tether the mcp to a single discourse site and --default-search can be used to ground the search with specific keywords.

2 לייקים

@sam

Would you prefer future suggestions posted


Question:

I know some users would prefer not to have their post made available to an AI as they did not op in for this. I checked user preferences for this and did not find any.

This is what I see for my Discourse OpenAI account

Sorry if this turns into a heated topic and/or possibly change to the Discourse core code; better to resolve now rather than latter.

If this does turn into a discussion, please move to a new topic so others have an opportunity to see it.

For now as I am moving quite fast this is probably a good approach, though I don’t mind if you maintain a list in the OP

This is not a setting we have and really to me this is more of a decision of forum admins vs end users on the forum. Once info is public there is no protocol for “making content available to search engines / humans and no ai” so I would not even know where to start there.

5 לייקים

In the end all the big AI companies probably have swallowed any content they can get their hands on for training purposes anyway. So whatever content we post here, they already processed and used it.

FYI a closing } is missing in your mcp json

לייק 1

@sam when I use your JSON with the developer-guides args, no tools are available. See screenshot below, tested with augment code:

מצטער, איך אני משחזר את הבעיה הזו?

Steps:

  1. Add the “regular” MCP to your tool of your choice:
{
  "mcpServers": {
    "discourse": {
      "command": "npx",
      "args": ["-y", "@discourse/mcp@latest"],
      "env": {}
    }
  }
}
  1. Add the “discourse-dev” MCP:
{
  "mcpServers": {
    "discourse": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@discourse/mcp@latest", "--site", "https://meta.discourse.org", "--default-search", "#developer-guides"],
      "env": {}
    }
}
}

The “discourse-dev” MCP with the additional arg’s isn’t providing any of the tools as the regular MCP does.

I hope that does make sense :thinking:

רגע, אתה מנסה להוסיף את ה-MCP פעמיים?

לייק 1

כן, הוספתי אותם פעמיים, אבל עם שמות שונים, אחרת קוד ה-augment היה זורק שגיאה בעת הוספתם שהשם כבר בשימוש.
אותה בעיה מופיעה כאשר אני מוסיף רק את ה-MCP של “discourse dev docs” מבלי לשנות את שמו, אין כלים זמינים.

Closing the loop here: MCP is out!

5 לייקים