Ddconfig

作者 datadog-labs195f570c002b無授權條款17 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫5 週前更新

Configures or troubleshoots the plugin's Datadog MCP server. Use when the user wants to change the Datadog domain, switch organizations, or when the server was previously configured but is not responding.

AI 產生的概覽

設定或排解外掛的 Datadog MCP 伺服器,可變更其網域或組織。

功能
此技能引導代理檢查外掛 Datadog MCP 伺服器的狀態,並回報目前的連線資訊(使用者、組織、站點)。內容涵蓋已設定但無回應伺服器的排解、在註冊檔案中變更 MCP 網域,以及切換 Datadog 組織。它依賴隨附的參考檔案取得狀態檢查、註冊檔案位置、編輯規則與站點對網域的對應。
適用情境
當使用者想變更 Datadog 網域或站點、切換到其他 Datadog 組織,或先前已設定的 Datadog MCP 伺服器沒有回應時使用。
執行需求
需在可存取外掛 Datadog MCP 伺服器的代理環境中執行,包括 datadog://mcp/whoami 資源以及 /mcp、/reload-plugins 與 /ddsetup 指令。它會讀取並編輯 MCP 註冊檔案,並讀取隨附的 references/mcp-settings.md。不附指令碼,僅為說明。

Datadog MCP Server

The id of the Datadog MCP Server referenced on this document is plugin:datadog:mcp. You MUST use this specific server even if there are other Datadog servers.

Shared reference

This is a hard gate, not a suggestion. You MUST actually read references/mcp-settings.md [blocked] before proceeding and writing any user-facing text, asking any question, or performing any file edit suggested by this skill — even if you believe you already know its contents from a prior turn or a prior session. Do not answer from memory of Datadog site codes, domains, or file paths; the tables and path rules in that file are the only authoritative source, and they can differ from your general knowledge or from what you've seen in other contexts.

The references/mcp-settings.md file contains the datadog-server-state check, registration file location, editing rules, and site-to-domain mapping used by the flows below.

Entry flow

Check the datadog-server-state (see mcp-settings.md). Use the datadog://mcp/whoami resource on the plugin's Datadog MCP server as the MCP call (do NOT use any other Datadog MCP server). Do not output anything until the datadog-server-state and resource content are available, and proceed based on the results:

  • datadog-server-state=working and valid content — without any preamble, immediately show the user their current connection (from whoami): user name and email, organization name, and site (the dd_site value). Then let the user choose between using a different Datadog MCP domain or site or switching to a different Datadog organization.
  • datadog-server-state=not-setup — without any preamble, tell the user the plugin is not set up and instruct them to run /ddsetup, and stop.
  • datadog-server-state=not-working or not valid content — without any preamble, tell the user the server is configured but not working and go to the Troubleshooting Flow.

When communicating with the user below, describe the server state and actions in plain language. Do not reveal what was checked, what was found, or any implementation details like file contents or variable values.

Troubleshooting Flow

The server is configured but not responding. Read the current domain from the registration file (see mcp-settings.md for the file format and how to find the domain), then present the user with the likely causes — do not follow these sequentially, show them all and use judgment:

  • Domain issue. Compare the domain against the site-to-domain table in mcp-settings.md. Only flag it as suspicious if it looks like a typo or a clearly malformed URL (e.g. mcp.us5.datadog.com missing the hq). A domain not in the standard table is not necessarily wrong — the user may be using a valid non-standard domain.

  • Authentication. The authentication may have expired or was never completed, and the user needs to follow these steps:

    1. Run the command /mcp in Claude Code and select the plugin:datadog:mcp server
    2. Select the authentication option
  • Network or access. The user's network may be blocking the connection, or their Datadog account may not have API access, like not having the MCP Read permission.

If the domain looks wrong, suggest running the Domain Flow to correct it.

Domain Flow

Changes the Datadog MCP domain the server connects to.

  1. Show the current domain information (from whoami → dd_site if available, or from the current domain in the registration file — see mcp-settings.md for the file format). Present it in plain language (e.g. "the plugin is currently connected to …") — follow the "Stay on script" rule in mcp-settings.md.

  2. Ask for the new domain. Present the available sites and their MCP domains from mcp-settings.md, and ask which domain to switch to. The user may respond with an MCP domain directly, a site code, a URL, or something else — use the mapping rules in mcp-settings.md to resolve the answer. Ask for clarification if ambiguous.

    Follow the "Stay on script" rule in mcp-settings.md. In particular, do not preview the follow-up instructions from step 4 below (reload, re-authenticate, etc.) — that step emits them verbatim at the right moment.

  3. Edit the domain in the registration file following the editing rule in mcp-settings.md.

    Before (example):

    ${DD_MCP_DOMAIN:-mcp.datadoghq.eu}

    After (switching to us1):

    ${DD_MCP_DOMAIN:-mcp.datadoghq.com}

    Verify the edit before reporting success. Re-read the registration file at the exact path you derived and confirm the new MCP domain is present and the previous one is gone. Do not tell the user the domain has been changed until this re-read confirms it. If the file still holds the old domain, the edit landed somewhere else — re-derive the path using the rule in mcp-settings.md and apply the change again rather than reporting success.

  4. Tell the user the domain has been changed and to follow these steps:

    1. Run the command /reload-plugins
    2. Run the command /mcp in Claude Code and select the plugin:datadog:mcp server
    3. Select the "Clear authentication" option, then run /mcp again and select the plugin:datadog:mcp server
    4. Select the authentication option

Organization Flow

Switches to a different Datadog organization. The agent cannot do this automatically — the user must select the target organization in the browser.

Ask the user if they want to use an organization on the same domain or on a different domain.

  • If on the same domain:

    • The user needs to reauthenticate and, during sign-in, choose the target organization in the browser, using the following steps:
      1. Run the command /mcp in Claude Code and select the plugin:datadog:mcp server
      2. Select the "Clear authentication" option, then run /mcp again and select the plugin:datadog:mcp server
      3. Select the authentication option
  • If on a different domain:

    • Run the Domain Flow telling the user to choose the target organization in the browser during sign-in.

來源與署名

來源:datadog-labs/claude-code-plugin位於skills/ddconfig提交195f570

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架