morluto
2234a7db57
fix(mcp)!: require absolute local paths for pcap capture and debugger sessions ( #11508 )
...
* fix(mcp)!: require absolute local paths for pcap capture and debugger sessions
The MCP server's working directory is not the caller's, so sibling local
file contracts refuse a relative path. inspect_pcap_capture (path),
start_rizin_debug_session (path, inferior_tty) and start_gdb_session
(inferior_tty) admitted one and resolved it against the server's
directory. They now use absoluteLocalPathStringSchema.
The inspect-pcap-capture CLI command declares path as a caller path, so
a relative CLI argument is still resolved against the caller's working
directory before the contract sees it. debug-with-rizin and
debug-with-gdb call their managers directly and are unchanged.
BREAKING CHANGE: MCP calls to inspect_pcap_capture,
start_rizin_debug_session and start_gdb_session with a relative path or
inferior_tty are refused with invalid_request. Pass absolute paths.
Fixes #11079
* test(mcp): call the debugger session tools with absolute paths
* fix(cli): describe the inspect-pcap-capture path without the MCP absolute requirement
The CLI resolves a relative capture path, so its help keeps the
caller-path description instead of inheriting the contract's absolute
wording.
* test(pcap): expect the absolute-path format issue beside the empty-path bound
2026-11-16 09:48:52 +08:00
..
2026-11-16 08:25:18 +08:00
2026-11-16 07:12:16 +08:00
2026-11-14 05:27:07 +08:00
2026-11-16 08:08:38 +08:00
2026-11-16 08:08:38 +08:00
2026-11-16 09:48:52 +08:00
2026-11-15 21:51:18 +08:00
2026-11-16 03:56:10 +08:00
2026-11-14 04:08:37 -05:00
2026-11-16 03:56:10 +08:00
2026-11-16 04:00:00 +08:00
2026-11-14 04:08:37 -05:00
2026-11-16 06:28:01 +08:00
2026-10-29 05:08:17 +08:00
2026-11-15 17:04:45 +08:00
2026-11-14 13:21:13 +08:00
2026-11-16 03:22:24 +08:00
2026-11-14 16:31:24 +01:00
2026-10-29 01:28:57 +08:00
2026-11-16 06:28:01 +08:00
2026-11-01 00:15:28 +08:00
2026-11-13 10:11:06 -05:00
2026-11-08 00:01:18 +08:00
2026-11-16 07:53:42 +08:00
2026-11-16 03:44:53 +08:00
2026-11-11 05:07:30 -05:00
2026-11-16 06:28:01 +08:00
2026-11-09 08:12:55 -05:00
2026-11-13 10:11:06 -05:00
2026-11-14 13:21:13 +08:00
2026-11-04 23:53:01 +08:00
2026-11-14 13:21:13 +08:00
2026-11-04 23:53:01 +08:00
2026-11-04 23:53:01 +08:00
2026-11-14 14:28:08 +08:00
2026-11-08 00:01:18 +08:00
2026-11-15 21:51:18 +08:00
2026-11-11 19:48:33 +08:00
2026-11-16 06:28:01 +08:00
2026-10-20 22:54:28 -07:00
2026-10-16 03:49:44 +08:00
2026-11-01 00:15:28 +08:00
2026-11-01 00:15:28 +08:00
2026-10-23 23:02:07 +08:00
2026-11-02 02:13:32 +08:00
2026-11-14 05:27:07 +08:00
2026-11-14 13:21:13 +08:00
2026-11-14 05:27:07 +08:00
2026-11-14 14:59:41 +01:00
2026-11-09 20:16:13 +08:00
2026-11-14 14:28:08 +08:00
2026-11-16 03:56:10 +08:00
2026-11-01 00:15:28 +08:00
2026-11-16 06:28:01 +08:00
2026-11-09 14:58:35 +08:00
2026-11-09 21:43:01 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 03:44:53 +08:00
2026-11-14 04:08:37 -05:00
2026-11-16 06:28:01 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 06:28:01 +08:00
2026-11-14 14:28:08 +08:00
2026-11-08 00:01:18 +08:00
2026-11-16 06:28:01 +08:00
2026-11-09 21:42:53 +08:00
2026-10-13 23:48:09 +08:00
2026-11-05 15:37:35 +08:00
2026-10-29 01:23:17 +08:00
2026-11-16 06:28:01 +08:00
2026-11-08 16:39:20 +00:00
2026-11-01 00:15:28 +08:00
2026-11-08 16:39:20 +00:00
2026-11-16 03:44:53 +08:00
2026-11-16 06:28:01 +08:00
2026-10-29 09:26:22 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 06:28:01 +08:00
2026-11-14 04:08:37 -05:00
2026-11-16 06:28:01 +08:00
2026-11-15 21:51:18 +08:00
2026-11-08 16:39:20 +00:00
2026-11-16 06:28:01 +08:00
2026-11-14 14:28:08 +08:00
2026-11-16 06:28:01 +08:00
2026-11-14 13:21:13 +08:00
2026-11-14 13:21:13 +08:00
2026-11-15 21:51:18 +08:00
2026-11-08 16:39:20 +00:00
2026-11-16 06:28:01 +08:00
2026-11-16 07:12:16 +08:00
2026-10-28 16:48:20 +08:00
2026-10-28 16:01:17 +08:00
2026-11-16 06:28:01 +08:00
2026-11-01 00:15:28 +08:00
2026-10-29 08:37:36 +08:00
2026-11-16 07:12:16 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 06:28:01 +08:00
2026-11-15 23:56:18 +08:00
2026-11-16 06:28:01 +08:00
2026-11-14 14:28:08 +08:00
2026-11-05 15:33:49 +08:00
2026-10-28 15:23:00 +08:00
2026-11-14 05:27:07 +08:00
2026-11-16 06:28:01 +08:00
2026-10-29 04:59:25 +08:00
2026-11-14 14:06:23 +01:00
2026-11-14 05:27:07 +08:00
2026-11-16 06:28:01 +08:00
2026-11-11 18:13:18 +08:00
2026-10-30 00:03:23 +08:00
2026-11-10 05:11:20 -05:00
2026-11-14 13:21:13 +08:00
2026-11-16 09:42:07 +08:00
2026-11-01 00:15:28 +08:00
2026-11-14 05:27:07 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 06:28:01 +08:00
2026-11-14 16:31:24 +01:00
2026-11-14 13:21:13 +08:00
2026-11-14 13:37:55 +01:00
2026-11-09 13:21:24 +08:00
2026-11-09 07:57:52 +08:00
2026-11-14 05:27:07 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 06:28:01 +08:00
2026-11-14 14:28:08 +08:00
2026-11-16 07:12:16 +08:00
2026-11-16 07:12:16 +08:00
2026-11-14 14:28:08 +08:00
2026-11-15 21:32:33 +08:00
2026-11-02 02:13:32 +08:00
2026-11-16 06:28:01 +08:00
2026-10-29 01:30:08 +08:00
2026-11-09 20:17:25 +08:00
2026-11-15 21:51:18 +08:00
2026-11-01 00:15:28 +08:00
2026-11-09 20:17:25 +08:00
2026-11-16 04:00:00 +08:00
2026-11-14 13:21:13 +08:00
2026-11-14 05:27:07 +08:00
2026-11-15 17:07:09 +08:00
2026-11-13 10:11:06 -05:00
2026-11-14 14:16:39 +01:00
2026-11-08 00:01:18 +08:00
2026-11-15 17:25:31 +08:00
2026-11-15 17:07:09 +08:00
2026-11-13 06:06:47 -08:00