0.0.5npm · tampermonkey-mcp · latest release
Observed 2026-08-15T23:13:41.340Z using mcpSecurity-inventory. Protocol 2025-06-18.
| Tool | Category | Risk |
|---|---|---|
tampermonkey_delete
Delete a userscript by path.
**Input:**
- `path`: The script or resource path (<script-uuid>/source, <script-uuid>/storage or <script-uuid>/<external-resource-url>)
**Output:**
- `success`: true if script was deleted successfully
- `error`: Error object if deletion failed (e.g., script not found)
Input schema{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "The script or resource path (<script-uuid>/source, <script-uuid>/storage or <script-uuid>/<external-resource-url>)"
}
},
"required": [
"path"
]
} | — | — |
tampermonkey_get
Get the content of a specific userscript.
**Input:**
- `path`: The script path (from list operation)
- `ifNotModifiedSince` (optional): Unix timestamp - only return if script was modified after this time
**Output:**
- `value`: The script source code
- `lastModified`: Unix timestamp of last modification
- `error`: Error object if script not found or concurrent edit detected
Input schema{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "The script or resource path (<script-uuid>/source, <script-uuid>/storage or <script-uuid>/<external-resource-url>"
},
"ifNotModifiedSince": {
"description": "Unix timestamp - only return if script was modified after this time",
"type": "number"
}
},
"required": [
"path"
]
} | — | — |
tampermonkey_get_connection_code
REQUIRED FIRST STEP: Get the connection code to connect Tampermonkey Editors to the MCP server.
**How it works:**
The MCP server creates a WebSocket server that waits for Tampermonkey Editors to connect.
You must call this tool FIRST to start the WebSocket server and get a connection code.
Then enter the code in the Tampermonkey Editors extension - it will connect TO the MCP server.
**Steps:**
1. Call this tool to get the connection code
2. Open Tampermonkey Editors extension in your browser
3. Enter the code in the extension popup
4. The extension connects to the MCP server's WebSocket
5. After connection, you can use tampermonkey_list, tampermonkey_get, tampermonkey_patch, tampermonkey_put, tampermonkey_delete
**Output:**
- `code`: The connection code to enter in Tampermonkey Editors
Input schema{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {}
} | — | — |
tampermonkey_list
List all userscripts available in Tampermonkey.
**Input:**
- `pattern` (optional): Filter scripts by name pattern
- `includePattern` (optional): Filter scripts by include URL pattern
**Output:**
Array of userscript metadata including:
- `name`: Script name
- `namespace`: Script namespace
- `path`: Script path (used for get/patch operations)
- `requires`: List of @require dependencies
- `storage`: Storage path (if any)
Input schema{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"pattern": {
"description": "Filter scripts by name pattern",
"type": "string"
},
"includePattern": {
"description": "Filter scripts by include URL pattern",
"type": "array",
"items": {
"type": "string"
}
}
}
} | — | — |
tampermonkey_patch
Update the content of a userscript.
**Input:**
- `path`: The script or resource path (from list operation)
- `value`: The new script content
- `lastModified` (optional): Unix timestamp for optimistic locking
**Output:**
- `success`: true if patch was applied successfully
- `error`: Error object if patch failed (e.g., concurrent edit conflict)
Input schema{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "The script path (e.g., \"<script-uuid>/source\")"
},
"value": {
"type": "string",
"description": "The new script content"
},
"lastModified": {
"description": "Unix timestamp for optimistic locking",
"type": "number"
}
},
"required": [
"path",
"value"
]
} | — | — |
tampermonkey_put
Create a new userscript.
**Input:**
- `value`: The script source code content
- `lastModified` (optional): Unix timestamp for optimistic locking
**Output:**
- `success`: true if script was created successfully
- `path/name`: The path and name of the new script
- `error`: Error object if creation failed (e.g., script already exists, concurrent edit conflict)
Input schema{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"value": {
"type": "string",
"description": "The script source code content"
},
"lastModified": {
"description": "Unix timestamp for optimistic locking",
"type": "number"
}
},
"required": [
"value"
]
} | — | — |
Compared with initial baseline using full_baseline.
| Risk | Change | Subject |
|---|---|---|
| No material changes recorded. | ||
| Severity | Finding | Advisory |
|---|---|---|
| No confirmed vulnerability is published for this version. | ||
Artifact SHA-256: 55ec5265b88a0079f8ad60f70971546168da01f35d6e9a6dac2218f7b87dad90
Scanner: mcp-proof-engine 0.1.0.