mcpx

v1.2.1
@rpx_/mcpx Checked 4 days ago Published 4 months ago

A reusable and CLI-accessible Model Context Protocol (MCP) server for mcpX.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

screenshot

Capture an explicit tab viewport or full page as native PNG/JPEG image content.

ParameterTypeDescription
formatstring
fullPageboolean
maxBytesinteger
maxPixelsinteger
qualityinteger
tabIdinteger
timeoutMsinteger

tab-scroll

Scroll the window, a semantic-locator container, or a target into view and report before/after positions.

ParameterTypeDescription
direction *string
distancenumber
exactboolean
namestring
nthinteger
refstring
rolestring
selectorstring
tabIdinteger
testIdstring
textstring
timeoutMsinteger

wait

Wait for bounded time, element state, or navigation with cancellation support.

ParameterTypeDescription
durationMsinteger
exactboolean
fromUrlstring
namestring
nthinteger
pollIntervalMsinteger
refstring
rolestring
selectorstring
statestring
tabIdinteger
testIdstring
textstring
timeoutMsinteger
typestring
urlstring
value

tabs-list

List open browser tabs across all windows. Optionally filter by windowId or currentWindow.

ParameterTypeDescription
currentWindowboolean
windowIdinteger

tab-current

Return the active tab from the last focused Chrome window or a specified window.

ParameterTypeDescription
windowIdinteger

tab-activate

Activate a tab and optionally focus its containing Chrome window.

ParameterTypeDescription
tabId *integer
focusWindowboolean

tab-navigate

Navigate an existing tab to an HTTP or HTTPS URL. Defaults to the active tab in the last focused window.

ParameterTypeDescription
url *string
tabIdinteger

open-tab

Open a new browser tab to the given URL. Pass active=true to focus it.

ParameterTypeDescription
url *string
activeboolean
windowIdinteger

close-tab

Close a specific browser tab by its tab ID. The tab will be immediately closed and any unsaved data may be lost. Use with caution.

ParameterTypeDescription
tabId *integerThe ID of the tab to close. Must be a positive integer.

tab-back

Go back in the active tab's history. Optionally pass tabId.

ParameterTypeDescription
tabIdinteger

tab-forward

Go forward in the active tab's history. Optionally pass tabId.

ParameterTypeDescription
tabIdinteger

press-key

Press a page-level key or modifier combination on a resolved or focused element.

ParameterTypeDescription
key *string
altboolean
ctrlboolean
exactboolean
metaboolean
namestring
nthinteger
refstring
rolestring
selectorstring
shiftboolean
tabIdinteger
testIdstring
textstring
timeoutMsinteger

snapshot

Return a concise semantic page snapshot with stable element references.

ParameterTypeDescription
includeHiddenboolean
maxElementsinteger
maxTextLengthinteger
tabIdinteger

resolve-element

Resolve one page element by snapshot reference, test ID, CSS selector, role/name, or text. Ambiguous matches require nth.

ParameterTypeDescription
exactboolean
namestring
nthinteger
refstring
rolestring
selectorstring
tabIdinteger
testIdstring
textstring

tab-click

Click exactly once using a snapshot reference, test ID, CSS, role/name, or text locator.

ParameterTypeDescription
exactboolean
namestring
nthinteger
refstring
rolestring
selectorstring
tabIdinteger
testIdstring
textstring
timeoutMsinteger

double-click

Double-click exactly once using a snapshot reference or semantic locator.

ParameterTypeDescription
exactboolean
namestring
nthinteger
refstring
rolestring
selectorstring
tabIdinteger
testIdstring
textstring
timeoutMsinteger

hover

Move the pointer over an element using a snapshot reference or semantic locator.

ParameterTypeDescription
exactboolean
namestring
nthinteger
refstring
rolestring
selectorstring
tabIdinteger
testIdstring
textstring
timeoutMsinteger

type-text

Type into an input, textarea, or contenteditable target using replace, append, clear, or selection-insert mode.

ParameterTypeDescription
text *string
delayinteger
exactboolean
locatorTextstring
modestring
namestring
nthinteger
refstring
rolestring
selectorstring
tabIdinteger
testIdstring
timeoutMsinteger

select-option

Select native select options by value using a snapshot reference or semantic locator. Dispatches input and change events so application state updates.

ParameterTypeDescription
values *array
exactboolean
namestring
nthinteger
refstring
rolestring
selectorstring
tabIdinteger
testIdstring
textstring
timeoutMsinteger

console-start

Start explicit console monitoring for a tab. Only events emitted after this tool succeeds can be collected; earlier console history cannot be recovered.

ParameterTypeDescription
maxEntriesinteger
tabIdinteger

console-logs

Read events captured after console-start. Filter console calls, browser logs, runtime exceptions, and unhandled promise rejections by level, source, time, or text.

ParameterTypeDescription
levelsarray
limitinteger
sincenumber
sourcesarray
tabIdinteger
textstring

console-clear

Clear the events currently stored for an active console monitor without detaching it.

ParameterTypeDescription
tabIdinteger

console-stop

Stop console monitoring for a tab and release the Chrome debugger attachment.

ParameterTypeDescription
clearboolean
tabIdinteger