test(ida): preserve exact optional resource method shape
This commit is contained in:
1 parent
ce9cb72559
commit
f33ab9bf38
1 file changed
+1
-1
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