Sign In

@shiplightai/mcp2

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@shiplightai/mcp2

Stripped MCP server for UI exploration — browser tools only, no cloud dependency

latest
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

@shiplightai/mcp2

MCP server for browser UI exploration. Provides tools to launch browser sessions, navigate pages, inspect the DOM, perform actions, and collect locators — designed for coding agents that explore UI then write Playwright tests with @shiplightai/sdk.

Installation

npm install -g @shiplightai/mcp2

Usage

Claude Code

Add to your Claude Code MCP config (~/.claude/settings.json):

{
  "mcpServers": {
    "shiplight": {
      "command": "shiplight-mcp2"
    }
  }
}

Claude Desktop

Add to your Claude Desktop config:

{
  "mcpServers": {
    "shiplight": {
      "command": "npx",
      "args": ["-y", "@shiplightai/mcp2"]
    }
  }
}

Cursor / Windsurf

Add to your MCP config (.cursor/mcp.json or equivalent):

{
  "mcpServers": {
    "shiplight": {
      "command": "npx",
      "args": ["-y", "@shiplightai/mcp2"]
    }
  }
}

Tools

Session Management (5)

ToolDescription
new_sessionLaunch a browser session with optional device emulation
save_storage_stateSave cookies/localStorage for session reuse
close_sessionClose a browser session
close_allClose all browser sessions
get_session_stateGet current URL and session type

Browser Interaction (7)

ToolDescription
navigateNavigate to a URL
get_page_infoGet page URL and title (lightweight)
inspect_pageScreenshot + DOM with element indices
actPerform browser actions using element indices
get_locatorExtract Playwright locator for an element
update_variablesSet session variables for browser tasks
clear_execution_historyClear action history for a session

Debug (4)

ToolDescription
get_browser_console_logsGet console logs (errors, warnings)
get_browser_network_logsGet network request logs
clear_logsClear console and network logs
get_artifactRetrieve screenshots or DOM snapshots

Resources

The server exposes two resources for coding agents:

  • shiplight://schemas/action-entity — Parameter docs for all browser actions
  • shiplight://docs/agent-sdk — API documentation for @shiplightai/sdk, including a workflow guide for turning UI exploration into test code

Workflow

  • Explore — Use inspect_page + act to navigate the app
  • Collect locators — Use get_locator on elements you want to test
  • Write tests — Use the locators in Playwright tests, with @shiplightai/sdk for AI-powered assertions and self-healing
import { test, expect } from '@playwright/test';
import { createAgent, configureSdk } from '@shiplightai/sdk';

configureSdk({ env: { GOOGLE_API_KEY: process.env.GOOGLE_API_KEY! } });

test('checkout flow', async ({ page }) => {
  const agent = createAgent({ model: 'gemini-2.5-pro' });

  await page.goto('https://myshop.example.com');
  await page.getByRole('button', { name: 'Add to Cart' }).click();
  await agent.assert(page, 'Item was added to cart');
  await agent.run(page, 'Complete checkout with test data');
});

Environment Variables

VariableDefaultDescription
WEB_AGENT_MODELgemini-2.5-proAI model for browser agent
TERMINATION_TIMEOUT(none)Session auto-close timeout in ms

License

MIT

FAQs

Package last updated on 09 Feb 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