react-native-mcp-kit 2.1.0 → 2.2.0
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 +20 -11
- package/dist/bin/ios-hid +0 -0
- package/dist/client/contexts/McpContext/McpProvider.d.ts.map +1 -1
- package/dist/client/contexts/McpContext/McpProvider.js +6 -3
- package/dist/client/contexts/McpContext/McpProvider.js.map +1 -1
- package/dist/modules/alert/alert.d.ts.map +1 -1
- package/dist/modules/alert/alert.js +6 -5
- package/dist/modules/alert/alert.js.map +1 -1
- package/dist/modules/console/console.d.ts.map +1 -1
- package/dist/modules/console/console.js +18 -13
- package/dist/modules/console/console.js.map +1 -1
- package/dist/modules/device/device.d.ts.map +1 -1
- package/dist/modules/device/device.js +23 -27
- package/dist/modules/device/device.js.map +1 -1
- package/dist/modules/errors/errors.d.ts.map +1 -1
- package/dist/modules/errors/errors.js +92 -11
- package/dist/modules/errors/errors.js.map +1 -1
- package/dist/modules/errors/types.d.ts +8 -0
- package/dist/modules/errors/types.d.ts.map +1 -1
- package/dist/modules/fiberTree/fiberTree.d.ts +4 -0
- package/dist/modules/fiberTree/fiberTree.d.ts.map +1 -1
- package/dist/modules/fiberTree/fiberTree.js +353 -114
- package/dist/modules/fiberTree/fiberTree.js.map +1 -1
- package/dist/modules/fiberTree/index.d.ts +1 -0
- package/dist/modules/fiberTree/index.d.ts.map +1 -1
- package/dist/modules/fiberTree/index.js +14 -1
- package/dist/modules/fiberTree/index.js.map +1 -1
- package/dist/modules/fiberTree/types.d.ts +40 -0
- package/dist/modules/fiberTree/types.d.ts.map +1 -1
- package/dist/modules/fiberTree/utils.d.ts +13 -0
- package/dist/modules/fiberTree/utils.d.ts.map +1 -1
- package/dist/modules/fiberTree/utils.js +195 -23
- package/dist/modules/fiberTree/utils.js.map +1 -1
- package/dist/modules/i18next/i18next.d.ts.map +1 -1
- package/dist/modules/i18next/i18next.js +30 -16
- package/dist/modules/i18next/i18next.js.map +1 -1
- package/dist/modules/index.d.ts +1 -0
- package/dist/modules/index.d.ts.map +1 -1
- package/dist/modules/index.js +3 -1
- package/dist/modules/index.js.map +1 -1
- package/dist/modules/logBox/index.d.ts +2 -0
- package/dist/modules/logBox/index.d.ts.map +1 -0
- package/dist/modules/logBox/index.js +6 -0
- package/dist/modules/logBox/index.js.map +1 -0
- package/dist/modules/logBox/logBox.d.ts +3 -0
- package/dist/modules/logBox/logBox.d.ts.map +1 -0
- package/dist/modules/logBox/logBox.js +234 -0
- package/dist/modules/logBox/logBox.js.map +1 -0
- package/dist/modules/navigation/navigation.d.ts.map +1 -1
- package/dist/modules/navigation/navigation.js +130 -42
- package/dist/modules/navigation/navigation.js.map +1 -1
- package/dist/modules/network/network.d.ts.map +1 -1
- package/dist/modules/network/network.js +262 -67
- package/dist/modules/network/network.js.map +1 -1
- package/dist/modules/network/types.d.ts +35 -3
- package/dist/modules/network/types.d.ts.map +1 -1
- package/dist/modules/reactQuery/reactQuery.d.ts.map +1 -1
- package/dist/modules/reactQuery/reactQuery.js +25 -15
- package/dist/modules/reactQuery/reactQuery.js.map +1 -1
- package/dist/modules/storage/storage.d.ts.map +1 -1
- package/dist/modules/storage/storage.js +23 -16
- package/dist/modules/storage/storage.js.map +1 -1
- package/dist/server/host/hostModule.d.ts.map +1 -1
- package/dist/server/host/hostModule.js +19 -1
- package/dist/server/host/hostModule.js.map +1 -1
- package/dist/server/host/tools/capture.d.ts.map +1 -1
- package/dist/server/host/tools/capture.js +111 -28
- package/dist/server/host/tools/capture.js.map +1 -1
- package/dist/server/host/tools/devices.js +1 -1
- package/dist/server/host/tools/devices.js.map +1 -1
- package/dist/server/host/tools/input.d.ts +3 -0
- package/dist/server/host/tools/input.d.ts.map +1 -1
- package/dist/server/host/tools/input.js +197 -5
- package/dist/server/host/tools/input.js.map +1 -1
- package/dist/server/host/tools/lifecycle.d.ts.map +1 -1
- package/dist/server/host/tools/lifecycle.js +5 -4
- package/dist/server/host/tools/lifecycle.js.map +1 -1
- package/dist/server/host/tools/symbolicate.d.ts +3 -0
- package/dist/server/host/tools/symbolicate.d.ts.map +1 -0
- package/dist/server/host/tools/symbolicate.js +199 -0
- package/dist/server/host/tools/symbolicate.js.map +1 -0
- package/dist/server/host/tools/tapFiber.d.ts +3 -0
- package/dist/server/host/tools/tapFiber.d.ts.map +1 -0
- package/dist/server/host/tools/tapFiber.js +89 -0
- package/dist/server/host/tools/tapFiber.js.map +1 -0
- package/dist/server/host/types.d.ts +14 -0
- package/dist/server/host/types.d.ts.map +1 -1
- package/dist/server/mcpServer.d.ts +6 -0
- package/dist/server/mcpServer.d.ts.map +1 -1
- package/dist/server/mcpServer.js +440 -93
- package/dist/server/mcpServer.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.navigationModule = void 0;
|
|
4
|
+
const fiberTree_1 = require("../../modules/fiberTree");
|
|
4
5
|
const MAX_HISTORY = 100;
|
|
5
6
|
const findFocusedRoute = (state) => {
|
|
6
7
|
const route = state.routes[state.index];
|
|
@@ -23,6 +24,54 @@ const getCurrentRouteFromState = (state) => {
|
|
|
23
24
|
}
|
|
24
25
|
return { key: route.key, name: route.name, params: route.params };
|
|
25
26
|
};
|
|
27
|
+
const firstMcpIdDescendant = (fiber) => {
|
|
28
|
+
if (!fiber)
|
|
29
|
+
return undefined;
|
|
30
|
+
const id = fiber.memoizedProps?.['data-mcp-id'];
|
|
31
|
+
if (typeof id === 'string' && id.length > 0)
|
|
32
|
+
return id;
|
|
33
|
+
let child = fiber.child;
|
|
34
|
+
while (child) {
|
|
35
|
+
const found = firstMcpIdDescendant(child);
|
|
36
|
+
if (found)
|
|
37
|
+
return found;
|
|
38
|
+
child = child.sibling;
|
|
39
|
+
}
|
|
40
|
+
return undefined;
|
|
41
|
+
};
|
|
42
|
+
const parseMcpId = (mcpId) => {
|
|
43
|
+
if (!mcpId)
|
|
44
|
+
return {};
|
|
45
|
+
const parts = mcpId.split(':');
|
|
46
|
+
if (parts.length < 3)
|
|
47
|
+
return {};
|
|
48
|
+
const last = parts[parts.length - 1];
|
|
49
|
+
if (!/^\d+$/.test(last))
|
|
50
|
+
return {};
|
|
51
|
+
const line = parseInt(last, 10);
|
|
52
|
+
const filePath = parts.slice(1, -1).join(':');
|
|
53
|
+
return { filePath: filePath || undefined, line };
|
|
54
|
+
};
|
|
55
|
+
const getScreenInfoForRouteKey = (routeKey) => {
|
|
56
|
+
if (!routeKey)
|
|
57
|
+
return undefined;
|
|
58
|
+
const root = (0, fiberTree_1.getFiberRoot)();
|
|
59
|
+
if (!root)
|
|
60
|
+
return undefined;
|
|
61
|
+
const fiber = (0, fiberTree_1.findScreenFiberByRouteKey)(root, routeKey);
|
|
62
|
+
if (!fiber)
|
|
63
|
+
return undefined;
|
|
64
|
+
const mcpId = firstMcpIdDescendant(fiber);
|
|
65
|
+
const info = { componentName: (0, fiberTree_1.getComponentName)(fiber) };
|
|
66
|
+
if (mcpId)
|
|
67
|
+
info.mcpId = mcpId;
|
|
68
|
+
const parsed = parseMcpId(mcpId);
|
|
69
|
+
if (parsed.filePath)
|
|
70
|
+
info.filePath = parsed.filePath;
|
|
71
|
+
if (parsed.line !== undefined)
|
|
72
|
+
info.line = parsed.line;
|
|
73
|
+
return info;
|
|
74
|
+
};
|
|
26
75
|
const navigationModule = (navigation) => {
|
|
27
76
|
console.log('Navigation module initialized');
|
|
28
77
|
const history = [];
|
|
@@ -60,27 +109,47 @@ const navigationModule = (navigation) => {
|
|
|
60
109
|
setTimeout(waitForReady, 100);
|
|
61
110
|
};
|
|
62
111
|
waitForReady();
|
|
112
|
+
// Decorate a route dict from React Navigation with a `screen` field describing
|
|
113
|
+
// the React component rendering it — gives agents a direct path to inspect
|
|
114
|
+
// or drive that screen via fiber_tree without a separate lookup step.
|
|
115
|
+
const withScreenInfo = (route) => {
|
|
116
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
117
|
+
if (!route)
|
|
118
|
+
return route;
|
|
119
|
+
const key = typeof route.key === 'string' ? route.key : undefined;
|
|
120
|
+
const screen = getScreenInfoForRouteKey(key);
|
|
121
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
122
|
+
return (screen ? { ...route, screen } : route);
|
|
123
|
+
};
|
|
63
124
|
return {
|
|
64
|
-
description:
|
|
125
|
+
description: `React Navigation control + 100-entry transition history.
|
|
126
|
+
|
|
127
|
+
SCREEN ENRICHMENT
|
|
128
|
+
get_current_route and get_current_route_state include a \`screen\` field
|
|
129
|
+
pointing at the React component rendering the focused route:
|
|
130
|
+
screen: { componentName, mcpId?, filePath?, line? }
|
|
131
|
+
componentName is the developer's component (RN Navigation wrappers are
|
|
132
|
+
skipped). mcpId / filePath / line come from the first data-mcp-id inside
|
|
133
|
+
the screen — the rendering site, ready for fiber_tree follow-ups.`,
|
|
65
134
|
name: 'navigation',
|
|
66
135
|
tools: {
|
|
67
136
|
get_current_route: {
|
|
68
|
-
description: '
|
|
137
|
+
description: 'Focused route name, params, and a `screen` field for the rendering component.',
|
|
69
138
|
handler: () => {
|
|
70
|
-
return navigation.getCurrentRoute();
|
|
139
|
+
return withScreenInfo(navigation.getCurrentRoute());
|
|
71
140
|
},
|
|
72
141
|
},
|
|
73
142
|
get_current_route_state: {
|
|
74
|
-
description: '
|
|
143
|
+
description: 'Full state of the focused route — params, key, nested navigator state, and a `screen` field with rendering component info.',
|
|
75
144
|
handler: () => {
|
|
76
145
|
const rootState = navigation.getRootState();
|
|
77
146
|
if (!rootState)
|
|
78
147
|
return { error: 'No navigation state available' };
|
|
79
|
-
return findFocusedRoute(rootState);
|
|
148
|
+
return withScreenInfo(findFocusedRoute(rootState));
|
|
80
149
|
},
|
|
81
150
|
},
|
|
82
151
|
get_history: {
|
|
83
|
-
description: '
|
|
152
|
+
description: 'Screen transition log (up to 100 entries) with timestamps. Pass full:true for per-entry navigation state.',
|
|
84
153
|
handler: (args) => {
|
|
85
154
|
const offset = args.offset ?? 0;
|
|
86
155
|
const limit = args.limit ?? 50;
|
|
@@ -104,27 +173,21 @@ const navigationModule = (navigation) => {
|
|
|
104
173
|
},
|
|
105
174
|
inputSchema: {
|
|
106
175
|
full: {
|
|
107
|
-
description: 'Include full navigation state
|
|
176
|
+
description: 'Include full navigation state per entry (default: false).',
|
|
108
177
|
type: 'boolean',
|
|
109
178
|
},
|
|
110
|
-
limit: {
|
|
111
|
-
|
|
112
|
-
type: 'number',
|
|
113
|
-
},
|
|
114
|
-
offset: {
|
|
115
|
-
description: 'Start index (default: 0)',
|
|
116
|
-
type: 'number',
|
|
117
|
-
},
|
|
179
|
+
limit: { description: 'Max entries to return (default: 50).', type: 'number' },
|
|
180
|
+
offset: { description: 'Start index (default: 0).', type: 'number' },
|
|
118
181
|
},
|
|
119
182
|
},
|
|
120
183
|
get_state: {
|
|
121
|
-
description: '
|
|
184
|
+
description: 'Full navigation state tree.',
|
|
122
185
|
handler: () => {
|
|
123
186
|
return navigation.getRootState();
|
|
124
187
|
},
|
|
125
188
|
},
|
|
126
189
|
go_back: {
|
|
127
|
-
description: 'Go back to the previous screen',
|
|
190
|
+
description: 'Go back to the previous screen.',
|
|
128
191
|
handler: () => {
|
|
129
192
|
if (navigation.canGoBack()) {
|
|
130
193
|
navigation.goBack();
|
|
@@ -134,78 +197,96 @@ const navigationModule = (navigation) => {
|
|
|
134
197
|
},
|
|
135
198
|
},
|
|
136
199
|
navigate: {
|
|
137
|
-
description: 'Navigate to a screen
|
|
200
|
+
description: 'Navigate to a screen — reuses it if already in the stack.',
|
|
138
201
|
handler: (args) => {
|
|
139
202
|
navigation.navigate(args.screen, args.params);
|
|
140
|
-
return {
|
|
203
|
+
return {
|
|
204
|
+
currentRoute: withScreenInfo(navigation.getCurrentRoute()),
|
|
205
|
+
success: true,
|
|
206
|
+
};
|
|
141
207
|
},
|
|
142
208
|
inputSchema: {
|
|
143
|
-
params: { description: 'Optional route params', type: 'object' },
|
|
144
|
-
screen: { description: 'Screen name to navigate to', type: 'string' },
|
|
209
|
+
params: { description: 'Optional route params.', type: 'object' },
|
|
210
|
+
screen: { description: 'Screen name to navigate to.', type: 'string' },
|
|
145
211
|
},
|
|
146
212
|
},
|
|
147
213
|
pop: {
|
|
148
|
-
description: 'Pop one or more screens
|
|
214
|
+
description: 'Pop one or more screens off the stack.',
|
|
149
215
|
handler: (args) => {
|
|
150
216
|
const count = args.count || 1;
|
|
151
217
|
navigation.dispatch({ payload: { count }, type: 'POP' });
|
|
152
|
-
return {
|
|
218
|
+
return {
|
|
219
|
+
currentRoute: withScreenInfo(navigation.getCurrentRoute()),
|
|
220
|
+
success: true,
|
|
221
|
+
};
|
|
153
222
|
},
|
|
154
223
|
inputSchema: {
|
|
155
|
-
count: { description: '
|
|
224
|
+
count: { description: 'Screens to pop (default: 1).', type: 'number' },
|
|
156
225
|
},
|
|
157
226
|
},
|
|
158
227
|
pop_to: {
|
|
159
|
-
description: 'Pop back to a specific screen
|
|
228
|
+
description: 'Pop back to a specific screen.',
|
|
160
229
|
handler: (args) => {
|
|
161
230
|
navigation.dispatch({
|
|
162
231
|
payload: { name: args.screen, params: args.params },
|
|
163
232
|
type: 'POP_TO',
|
|
164
233
|
});
|
|
165
|
-
return {
|
|
234
|
+
return {
|
|
235
|
+
currentRoute: withScreenInfo(navigation.getCurrentRoute()),
|
|
236
|
+
success: true,
|
|
237
|
+
};
|
|
166
238
|
},
|
|
167
239
|
inputSchema: {
|
|
168
|
-
params: { description: 'Optional route params', type: 'object' },
|
|
169
|
-
screen: { description: 'Screen name to pop back to', type: 'string' },
|
|
240
|
+
params: { description: 'Optional route params.', type: 'object' },
|
|
241
|
+
screen: { description: 'Screen name to pop back to.', type: 'string' },
|
|
170
242
|
},
|
|
171
243
|
},
|
|
172
244
|
pop_to_top: {
|
|
173
|
-
description: 'Pop to the first screen in the stack',
|
|
245
|
+
description: 'Pop to the first screen in the stack.',
|
|
174
246
|
handler: () => {
|
|
175
247
|
navigation.dispatch({ type: 'POP_TO_TOP' });
|
|
176
|
-
return {
|
|
248
|
+
return {
|
|
249
|
+
currentRoute: withScreenInfo(navigation.getCurrentRoute()),
|
|
250
|
+
success: true,
|
|
251
|
+
};
|
|
177
252
|
},
|
|
178
253
|
},
|
|
179
254
|
push: {
|
|
180
|
-
description: 'Push a new screen
|
|
255
|
+
description: 'Push a new screen — always adds a new stack entry, even for duplicates.',
|
|
181
256
|
handler: (args) => {
|
|
182
257
|
navigation.dispatch({
|
|
183
258
|
payload: { name: args.screen, params: args.params },
|
|
184
259
|
type: 'PUSH',
|
|
185
260
|
});
|
|
186
|
-
return {
|
|
261
|
+
return {
|
|
262
|
+
currentRoute: withScreenInfo(navigation.getCurrentRoute()),
|
|
263
|
+
success: true,
|
|
264
|
+
};
|
|
187
265
|
},
|
|
188
266
|
inputSchema: {
|
|
189
|
-
params: { description: 'Optional route params', type: 'object' },
|
|
190
|
-
screen: { description: 'Screen name to push', type: 'string' },
|
|
267
|
+
params: { description: 'Optional route params.', type: 'object' },
|
|
268
|
+
screen: { description: 'Screen name to push.', type: 'string' },
|
|
191
269
|
},
|
|
192
270
|
},
|
|
193
271
|
replace: {
|
|
194
|
-
description: 'Replace the current screen with a new one',
|
|
272
|
+
description: 'Replace the current screen with a new one.',
|
|
195
273
|
handler: (args) => {
|
|
196
274
|
navigation.dispatch({
|
|
197
275
|
payload: { name: args.screen, params: args.params },
|
|
198
276
|
type: 'REPLACE',
|
|
199
277
|
});
|
|
200
|
-
return {
|
|
278
|
+
return {
|
|
279
|
+
currentRoute: withScreenInfo(navigation.getCurrentRoute()),
|
|
280
|
+
success: true,
|
|
281
|
+
};
|
|
201
282
|
},
|
|
202
283
|
inputSchema: {
|
|
203
|
-
params: { description: 'Optional route params', type: 'object' },
|
|
204
|
-
screen: { description: 'Screen name to replace with', type: 'string' },
|
|
284
|
+
params: { description: 'Optional route params.', type: 'object' },
|
|
285
|
+
screen: { description: 'Screen name to replace with.', type: 'string' },
|
|
205
286
|
},
|
|
206
287
|
},
|
|
207
288
|
reset: {
|
|
208
|
-
description: 'Reset the current navigator state to specified routes',
|
|
289
|
+
description: 'Reset the current navigator state to a specified routes list.',
|
|
209
290
|
handler: (args) => {
|
|
210
291
|
const routes = args.routes;
|
|
211
292
|
const index = args.index ?? routes.length - 1;
|
|
@@ -218,11 +299,18 @@ const navigationModule = (navigation) => {
|
|
|
218
299
|
},
|
|
219
300
|
type: 'RESET',
|
|
220
301
|
});
|
|
221
|
-
return {
|
|
302
|
+
return {
|
|
303
|
+
currentRoute: withScreenInfo(navigation.getCurrentRoute()),
|
|
304
|
+
success: true,
|
|
305
|
+
};
|
|
222
306
|
},
|
|
223
307
|
inputSchema: {
|
|
224
|
-
index: { description: '
|
|
225
|
-
routes: {
|
|
308
|
+
index: { description: 'Active route index (default: last).', type: 'number' },
|
|
309
|
+
routes: {
|
|
310
|
+
description: 'Routes list.',
|
|
311
|
+
examples: [[{ name: 'Home' }, { name: 'Profile', params: { id: 42 } }]],
|
|
312
|
+
type: 'array',
|
|
313
|
+
},
|
|
226
314
|
},
|
|
227
315
|
},
|
|
228
316
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigation.js","sourceRoot":"","sources":["../../../src/modules/navigation/navigation.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"navigation.js","sourceRoot":"","sources":["../../../src/modules/navigation/navigation.ts"],"names":[],"mappings":";;;AACA,mDAAgG;AAIhG,MAAM,WAAW,GAAG,GAAG,CAAC;AAExB,MAAM,gBAAgB,GAAG,CAAC,KAAsB,EAAW,EAAE;IAC3D,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACxC,IAAI,CAAC,KAAK;QAAE,OAAO,IAAI,CAAC;IACxB,IAAI,KAAK,CAAC,KAAK,EAAE,CAAC;QAChB,OAAO;YACL,GAAG,KAAK;YACR,YAAY,EAAE,gBAAgB,CAAC,KAAK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AE,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;4BAC5C,CAAC,CAAC;yBACH;wBACD,IAAI,EAAE,OAAO;qBACd,CAAC,CAAC;oBACH,OAAO;wBACL,YAAY,EAAE,cAAc,CAAC,UAAU,CAAC,eAAe,EAA8B,CAAC;wBACtF,OAAO,EAAE,IAAI;qBACd,CAAC;gBACJ,CAAC;gBACD,WAAW,EAAE;oBACX,KAAK,EAAE,EAAE,WAAW,EAAE,qCAAqC,EAAE,IAAI,EAAE,QAAQ,EAAE;oBAC7E,MAAM,EAAE;wBACN,WAAW,EAAE,cAAc;wBAC3B,QAAQ,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;wBACvE,IAAI,EAAE,OAAO;qBACd;iBACF;aACF;SACF;KACF,CAAC;AACJ,CAAC,CAAC;AA/PW,QAAA,gBAAgB,oBA+P3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"network.d.ts","sourceRoot":"","sources":["../../../src/modules/network/network.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAEvD,OAAO,
|
|
1
|
+
{"version":3,"file":"network.d.ts","sourceRoot":"","sources":["../../../src/modules/network/network.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAEvD,OAAO,EAAwC,KAAK,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAgK1F,eAAO,MAAM,aAAa,aAAc,oBAAoB,KAAG,SAsX9D,CAAC"}
|