Skip to content

Support DeployAgentTools[All] for deploying to every supported client#177

Merged
rhennigan merged 8 commits into
mainfrom
feature/deploy-all
May 6, 2026
Merged

Support DeployAgentTools[All] for deploying to every supported client#177
rhennigan merged 8 commits into
mainfrom
feature/deploy-all

Conversation

@rhennigan
Copy link
Copy Markdown
Member

Summary

  • Add DeployAgentTools[All, ...] to deploy to every client in $SupportedMCPClients in a single call
  • Each client receives its configured default toolset when server is Automatic ("WolframLanguage" for coding clients, "Wolfram" for chat clients); pass an explicit second argument to override
  • Clients with existing deployments are skipped (returning Missing["DeploymentExists", target]) and a DeploymentsExistWarning is emitted; use OverwriteTarget -> True to replace them
  • Updates README.md and docs/deploy-agent-tools.md with the new syntax, behavior, and a "Deploying to All Clients" section

Test plan

  • TestReport passes for Tests/DeployAgentTools.wlt, including the new All-target tests covering:
    • per-client Automatic toolset resolution
    • explicit server override applied to every client
    • OverwriteTarget -> True replacing existing deployments
    • Missing["DeploymentExists", ...] entries for skipped clients
    • AgentTools::DeploymentsExistWarning emitted when at least one client is skipped
  • CodeInspector reports no new issues on changed files

🤖 Generated with Claude Code

rhennigan and others added 3 commits May 6, 2026 11:39
…ent.

Skips clients with existing deployments and emits a warning when any are
skipped, so a single call can populate fresh installs without erroring on
already-deployed targets.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…d client.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Cover the new All-target behavior: per-client `Automatic` toolset
resolution, explicit server override, `OverwriteTarget` replacement,
`Missing["DeploymentExists", ...]` entries, and the
`DeploymentsExistWarning` message. Tests redirect `$HomeDirectory`,
`$deploymentsPath`, and `$SupportedMCPClients` so real client configs
are not touched.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 6, 2026 17:20
@rhennigan rhennigan requested review from Copilot and removed request for Copilot May 6, 2026 17:35
rhennigan and others added 2 commits May 6, 2026 14:36
Convert `UnknownInstallLocation` failures into `Missing["Unsupported", ...]`
results so `DeployAgentTools[All, ...]` skips clients that aren't available on
the current operating system instead of failing the whole batch.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@rhennigan rhennigan requested review from Copilot and removed request for Copilot May 6, 2026 19:13
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 5 comments.

Comment thread Kernel/DeployAgentTools.wl Outdated
Comment thread Kernel/DeployAgentTools.wl Outdated
Comment thread Kernel/DeployAgentTools.wl Outdated
Comment thread Kernel/Messages.wl Outdated
Comment thread docs/deploy-agent-tools.md Outdated
Ubuntu and others added 3 commits May 6, 2026 19:33
`deployAgentToolsQuietly` already converts `UnknownInstallLocation` failures
into `Missing["Unsupported", ...]`, but `deployAllAgentTools` rejected those
with `ConfirmMatch` and triggered `DeploymentsExistWarning` whenever any
`Missing` entry appeared.  The pattern now permits unsupported entries and the
warning fires only when at least one `Missing["DeploymentExists", _]` is
present.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…entTools[All, ...]`.

`DeployAgentTools[target, Automatic, opts]` calls
`defaultToolsetForTarget[target, OptionValue["ApplicationName"]]`, which gives
the explicit `ApplicationName` precedence over `target`.  Under `All`, that
silently rewrote every client's toolset to whatever `ApplicationName`
resolved to.  `deployAllAgentTools` now resolves the server per client up
front via the new `resolveServerForClient` helper, so each client picks up
its own `DefaultToolset` regardless of `ApplicationName`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
`DeployAgentTools` accepts `All` since the bulk-deployment work landed, but
the diagnostic still listed only the per-client target forms.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@rhennigan rhennigan requested review from Copilot and removed request for Copilot May 6, 2026 20:01
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.

@rhennigan rhennigan merged commit d0480c7 into main May 6, 2026
5 checks passed
@rhennigan rhennigan deleted the feature/deploy-all branch May 6, 2026 20:16
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