Skip to content

D2-2690: Update plugin for latest MCP deploy - #51

Merged
max-mitchell merged 3 commits into
mainfrom
d2-2690-vault-and-tool-sync
Oct 26, 2026
Merged

max-mitchell merged 3 commits into
mainfrom
d2-2690-vault-and-tool-sync

Conversation

@max-mitchell

@max-mitchell max-mitchell commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Issue https://github.com/dtwoai/d2/issues/2690

Update the claude plugin to use the new vault and policy catalog tools from the MCP server.

@nicobatalla nicobatalla left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ran a review locally, codex had some findings. I think the gateway scope one looks legit


**Adding a secret.** No tool accepts a secret's value, so the user always types it into the Hub:

1. Check `dtwo-list-vault-entries` with the `name` first. If an entry exists, reuse it.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Searching by name returns entries across gateway scopes. If gateway A owns GITHUB_TOKEN, this instruction tells the agent to reuse it for gateway B, where it cannot resolve. Please check the returned scope before reusing an entry: it must be account-wide or belong to the target gateway. If the only matches belong to other gateways, create an entry for the target gateway.


**Plain entries.** For a non-secret value used by several configs (an upstream URL, a timeout), `dtwo-create-vault-entry` stores it as given. A reference resolves to a string, so it can't fill a numeric or boolean field yet.

**Changing a value.** Running gateways keep the old value until they are next deployed, so offer a redeploy after a value changes.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please distinguish gateway config values from sidecar values here. Deploy applies rotated values to gateway configuration, but it does not rewrite the sidecar .env. A sidecar keeps using the old credential until Update or Restart. Since this section also covers sidecar references, the agent should direct the user to Update or Restart when the changed entry is used by a sidecar.

@max-mitchell
max-mitchell merged commit eb9d172 into main Oct 26, 2026
5 checks passed
@max-mitchell
max-mitchell deleted the d2-2690-vault-and-tool-sync branch October 26, 2026 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants