feat: support a second Datadog organization (two org slots)#19
feat: support a second Datadog organization (two org slots)#19IliaFeldgun wants to merge 1 commit into
Conversation
Add a second MCP server entry (plugin:datadog:mcp-2) so the plugin can connect to two Datadog organizations at once, each with its own OAuth session. Slot 2 defaults to not-setup and stays inert until the user adds a second org, so single-org installs are unaffected. Slot 2's URL carries a distinguishing org_slot=2 query param so same-domain slots keep unique URLs. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Thank you for the idea and PR. I see it is still in draft, but I couldn’t resist taking a look. I think the idea has merit, but one concern comes to mind around server selection when multiple identical (same tools, instructions, ...) Datadog servers are enabled simultaneously. For example, if a user asks:
it may be ambiguous which server should handle the request. In practice, this means one of three things needs to happen:
The third option worries me a bit because different prompts within the same conversation could end up being routed to different servers. This could lead to inconsistent results, fragmented context, or situations where the agent appears to “switch environments” midway through a session without the user realizing it. Have you thought about how server selection would work once both servers are active? Another angle, I suspect this may place additional burden on the agent as well, since it would need to continuously infer which environment/server the user intends to interact with. Even if the initial request is routed correctly, maintaining that choice consistently across a long conversation may be challenging. |
|
Thank you for your reply, Transitioning repos is where it becomes confusing (using Claude right now, inherent issue that is not unique to this plugin in my opinion). First things I plan:
Ideas about your concerns: First time: Asks but I have no guarantee User asked for second slot: Will usually stay in slot unless can't find data User asks which slot is service foo: generally successful. User asks "/ddtoolsets add profiling": somewhat bugged So in general this is reliable as long as claude has a single path (i.e. user knows which slot foo is) I believe "The agent must ask a clarifying question."
PS frankly trying to find a way to unit test SKILLS online, but no idea, this PR is AI but this comment isn't 🔢 |
Draft if anyone needs, probably adding support to n orgs

Add a second MCP server entry (plugin:datadog:mcp-2) so the plugin can connect to two Datadog organizations at once, each with its own OAuth session. Slot 2 defaults to not-setup and stays inert until the user adds a second org, so single-org installs are unaffected. Slot 2's URL carries a distinguishing org_slot=2 query param so same-domain slots keep unique URLs.
What does this PR do?
Checklist