🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@jspm/local-mcp

Package Overview
Dependencies
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jspm/local-mcp

A local-first MCP server for managing JSPM import maps in real projects.

latest
Source
npmnpm
Version
0.1.3
Version published
Maintainers
3
Created
Source

@jspm/local-mcp

A local-first Model Context Protocol server for managing JSPM import maps inside a real project directory. Uses @jspm/generator to keep the full import map correct instead of hand-editing only the imports section.

Built for coding agents with filesystem access to your repo (Codex, Claude Code / Claude Desktop, Cursor, VS Code MCP).

Tools

Read-only

ToolDescriptionInputs
get_statusReturns the active project path, map target, environment conditions, and generator options.none
get_importmapReturns the current import map as JSON with the list of installed top-level specifiers. Requires set_project first.none

Project setup

ToolDescriptionInputs
set_projectSets the active project directory.path: string
set_targetChoose importmap file or HTML injection mode.target: string, fileName?: string, esModuleShims?: boolean
set_envSwitch between "production" and "development".`environment: "production"

Generator configuration

ToolDescriptionInputs
set_generator_optionsConfigure CommonJS, TypeScript, SystemJS, integrity, fetch retries, default provider, and more.commonJS?, typeScript?, system?, integrity?, fetchRetries?, defaultProvider?, cache?, providers?, resolutions?, ignore?, reinstall?
set_providerSet default provider (e.g. "jspm.io", "jsdelivr", "unpkg") and scoped overrides.defaultProvider?, overrides?, reinstall?
remove_provider_overrideRemove one or more scoped provider overrides.specifiers: string[], reinstall?
set_cacheConfigure cache mode (true, false, or "offline").`cache: boolean
set_resolutionAdd or update package resolution overrides.resolutions: {specifier, target}[], reinstall?
remove_resolutionRemove package resolution overrides.specifiers: string[], reinstall?
set_ignoreReplace the list of specifiers JSPM ignores during tracing.specifiers: string[], reinstall?

Package management

ToolDescriptionInputs
install_packageInstall one or more packages via the configured provider.packages: {packageName, version?}[]
uninstall_packageRemove one or more packages from the import map.`packageName: string
trace_fileTrace imports from local source files and add required mappings.fileNames: string[]

Typical Flow

1. set_project({ path: "/absolute/path/to/project" })
2. set_target({ target: "html", fileName: "index.html" })
3. install_package({ packages: [{ packageName: "react" }, { packageName: "react-dom" }] })
4. trace_file({ fileNames: ["src/main.js"] })

Install

npx -y @jspm/local-mcp

Or globally:

npm install -g @jspm/local-mcp
jspm-local-mcp

MCP Client Setup

All clients use the same pattern:

{
  "mcpServers": {
    "jspm": {
      "command": "npx",
      "args": ["-y", "@jspm/local-mcp"]
    }
  }
}

For VS Code / GitHub Copilot, use the "servers" key instead of "mcpServers".

If npx is unavailable, point directly to the installed executable:

{
  "command": "node",
  "args": ["/path/to/jspm-mcp/dist/cli.js"]
}

Local Development

npm install
npm run build
npm start

For auto-reload during development:

  • Terminal: npm run dev (watches src/ and rebuilds dist/ on save)
  • MCP client config: node --watch /path/to/jspm-mcp/dist/cli.js

The --watch flag restarts the server automatically when dist/ changes.

Publish

npm run build
npm publish --access public

prepublishOnly rebuilds dist before publish.

License

MIT

Keywords

mcp

FAQs

Package last updated on 25 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts