mirror of
https://github.com/morluto/rea
synced 2026-10-25 22:08:11 -04:00
test(ida): preserve exact optional resource method shape
This commit is contained in:
Vendored
+1
-1
@@ -95,7 +95,7 @@ export class RecordingIdaMcp implements IdaMcpConnection {
|
||||
}
|
||||
/** Tool names the fake server advertises; defaults to the profile's full set. */
|
||||
tools?: readonly string[];
|
||||
readResource?: IdaMcpConnection["readResource"];
|
||||
readResource?: NonNullable<IdaMcpConnection["readResource"]>;
|
||||
async connect() {
|
||||
this.connects += 1;
|
||||
return this.tools ?? (this.mode === "attached" ? legacyNames : modernNames);
|
||||
|
||||
Reference in New Issue
Block a user