Skip to content

Commit 8479dc2

Browse files
committed
refactor: CR changes
1 parent 4931f80 commit 8479dc2

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"dist"
5555
],
5656
"scripts": {
57-
"start": "node dist/index.js --transport http --loggers stderr mcp --previewFeatures vectorSearch",
57+
"start": "node dist/index.js --transport http --loggers stderr mcp --previewFeatures search",
5858
"start:stdio": "node dist/index.js --transport stdio --loggers stderr mcp",
5959
"prepare": "husky && pnpm run build",
6060
"build:clean": "rm -rf dist",
@@ -99,6 +99,8 @@
9999
"@types/proper-lockfile": "^4.1.4",
100100
"@types/react": "^18.3.0",
101101
"@types/react-dom": "^19.2.3",
102+
"react": "^18.3.0",
103+
"react-dom": "^18.3.0",
102104
"@types/semver": "^7.7.0",
103105
"@types/yargs-parser": "^21.0.3",
104106
"@typescript-eslint/parser": "^8.44.0",
@@ -152,8 +154,6 @@
152154
"node-machine-id": "1.1.12",
153155
"oauth4webapi": "^3.8.0",
154156
"openapi-fetch": "^0.15.0",
155-
"react": "^18.3.0",
156-
"react-dom": "^18.3.0",
157157
"ts-levenshtein": "^1.0.7",
158158
"voyage-ai-provider": "^2.0.0",
159159
"zod": "^3.25.76"

pnpm-lock.yaml

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/tools/tool.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ export abstract class ToolBase {
482482
});
483483

484484
const result = await this.execute(args, { signal });
485-
const finalResult = this.appendUIResourceIfAvailable(result);
485+
const finalResult = this.appendUIResource(result);
486486

487487
this.emitToolEvent(args, { startTime, result: finalResult });
488488

@@ -727,7 +727,7 @@ export abstract class ToolBase {
727727
* @param result - The result from the tool's `execute()` method
728728
* @returns The result with UIResource appended if conditions are met, otherwise unchanged
729729
*/
730-
private appendUIResourceIfAvailable(result: CallToolResult): CallToolResult {
730+
private appendUIResource(result: CallToolResult): CallToolResult {
731731
if (!this.isFeatureEnabled("mcpUI")) {
732732
return result;
733733
}

0 commit comments

Comments
 (0)