Skip to content

Commit 01f404d

Browse files
committed
Updated doc inconsistencies
1 parent f6a8084 commit 01f404d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/PLUGIN_DEVELOPMENT.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ import { log, getDefaultCommandExecutor, CommandExecutor } from '../../utils/ind
308308

309309
// Testable resource logic separated from MCP handler
310310
export async function exampleResourceLogic(
311-
executor: CommandExecutor = getDefaultCommandExecutor(),
311+
executor: CommandExecutor,
312312
): Promise<{ contents: Array<{ text: string }> }> {
313313
try {
314314
log('info', 'Processing example resource request');
@@ -343,7 +343,7 @@ export default {
343343
description: 'Description of the resource data',
344344
mimeType: 'text/plain',
345345
async handler(_uri: URL): Promise<{ contents: Array<{ text: string }> }> {
346-
return exampleResourceLogic();
346+
return exampleResourceLogic(getDefaultCommandExecutor());
347347
},
348348
};
349349
```

0 commit comments

Comments
 (0)