import { ConfiguratorTarget, getConfigurator } from "@director.run/client-configurator/index";
const claudeConfigurator = getConfigurator(ConfiguratorTarget.Claude);
// Is Claude installed on this machine?
await claudeConfigurator.isClientPresent();
await claudeConfigurator.isInstalled("my-proxy");
// Install an MCP server using a URL. If the client doesn't support HTTP, we use proxies.
await claudeConfigurator.install({
name: "my-proxy",
sseURL: "http://localhost:3673/my-proxy/sse",
streamableURL: "http://localhost:3673/my-proxy/streamable",
});
await claudeConfigurator.uninstall("my-proxy");
// Clear the config file. Useful for development
await claudeConfigurator.reset();