Skip to content

Feature: expose install logic as a programmatic JS library #50

@domdomegg

Description

@domdomegg

The per-client config writers in src/client-config.ts could be useful as a library for embedding install instructions in a landing page. However, package.json currently only exports bin as a CLI to actually do the installation.

Proposed: expose a library entry point that returns "instructions for installing" rather than actually installing:

import { renderInstallInstructions } from 'install-mcp';

renderInstallInstructions({
  server: { url: 'https://mcp.example.com/mcp' },
  client: 'claude-desktop',
});
// -> { configJson, configFilePath, steps }

src/detect-transport.ts is already browser-compatible and src/client-config.ts has most of the logic — mainly needs the render/write split.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions