@qwik.dev/mcp 2.0.0-rc.3 → 2.0.0-rc.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cli.js +2 -2
- package/dist/docs.json +1 -1
- package/dist/index.js +94 -39
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -101,7 +101,7 @@ If the client cannot find `node`, set `command` to the absolute path of your Nod
|
|
|
101
101
|
|
|
102
102
|
`includeHtml` and `includeSignalValues` default to `false`. `selector` scopes the HTML fragment; component metadata still describes the page. HTML is current DOM, marked `source: "live-dom"`, limited to 64 KiB of UTF-8, with `truncated` indicating an incomplete fragment. It is not the original SSR response.
|
|
103
103
|
|
|
104
|
-
`locate_element` reads the `data-qwik-inspector` location Qwik writes on
|
|
104
|
+
`locate_element` reads the `data-qwik-inspector` location Qwik writes on elements in development, for the first element matching `selector`; `matches` counts every match, so refine the selector when it is more than one. Elements Qwik did not render, such as nodes added by another script, have no location of their own: the result then comes from the nearest ancestor that has one, with `exact: false` and `tag` naming that ancestor. `source` is `null` when no ancestor has a location either, which is the case when the inspector is disabled (`qInspector`).
|
|
105
105
|
|
|
106
106
|
`includeSerializedState` and `includeSerializedVNodeTree` also default to `false`. They parse the page's Qwik state scripts and reconstruct a VNode tree from a copy of the DOM. Each returns `null` when no Qwik container or relevant state exists, or `{ source: "serialized-dom", content, truncated, nextOffset }` with a 64 KiB UTF-8 limit. These snapshots may differ from current signal values after interaction. `selector` does not scope them.
|
|
107
107
|
|
package/dist/cli.js
CHANGED
|
@@ -11,7 +11,7 @@ import { McpServer } from "@modelcontextprotocol/server";
|
|
|
11
11
|
import { z as z2 } from "zod";
|
|
12
12
|
|
|
13
13
|
// package.json
|
|
14
|
-
var version = "2.0.0-rc.
|
|
14
|
+
var version = "2.0.0-rc.5";
|
|
15
15
|
|
|
16
16
|
// src/protocol.ts
|
|
17
17
|
import { z } from "zod";
|
|
@@ -189,7 +189,7 @@ function createMcpServer(call) {
|
|
|
189
189
|
outputSchema: inspectOutput
|
|
190
190
|
},
|
|
191
191
|
locate_element: {
|
|
192
|
-
description: "Find the source file:line:column of the first element matching selector on a connected page. exact: false means the location is its nearest
|
|
192
|
+
description: "Find the source file:line:column of the first element matching selector on a connected page. exact: false means the location is its nearest ancestor that has one (tag); source is null when none exists. Supply url when multiple pages are open.",
|
|
193
193
|
inputSchema: locateInput,
|
|
194
194
|
outputSchema: z2.object({
|
|
195
195
|
url: z2.string(),
|