🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
refactor(web): move MCP tools under the server folder (#16696)
Nikita Kabardin068579e67cd4
diff --git a/web/src/__tests__/server/mcp-public-api-tools.servertest.ts b/web/src/__tests__/server/mcp-public-api-tools.servertest.tsindex d668e17884..31c73c0685 100644--- a/web/src/__tests__/server/mcp-public-api-tools.servertest.ts+++ b/web/src/__tests__/server/mcp-public-api-tools.servertest.ts@@ -62,12 +62,12 @@ import {handleListAnnotationQueueItems,handleListAnnotationQueues,handleUpdateAnnotationQueueItem,-} from "@/src/features/mcp/features/annotationQueues/tools";+} from "@/src/features/mcp/server/annotationQueues/tools";import {handleCreateComment,handleGetComment,handleListComments,-} from "@/src/features/mcp/features/comments/tools";+} from "@/src/features/mcp/server/comments/tools";import {handleCreateDatasetRunItem,handleDeleteDatasetItem,@@ -82,18 +82,18 @@ import {handleUpsertDataset,handleUpsertDatasetItem,upsertDatasetTool,-} from "@/src/features/mcp/features/datasets/tools";-import { handleGetHealth } from "@/src/features/mcp/features/health/tools";+} from "@/src/features/mcp/server/datasets/tools";+import { handleGetHealth } from "@/src/features/mcp/server/health/tools";import {handleCreateModel,handleDeleteModel,handleGetModel,handleListModels,-} from "@/src/features/mcp/features/models/tools";-import { handleCreateScoreConfig } from "@/src/features/mcp/features/scores/tools/createScoreConfig";-import { handleGetScoreConfig } from "@/src/features/mcp/features/scores/tools/getScoreConfig";-import { handleListScoreConfigs } from "@/src/features/mcp/features/scores/tools/listScoreConfigs";-import { handleUpdateScoreConfig } from "@/src/features/mcp/features/scores/tools/updateScoreConfig";+} from "@/src/features/mcp/server/models/tools";+import { handleCreateScoreConfig } from "@/src/features/mcp/server/scores/tools/createScoreConfig";+import { handleGetScoreConfig } from "@/src/features/mcp/server/scores/tools/getScoreConfig";+import { handleListScoreConfigs } from "@/src/features/mcp/server/scores/tools/listScoreConfigs";+import { handleUpdateScoreConfig } from "@/src/features/mcp/server/scores/tools/updateScoreConfig";const createScoreConfig = async (projectId: string) =>prisma.scoreConfig.create({diff --git a/web/src/__tests__/server/mcp-tools-read.servertest.ts b/web/src/__tests__/server/mcp-tools-read.servertest.tsindex 796b6cdb28..1137a4305f 100644--- a/web/src/__tests__/server/mcp-tools-read.servertest.ts+++ b/web/src/__tests__/server/mcp-tools-read.servertest.ts@@ -70,7 +70,7 @@ import {import { env } from "@/src/env.mjs";import "@/src/features/mcp/server/bootstrap";import { toolRegistry } from "@/src/features/mcp/server/registry";-import { handleCreateDashboardWidget } from "@/src/features/mcp/features/dashboardWidgets/tools/createDashboardWidget";+import { handleCreateDashboardWidget } from "@/src/features/mcp/server/dashboardWidgets/tools/createDashboardWidget";import {getDashboardTool,getDashboardWidgetTool,@@ -81,122 +81,122 @@ import {handleListDashboardWidgets,listDashboardsTool,listDashboardWidgetsTool,-} from "@/src/features/mcp/features/dashboardWidgets/tools/dashboardCrud";+} from "@/src/features/mcp/server/dashboardWidgets/tools/dashboardCrud";// Import MCP tool handlers directlyimport {getObservationTool,handleGetObservation,-} from "@/src/features/mcp/features/observations/tools/getObservation";+} from "@/src/features/mcp/server/observations/tools/getObservation";import {getObservationFieldSchemaTool,handleGetObservationFieldSchema,-} from "@/src/features/mcp/features/observations/tools/getObservationFieldSchema";+} from "@/src/features/mcp/server/observations/tools/getObservationFieldSchema";import {getObservationFilterSchemaTool,handleGetObservationFilterSchema,-} from "@/src/features/mcp/features/observations/tools/getObservationFilterSchema";+} from "@/src/features/mcp/server/observations/tools/getObservationFilterSchema";import {getObservationFilterValuesTool,handleGetObservationFilterValues,-} from "@/src/features/mcp/features/observations/tools/getObservationFilterValues";+} from "@/src/features/mcp/server/observations/tools/getObservationFilterValues";import {listObservationsTool,handleListObservations,-} from "@/src/features/mcp/features/observations/tools/listObservations";+} from "@/src/features/mcp/server/observations/tools/listObservations";import {getMetricsSchemaTool,handleGetMetricsSchema,-} from "@/src/features/mcp/features/metrics/tools/getMetricsSchema";+} from "@/src/features/mcp/server/metrics/tools/getMetricsSchema";import {queryMetricsTool,handleQueryMetrics,-} from "@/src/features/mcp/features/metrics/tools/queryMetrics";+} from "@/src/features/mcp/server/metrics/tools/queryMetrics";import {getPromptTool,handleGetPrompt,-} from "@/src/features/mcp/features/prompts/tools/getPrompt";+} from "@/src/features/mcp/server/prompts/tools/getPrompt";import {getPromptUnresolvedTool,handleGetPromptUnresolved,-} from "@/src/features/mcp/features/prompts/tools/getPromptUnresolved";+} from "@/src/features/mcp/server/prompts/tools/getPromptUnresolved";import {listPromptsTool,handleListPrompts,-} from "@/src/features/mcp/features/prompts/tools/listPrompts";+} from "@/src/features/mcp/server/prompts/tools/listPrompts";import {createScoreConfigTool,handleCreateScoreConfig,-} from "@/src/features/mcp/features/scores/tools/createScoreConfig";+} from "@/src/features/mcp/server/scores/tools/createScoreConfig";import {createScoreTool,handleCreateScore,-} from "@/src/features/mcp/features/scores/tools/createScore";+} from "@/src/features/mcp/server/scores/tools/createScore";import {deleteScoreConfigTool,handleDeleteScoreConfig,-} from "@/src/features/mcp/features/scores/tools/deleteScoreConfig";+} from "@/src/features/mcp/server/scores/tools/deleteScoreConfig";import {getScoreTool,handleGetScore,-} from "@/src/features/mcp/features/scores/tools/getScore";+} from "@/src/features/mcp/server/scores/tools/getScore";import {getScoreConfigTool,handleGetScoreConfig,-} from "@/src/features/mcp/features/scores/tools/getScoreConfig";+} from "@/src/features/mcp/server/scores/tools/getScoreConfig";import {listScoreConfigsTool,handleListScoreConfigs,-} from "@/src/features/mcp/features/scores/tools/listScoreConfigs";+} from "@/src/features/mcp/server/scores/tools/listScoreConfigs";import {listScoresTool,handleListScores,-} from "@/src/features/mcp/features/scores/tools/listScores";+} from "@/src/features/mcp/server/scores/tools/listScores";import {updateScoreConfigTool,handleUpdateScoreConfig,-} from "@/src/features/mcp/features/scores/tools/updateScoreConfig";+} from "@/src/features/mcp/server/scores/tools/updateScoreConfig";import {getMediaTool,handleGetMedia,-} from "@/src/features/mcp/features/media/tools/getMedia";+} from "@/src/features/mcp/server/media/tools/getMedia";import {getEvaluatorTool,handleGetEvaluator,-} from "@/src/features/mcp/features/evals/tools/getEvaluator";+} from "@/src/features/mcp/server/evals/tools/getEvaluator";import {listEvaluatorsTool,handleListEvaluators,-} from "@/src/features/mcp/features/evals/tools/listEvaluators";+} from "@/src/features/mcp/server/evals/tools/listEvaluators";import {handleListManagedEvaluatorTemplates,listManagedEvaluatorTemplatesTool,-} from "@/src/features/mcp/features/evals/tools/listManagedEvaluatorTemplates";+} from "@/src/features/mcp/server/evals/tools/listManagedEvaluatorTemplates";import {getEvaluationRuleTool,handleGetEvaluationRule,-} from "@/src/features/mcp/features/evals/tools/getEvaluationRule";+} from "@/src/features/mcp/server/evals/tools/getEvaluationRule";import {listEvaluationRulesTool,handleListEvaluationRules,-} from "@/src/features/mcp/features/evals/tools/listEvaluationRules";-import { handleCreateEvaluator } from "@/src/features/mcp/features/evals/tools/createEvaluator";-import { handleCreateEvaluationRule } from "@/src/features/mcp/features/evals/tools/createEvaluationRule";+} from "@/src/features/mcp/server/evals/tools/listEvaluationRules";+import { handleCreateEvaluator } from "@/src/features/mcp/server/evals/tools/createEvaluator";+import { handleCreateEvaluationRule } from "@/src/features/mcp/server/evals/tools/createEvaluationRule";import {getMonitorTool,handleGetMonitor,-} from "@/src/features/mcp/features/monitors/tools/getMonitor";+} from "@/src/features/mcp/server/monitors/tools/getMonitor";import {listMonitorsTool,handleListMonitors,-} from "@/src/features/mcp/features/monitors/tools/listMonitors";+} from "@/src/features/mcp/server/monitors/tools/listMonitors";import {GetDatasetItemsMcpInput,GetDatasetMcpInput,GetDatasetRunMcpInput,GetDatasetRunsMcpInput,GetDatasetsMcpInput,-} from "@/src/features/mcp/features/datasets/schema";+} from "@/src/features/mcp/server/datasets/schema";const maybeEventsTable =env.LANGFUSE_MIGRATION_V4_ALLOW_PREVIEW_OPT_IN === "true"diff --git a/web/src/__tests__/server/mcp-tools-write.servertest.ts b/web/src/__tests__/server/mcp-tools-write.servertest.tsindex fa7710da31..8b70122d8c 100644--- a/web/src/__tests__/server/mcp-tools-write.servertest.ts+++ b/web/src/__tests__/server/mcp-tools-write.servertest.ts@@ -54,48 +54,48 @@ import {import {DeleteDatasetRunMcpInput,PostDatasetItemMcpInput,-} from "@/src/features/mcp/features/datasets/schema";+} from "@/src/features/mcp/server/datasets/schema";// Import MCP tool handlers directly-import { handleCreateTextPrompt } from "@/src/features/mcp/features/prompts/tools/createTextPrompt";-import { handleCreateChatPrompt } from "@/src/features/mcp/features/prompts/tools/createChatPrompt";-import { handleUpdatePromptLabels } from "@/src/features/mcp/features/prompts/tools/updatePromptLabels";-import { handleCreateAnnotationQueue } from "@/src/features/mcp/features/annotationQueues/tools";+import { handleCreateTextPrompt } from "@/src/features/mcp/server/prompts/tools/createTextPrompt";+import { handleCreateChatPrompt } from "@/src/features/mcp/server/prompts/tools/createChatPrompt";+import { handleUpdatePromptLabels } from "@/src/features/mcp/server/prompts/tools/updatePromptLabels";+import { handleCreateAnnotationQueue } from "@/src/features/mcp/server/annotationQueues/tools";import {createEvaluatorTool,handleCreateEvaluator,-} from "@/src/features/mcp/features/evals/tools/createEvaluator";+} from "@/src/features/mcp/server/evals/tools/createEvaluator";import {updateEvaluatorTool,handleUpdateEvaluator,-} from "@/src/features/mcp/features/evals/tools/updateEvaluator";+} from "@/src/features/mcp/server/evals/tools/updateEvaluator";import {createEvaluationRuleTool,handleCreateEvaluationRule,-} from "@/src/features/mcp/features/evals/tools/createEvaluationRule";+} from "@/src/features/mcp/server/evals/tools/createEvaluationRule";import {updateEvaluationRuleTool,handleUpdateEvaluationRule,-} from "@/src/features/mcp/features/evals/tools/updateEvaluationRule";+} from "@/src/features/mcp/server/evals/tools/updateEvaluationRule";import {deleteEvaluationRuleTool,handleDeleteEvaluationRule,-} from "@/src/features/mcp/features/evals/tools/deleteEvaluationRule";+} from "@/src/features/mcp/server/evals/tools/deleteEvaluationRule";import {deleteEvaluatorTool,handleDeleteEvaluator,-} from "@/src/features/mcp/features/evals/tools/deleteEvaluator";-import { handleGetEvaluationRule } from "@/src/features/mcp/features/evals/tools/getEvaluationRule";+} from "@/src/features/mcp/server/evals/tools/deleteEvaluator";+import { handleGetEvaluationRule } from "@/src/features/mcp/server/evals/tools/getEvaluationRule";import {attachEvaluatorToEvaluationRuleTool,detachEvaluatorFromEvaluationRuleTool,handleAttachEvaluatorToEvaluationRule,handleDetachEvaluatorFromEvaluationRule,-} from "@/src/features/mcp/features/evals/tools/manageEvaluationRuleEvaluators";+} from "@/src/features/mcp/server/evals/tools/manageEvaluationRuleEvaluators";import {createDashboardWidgetTool,handleCreateDashboardWidget,-} from "@/src/features/mcp/features/dashboardWidgets/tools/createDashboardWidget";+} from "@/src/features/mcp/server/dashboardWidgets/tools/createDashboardWidget";import {handleAddDashboardPlacement,handleCreateDashboard,@@ -107,7 +107,7 @@ import {handleUpdateDashboardPlacement,handleUpdateDashboard,handleUpdateDashboardWidget,-} from "@/src/features/mcp/features/dashboardWidgets/tools/dashboardCrud";+} from "@/src/features/mcp/server/dashboardWidgets/tools/dashboardCrud";const createScoreConfig = async (projectId: string) =>prisma.scoreConfig.create({diff --git a/web/src/__tests__/server/unit/evaluator-input.servertest.ts b/web/src/__tests__/server/unit/evaluator-input.servertest.tsindex a03a62897c..f95c04d096 100644--- a/web/src/__tests__/server/unit/evaluator-input.servertest.ts+++ b/web/src/__tests__/server/unit/evaluator-input.servertest.ts@@ -4,7 +4,7 @@ import { z } from "zod";import {McpEvaluatorInput,McpEvaluatorInputBase,-} from "@/src/features/mcp/features/evals/tools/evaluatorInput";+} from "@/src/features/mcp/server/evals/tools/evaluatorInput";const llmEvaluatorInput = {name: "Answer quality",diff --git a/web/src/__tests__/server/unit/feedback-service.servertest.ts b/web/src/__tests__/server/unit/feedback-service.servertest.tsindex 8db09346e6..7fe2e7b3b5 100644--- a/web/src/__tests__/server/unit/feedback-service.servertest.ts+++ b/web/src/__tests__/server/unit/feedback-service.servertest.ts@@ -40,7 +40,7 @@ import {isProductFeedbackAvailable,submitFeedback,} from "@/src/features/feedback/server/FeedbackService";-import { feedbackFeature } from "@/src/features/mcp/features/feedback";+import { feedbackFeature } from "@/src/features/mcp/server/feedback";import { getMcpServerInstructions } from "@/src/features/mcp/server/mcpServer";import { PostFeedbackBody } from "@/src/features/public-api/types/feedback";diff --git a/web/src/__tests__/server/unit/mcp-create-chat-prompt-placeholder.servertest.ts b/web/src/__tests__/server/unit/mcp-create-chat-prompt-placeholder.servertest.tsindex b64b8d6611..4756649a67 100644--- a/web/src/__tests__/server/unit/mcp-create-chat-prompt-placeholder.servertest.ts+++ b/web/src/__tests__/server/unit/mcp-create-chat-prompt-placeholder.servertest.ts@@ -3,7 +3,7 @@ import { describe, expect, it } from "vitest";import {ChatMessageSchema,createChatPromptTool,-} from "@/src/features/mcp/features/prompts/tools/createChatPrompt";+} from "@/src/features/mcp/server/prompts/tools/createChatPrompt";type JsonSchema = Record<string, unknown>;diff --git a/web/src/__tests__/server/unit/mcp-v4-migration.servertest.ts b/web/src/__tests__/server/unit/mcp-v4-migration.servertest.tsindex db5d437819..bb2f14a60f 100644--- a/web/src/__tests__/server/unit/mcp-v4-migration.servertest.ts+++ b/web/src/__tests__/server/unit/mcp-v4-migration.servertest.ts@@ -15,7 +15,7 @@ vi.mock("@langfuse/shared/src/db", () => ({import {getV4MigrationDataTool,handleGetV4MigrationData,-} from "@/src/features/mcp/features/v4Migration/tools/getV4MigrationData";+} from "@/src/features/mcp/server/v4Migration/tools/getV4MigrationData";import { mockServerContext } from "@/src/__tests__/server/mcp-helpers";describe("getV4MigrationData MCP tool", () => {diff --git a/web/src/features/mcp/core/validation.ts b/web/src/features/mcp/core/validation.tsindex 6f8ca39642..6d14d6968a 100644--- a/web/src/features/mcp/core/validation.ts+++ b/web/src/features/mcp/core/validation.ts@@ -6,7 +6,7 @@** @example* // Prompt-specific schemas:- * import { ParamPromptName } from "../features/prompts/validation";+ * import { ParamPromptName } from "../server/prompts/validation";** // Cross-feature schemas:* import { ParamProjectId, ParamLimit } from "../core/validation";diff --git a/web/src/features/mcp/features/annotationQueues/index.ts b/web/src/features/mcp/server/annotationQueues/index.tssimilarity index 97%rename from web/src/features/mcp/features/annotationQueues/index.tsrename to web/src/features/mcp/server/annotationQueues/index.tsindex 937e5ab030..d7121fb593 100644--- a/web/src/features/mcp/features/annotationQueues/index.ts+++ b/web/src/features/mcp/server/annotationQueues/index.ts@@ -1,4 +1,4 @@-import type { McpFeatureModule } from "../../server/registry";+import type { McpFeatureModule } from "../registry";import {createAnnotationQueueAssignmentTool,handleCreateAnnotationQueueAssignment,diff --git a/web/src/features/mcp/features/annotationQueues/schema.ts b/web/src/features/mcp/server/annotationQueues/schema.tssimilarity index 100%rename from web/src/features/mcp/features/annotationQueues/schema.tsrename to web/src/features/mcp/server/annotationQueues/schema.tsdiff --git a/web/src/features/mcp/features/annotationQueues/tools/createAnnotationQueue.ts b/web/src/features/mcp/server/annotationQueues/tools/createAnnotationQueue.tssimilarity index 100%rename from web/src/features/mcp/features/annotationQueues/tools/createAnnotationQueue.tsrename to web/src/features/mcp/server/annotationQueues/tools/createAnnotationQueue.tsdiff --git a/web/src/features/mcp/features/annotationQueues/tools/createAnnotationQueueAssignment.ts b/web/src/features/mcp/server/annotationQueues/tools/createAnnotationQueueAssignment.tssimilarity index 100%rename from web/src/features/mcp/features/annotationQueues/tools/createAnnotationQueueAssignment.tsrename to web/src/features/mcp/server/annotationQueues/tools/createAnnotationQueueAssignment.tsdiff --git a/web/src/features/mcp/features/annotationQueues/tools/createAnnotationQueueItem.ts b/web/src/features/mcp/server/annotationQueues/tools/createAnnotationQueueItem.tssimilarity index 100%rename from web/src/features/mcp/features/annotationQueues/tools/createAnnotationQueueItem.tsrename to web/src/features/mcp/server/annotationQueues/tools/createAnnotationQueueItem.tsdiff --git a/web/src/features/mcp/features/annotationQueues/tools/deleteAnnotationQueueAssignment.ts b/web/src/features/mcp/server/annotationQueues/tools/deleteAnnotationQueueAssignment.tssimilarity index 100%rename from web/src/features/mcp/features/annotationQueues/tools/deleteAnnotationQueueAssignment.tsrename to web/src/features/mcp/server/annotationQueues/tools/deleteAnnotationQueueAssignment.tsdiff --git a/web/src/features/mcp/features/annotationQueues/tools/deleteAnnotationQueueItem.ts b/web/src/features/mcp/server/annotationQueues/tools/deleteAnnotationQueueItem.tssimilarity index 100%rename from web/src/features/mcp/features/annotationQueues/tools/deleteAnnotationQueueItem.tsrename to web/src/features/mcp/server/annotationQueues/tools/deleteAnnotationQueueItem.tsdiff --git a/web/src/features/mcp/features/annotationQueues/tools/getAnnotationQueue.ts b/web/src/features/mcp/server/annotationQueues/tools/getAnnotationQueue.tssimilarity index 100%rename from web/src/features/mcp/features/annotationQueues/tools/getAnnotationQueue.tsrename to web/src/features/mcp/server/annotationQueues/tools/getAnnotationQueue.tsdiff --git a/web/src/features/mcp/features/annotationQueues/tools/getAnnotationQueueItem.ts b/web/src/features/mcp/server/annotationQueues/tools/getAnnotationQueueItem.tssimilarity index 100%rename from web/src/features/mcp/features/annotationQueues/tools/getAnnotationQueueItem.tsrename to web/src/features/mcp/server/annotationQueues/tools/getAnnotationQueueItem.tsdiff --git a/web/src/features/mcp/features/annotationQueues/tools/index.ts b/web/src/features/mcp/server/annotationQueues/tools/index.tssimilarity index 100%rename from web/src/features/mcp/features/annotationQueues/tools/index.tsrename to web/src/features/mcp/server/annotationQueues/tools/index.tsdiff --git a/web/src/features/mcp/features/annotationQueues/tools/listAnnotationQueueItems.ts b/web/src/features/mcp/server/annotationQueues/tools/listAnnotationQueueItems.tssimilarity index 100%rename from web/src/features/mcp/features/annotationQueues/tools/listAnnotationQueueItems.tsrename to web/src/features/mcp/server/annotationQueues/tools/listAnnotationQueueItems.tsdiff --git a/web/src/features/mcp/features/annotationQueues/tools/listAnnotationQueues.ts b/web/src/features/mcp/server/annotationQueues/tools/listAnnotationQueues.tssimilarity index 100%rename from web/src/features/mcp/features/annotationQueues/tools/listAnnotationQueues.tsrename to web/src/features/mcp/server/annotationQueues/tools/listAnnotationQueues.tsdiff --git a/web/src/features/mcp/features/annotationQueues/tools/updateAnnotationQueueItem.ts b/web/src/features/mcp/server/annotationQueues/tools/updateAnnotationQueueItem.tssimilarity index 100%rename from web/src/features/mcp/features/annotationQueues/tools/updateAnnotationQueueItem.tsrename to web/src/features/mcp/server/annotationQueues/tools/updateAnnotationQueueItem.tsdiff --git a/web/src/features/mcp/server/bootstrap.ts b/web/src/features/mcp/server/bootstrap.tsindex 3c9998d0bb..e0ef06993d 100644--- a/web/src/features/mcp/server/bootstrap.ts+++ b/web/src/features/mcp/server/bootstrap.ts@@ -5,28 +5,28 @@* This file is imported once when the server starts to initialize the tool registry.** To add a new MCP feature:- * 1. Create feature module in /features/[feature-name]/+ * 1. Create feature module in /server/[feature-name]/* 2. Import feature module here* 3. Call toolRegistry.register(featureModule)*/import { toolRegistry, type McpFeatureModule } from "./registry";-import { promptsFeature } from "../features/prompts";-import { observationsFeature } from "../features/observations";-import { annotationQueuesFeature } from "../features/annotationQueues";-import { commentsFeature } from "../features/comments";-import { datasetsFeature } from "../features/datasets";-import { healthFeature } from "../features/health";-import { scoresFeature } from "../features/scores";-import { metricsFeature } from "../features/metrics";-import { modelsFeature } from "../features/models";-import { mediaFeature } from "../features/media";-import { evalsFeature } from "../features/evals";-import { dashboardWidgetsFeature } from "../features/dashboardWidgets";-import { feedbackFeature } from "../features/feedback";-import { experimentsFeature } from "../features/experiments";-import { monitorsFeature } from "../features/monitors";-import { v4MigrationFeature } from "../features/v4Migration";+import { promptsFeature } from "./prompts";+import { observationsFeature } from "./observations";+import { annotationQueuesFeature } from "./annotationQueues";+import { commentsFeature } from "./comments";+import { datasetsFeature } from "./datasets";+import { healthFeature } from "./health";+import { scoresFeature } from "./scores";+import { metricsFeature } from "./metrics";+import { modelsFeature } from "./models";+import { mediaFeature } from "./media";+import { evalsFeature } from "./evals";+import { dashboardWidgetsFeature } from "./dashboardWidgets";+import { feedbackFeature } from "./feedback";+import { experimentsFeature } from "./experiments";+import { monitorsFeature } from "./monitors";+import { v4MigrationFeature } from "./v4Migration";const MCP_FEATURES = [promptsFeature,diff --git a/web/src/features/mcp/features/comments/index.ts b/web/src/features/mcp/server/comments/index.tssimilarity index 90%rename from web/src/features/mcp/features/comments/index.tsrename to web/src/features/mcp/server/comments/index.tsindex 909ab3cb11..e28b9e2948 100644--- a/web/src/features/mcp/features/comments/index.ts+++ b/web/src/features/mcp/server/comments/index.ts@@ -1,4 +1,4 @@-import type { McpFeatureModule } from "../../server/registry";+import type { McpFeatureModule } from "../registry";import { createCommentTool, handleCreateComment } from "./tools/createComment";import { getCommentTool, handleGetComment } from "./tools/getComment";import { handleListComments, listCommentsTool } from "./tools/listComments";diff --git a/web/src/features/mcp/features/comments/tools/createComment.ts b/web/src/features/mcp/server/comments/tools/createComment.tssimilarity index 100%rename from web/src/features/mcp/features/comments/tools/createComment.tsrename to web/src/features/mcp/server/comments/tools/createComment.tsdiff --git a/web/src/features/mcp/features/comments/tools/getComment.ts b/web/src/features/mcp/server/comments/tools/getComment.tssimilarity index 100%rename from web/src/features/mcp/features/comments/tools/getComment.tsrename to web/src/features/mcp/server/comments/tools/getComment.tsdiff --git a/web/src/features/mcp/features/comments/tools/index.ts b/web/src/features/mcp/server/comments/tools/index.tssimilarity index 100%rename from web/src/features/mcp/features/comments/tools/index.tsrename to web/src/features/mcp/server/comments/tools/index.tsdiff --git a/web/src/features/mcp/features/comments/tools/listComments.ts b/web/src/features/mcp/server/comments/tools/listComments.tssimilarity index 100%rename from web/src/features/mcp/features/comments/tools/listComments.tsrename to web/src/features/mcp/server/comments/tools/listComments.tsdiff --git a/web/src/features/mcp/features/dashboardWidgets/index.ts b/web/src/features/mcp/server/dashboardWidgets/index.tssimilarity index 96%rename from web/src/features/mcp/features/dashboardWidgets/index.tsrename to web/src/features/mcp/server/dashboardWidgets/index.tsindex aa70c5ac0d..0be723ec74 100644--- a/web/src/features/mcp/features/dashboardWidgets/index.ts+++ b/web/src/features/mcp/server/dashboardWidgets/index.ts@@ -1,4 +1,4 @@-import type { McpFeatureModule } from "../../server/registry";+import type { McpFeatureModule } from "../registry";import {createDashboardWidgetTool,handleCreateDashboardWidget,diff --git a/web/src/features/mcp/features/dashboardWidgets/tools/createDashboardWidget.ts b/web/src/features/mcp/server/dashboardWidgets/tools/createDashboardWidget.tssimilarity index 100%rename from web/src/features/mcp/features/dashboardWidgets/tools/createDashboardWidget.tsrename to web/src/features/mcp/server/dashboardWidgets/tools/createDashboardWidget.tsdiff --git a/web/src/features/mcp/features/dashboardWidgets/tools/dashboardCrud.ts b/web/src/features/mcp/server/dashboardWidgets/tools/dashboardCrud.tssimilarity index 99%rename from web/src/features/mcp/features/dashboardWidgets/tools/dashboardCrud.tsrename to web/src/features/mcp/server/dashboardWidgets/tools/dashboardCrud.tsindex 5acdde42d0..2964065c36 100644--- a/web/src/features/mcp/features/dashboardWidgets/tools/dashboardCrud.ts+++ b/web/src/features/mcp/server/dashboardWidgets/tools/dashboardCrud.ts@@ -6,7 +6,7 @@ import { runMcpTool } from "@/src/features/mcp/core/run-mcp-tool";import {DashboardWidgetChartConfigBaseSchema,DashboardWidgetFilterBaseSchema,-} from "@/src/features/mcp/features/dashboardWidgets/tools/createDashboardWidget";+} from "@/src/features/mcp/server/dashboardWidgets/tools/createDashboardWidget";import {buildDashboardUrl,buildDashboardWidgetUrl,diff --git a/web/src/features/mcp/features/datasets/events-only-guard.ts b/web/src/features/mcp/server/datasets/events-only-guard.tssimilarity index 100%rename from web/src/features/mcp/features/datasets/events-only-guard.tsrename to web/src/features/mcp/server/datasets/events-only-guard.tsdiff --git a/web/src/features/mcp/features/datasets/index.ts b/web/src/features/mcp/server/datasets/index.tssimilarity index 97%rename from web/src/features/mcp/features/datasets/index.tsrename to web/src/features/mcp/server/datasets/index.tsindex d3f0a5988e..821f2a143c 100644--- a/web/src/features/mcp/features/datasets/index.ts+++ b/web/src/features/mcp/server/datasets/index.ts@@ -1,4 +1,4 @@-import type { McpFeatureModule } from "../../server/registry";+import type { McpFeatureModule } from "../registry";import { upsertDatasetTool, handleUpsertDataset } from "./tools/upsertDataset";import {upsertDatasetItemTool,diff --git a/web/src/features/mcp/features/datasets/schema.ts b/web/src/features/mcp/server/datasets/schema.tssimilarity index 100%rename from web/src/features/mcp/features/datasets/schema.tsrename to web/src/features/mcp/server/datasets/schema.tsdiff --git a/web/src/features/mcp/features/datasets/tools/createDatasetRunItem.ts b/web/src/features/mcp/server/datasets/tools/createDatasetRunItem.tssimilarity index 100%rename from web/src/features/mcp/features/datasets/tools/createDatasetRunItem.tsrename to web/src/features/mcp/server/datasets/tools/createDatasetRunItem.tsdiff --git a/web/src/features/mcp/features/datasets/tools/deleteDatasetItem.ts b/web/src/features/mcp/server/datasets/tools/deleteDatasetItem.tssimilarity index 100%rename from web/src/features/mcp/features/datasets/tools/deleteDatasetItem.tsrename to web/src/features/mcp/server/datasets/tools/deleteDatasetItem.tsdiff --git a/web/src/features/mcp/features/datasets/tools/deleteDatasetRun.ts b/web/src/features/mcp/server/datasets/tools/deleteDatasetRun.tssimilarity index 100%rename from web/src/features/mcp/features/datasets/tools/deleteDatasetRun.tsrename to web/src/features/mcp/server/datasets/tools/deleteDatasetRun.tsdiff --git a/web/src/features/mcp/features/datasets/tools/getDataset.ts b/web/src/features/mcp/server/datasets/tools/getDataset.tssimilarity index 100%rename from web/src/features/mcp/features/datasets/tools/getDataset.tsrename to web/src/features/mcp/server/datasets/tools/getDataset.tsdiff --git a/web/src/features/mcp/features/datasets/tools/getDatasetItem.ts b/web/src/features/mcp/server/datasets/tools/getDatasetItem.tssimilarity index 100%rename from web/src/features/mcp/features/datasets/tools/getDatasetItem.tsrename to web/src/features/mcp/server/datasets/tools/getDatasetItem.tsdiff --git a/web/src/features/mcp/features/datasets/tools/getDatasetRun.ts b/web/src/features/mcp/server/datasets/tools/getDatasetRun.tssimilarity index 100%rename from web/src/features/mcp/features/datasets/tools/getDatasetRun.tsrename to web/src/features/mcp/server/datasets/tools/getDatasetRun.tsdiff --git a/web/src/features/mcp/features/datasets/tools/index.ts b/web/src/features/mcp/server/datasets/tools/index.tssimilarity index 100%rename from web/src/features/mcp/features/datasets/tools/index.tsrename to web/src/features/mcp/server/datasets/tools/index.tsdiff --git a/web/src/features/mcp/features/datasets/tools/listDatasetItems.ts b/web/src/features/mcp/server/datasets/tools/listDatasetItems.tssimilarity index 100%rename from web/src/features/mcp/features/datasets/tools/listDatasetItems.tsrename to web/src/features/mcp/server/datasets/tools/listDatasetItems.tsdiff --git a/web/src/features/mcp/features/datasets/tools/listDatasetRunItems.ts b/web/src/features/mcp/server/datasets/tools/listDatasetRunItems.tssimilarity index 100%rename from web/src/features/mcp/features/datasets/tools/listDatasetRunItems.tsrename to web/src/features/mcp/server/datasets/tools/listDatasetRunItems.tsdiff --git a/web/src/features/mcp/features/datasets/tools/listDatasetRuns.ts b/web/src/features/mcp/server/datasets/tools/listDatasetRuns.tssimilarity index 100%rename from web/src/features/mcp/features/datasets/tools/listDatasetRuns.tsrename to web/src/features/mcp/server/datasets/tools/listDatasetRuns.tsdiff --git a/web/src/features/mcp/features/datasets/tools/listDatasets.ts b/web/src/features/mcp/server/datasets/tools/listDatasets.tssimilarity index 100%rename from web/src/features/mcp/features/datasets/tools/listDatasets.tsrename to web/src/features/mcp/server/datasets/tools/listDatasets.tsdiff --git a/web/src/features/mcp/features/datasets/tools/upsertDataset.ts b/web/src/features/mcp/server/datasets/tools/upsertDataset.tssimilarity index 100%rename from web/src/features/mcp/features/datasets/tools/upsertDataset.tsrename to web/src/features/mcp/server/datasets/tools/upsertDataset.tsdiff --git a/web/src/features/mcp/features/datasets/tools/upsertDatasetItem.ts b/web/src/features/mcp/server/datasets/tools/upsertDatasetItem.tssimilarity index 100%rename from web/src/features/mcp/features/datasets/tools/upsertDatasetItem.tsrename to web/src/features/mcp/server/datasets/tools/upsertDatasetItem.tsdiff --git a/web/src/features/mcp/features/evals/evaluator-service.ts b/web/src/features/mcp/server/evals/evaluator-service.tssimilarity index 100%rename from web/src/features/mcp/features/evals/evaluator-service.tsrename to web/src/features/mcp/server/evals/evaluator-service.tsdiff --git a/web/src/features/mcp/features/evals/index.ts b/web/src/features/mcp/server/evals/index.tssimilarity index 97%rename from web/src/features/mcp/features/evals/index.tsrename to web/src/features/mcp/server/evals/index.tsindex 505261263b..a61531fbec 100644--- a/web/src/features/mcp/features/evals/index.ts+++ b/web/src/features/mcp/server/evals/index.ts@@ -1,4 +1,4 @@-import type { McpFeatureModule } from "../../server/registry";+import type { McpFeatureModule } from "../registry";import {listEvaluatorsTool,handleListEvaluators,diff --git a/web/src/features/mcp/features/evals/rule-schema.ts b/web/src/features/mcp/server/evals/rule-schema.tssimilarity index 100%rename from web/src/features/mcp/features/evals/rule-schema.tsrename to web/src/features/mcp/server/evals/rule-schema.tsdiff --git a/web/src/features/mcp/features/evals/rule-service.ts b/web/src/features/mcp/server/evals/rule-service.tssimilarity index 100%rename from web/src/features/mcp/features/evals/rule-service.tsrename to web/src/features/mcp/server/evals/rule-service.tsdiff --git a/web/src/features/mcp/features/evals/tools/createEvaluationRule.ts b/web/src/features/mcp/server/evals/tools/createEvaluationRule.tssimilarity index 100%rename from web/src/features/mcp/features/evals/tools/createEvaluationRule.tsrename to web/src/features/mcp/server/evals/tools/createEvaluationRule.tsdiff --git a/web/src/features/mcp/features/evals/tools/createEvaluator.ts b/web/src/features/mcp/server/evals/tools/createEvaluator.tssimilarity index 100%rename from web/src/features/mcp/features/evals/tools/createEvaluator.tsrename to web/src/features/mcp/server/evals/tools/createEvaluator.tsdiff --git a/web/src/features/mcp/features/evals/tools/deleteEvaluationRule.ts b/web/src/features/mcp/server/evals/tools/deleteEvaluationRule.tssimilarity index 100%rename from web/src/features/mcp/features/evals/tools/deleteEvaluationRule.tsrename to web/src/features/mcp/server/evals/tools/deleteEvaluationRule.tsdiff --git a/web/src/features/mcp/features/evals/tools/deleteEvaluator.ts b/web/src/features/mcp/server/evals/tools/deleteEvaluator.tssimilarity index 100%rename from web/src/features/mcp/features/evals/tools/deleteEvaluator.tsrename to web/src/features/mcp/server/evals/tools/deleteEvaluator.tsdiff --git a/web/src/features/mcp/features/evals/tools/evaluatorInput.ts b/web/src/features/mcp/server/evals/tools/evaluatorInput.tssimilarity index 100%rename from web/src/features/mcp/features/evals/tools/evaluatorInput.tsrename to web/src/features/mcp/server/evals/tools/evaluatorInput.tsdiff --git a/web/src/features/mcp/features/evals/tools/getEvaluationRule.ts b/web/src/features/mcp/server/evals/tools/getEvaluationRule.tssimilarity index 100%rename from web/src/features/mcp/features/evals/tools/getEvaluationRule.tsrename to web/src/features/mcp/server/evals/tools/getEvaluationRule.tsdiff --git a/web/src/features/mcp/features/evals/tools/getEvaluator.ts b/web/src/features/mcp/server/evals/tools/getEvaluator.tssimilarity index 100%rename from web/src/features/mcp/features/evals/tools/getEvaluator.tsrename to web/src/features/mcp/server/evals/tools/getEvaluator.tsdiff --git a/web/src/features/mcp/features/evals/tools/listEvaluationRules.ts b/web/src/features/mcp/server/evals/tools/listEvaluationRules.tssimilarity index 100%rename from web/src/features/mcp/features/evals/tools/listEvaluationRules.tsrename to web/src/features/mcp/server/evals/tools/listEvaluationRules.tsdiff --git a/web/src/features/mcp/features/evals/tools/listEvaluators.ts b/web/src/features/mcp/server/evals/tools/listEvaluators.tssimilarity index 100%rename from web/src/features/mcp/features/evals/tools/listEvaluators.tsrename to web/src/features/mcp/server/evals/tools/listEvaluators.tsdiff --git a/web/src/features/mcp/features/evals/tools/listManagedEvaluatorTemplates.ts b/web/src/features/mcp/server/evals/tools/listManagedEvaluatorTemplates.tssimilarity index 100%rename from web/src/features/mcp/features/evals/tools/listManagedEvaluatorTemplates.tsrename to web/src/features/mcp/server/evals/tools/listManagedEvaluatorTemplates.tsdiff --git a/web/src/features/mcp/features/evals/tools/manageEvaluationRuleEvaluators.ts b/web/src/features/mcp/server/evals/tools/manageEvaluationRuleEvaluators.tssimilarity index 100%rename from web/src/features/mcp/features/evals/tools/manageEvaluationRuleEvaluators.tsrename to web/src/features/mcp/server/evals/tools/manageEvaluationRuleEvaluators.tsdiff --git a/web/src/features/mcp/features/evals/tools/updateEvaluationRule.ts b/web/src/features/mcp/server/evals/tools/updateEvaluationRule.tssimilarity index 100%rename from web/src/features/mcp/features/evals/tools/updateEvaluationRule.tsrename to web/src/features/mcp/server/evals/tools/updateEvaluationRule.tsdiff --git a/web/src/features/mcp/features/evals/tools/updateEvaluator.ts b/web/src/features/mcp/server/evals/tools/updateEvaluator.tssimilarity index 100%rename from web/src/features/mcp/features/evals/tools/updateEvaluator.tsrename to web/src/features/mcp/server/evals/tools/updateEvaluator.tsdiff --git a/web/src/features/mcp/features/experiments/index.ts b/web/src/features/mcp/server/experiments/index.tssimilarity index 90%rename from web/src/features/mcp/features/experiments/index.tsrename to web/src/features/mcp/server/experiments/index.tsindex fd3462554f..3700976af6 100644--- a/web/src/features/mcp/features/experiments/index.ts+++ b/web/src/features/mcp/server/experiments/index.ts@@ -1,5 +1,5 @@import { env } from "@/src/env.mjs";-import type { McpFeatureModule } from "../../server/registry";+import type { McpFeatureModule } from "../registry";import {handleListExperimentItems,handleListExperiments,diff --git a/web/src/features/mcp/features/experiments/schema.ts b/web/src/features/mcp/server/experiments/schema.tssimilarity index 100%rename from web/src/features/mcp/features/experiments/schema.tsrename to web/src/features/mcp/server/experiments/schema.tsdiff --git a/web/src/features/mcp/features/experiments/tools/index.ts b/web/src/features/mcp/server/experiments/tools/index.tssimilarity index 100%rename from web/src/features/mcp/features/experiments/tools/index.tsrename to web/src/features/mcp/server/experiments/tools/index.tsdiff --git a/web/src/features/mcp/features/experiments/tools/listExperimentItems.ts b/web/src/features/mcp/server/experiments/tools/listExperimentItems.tssimilarity index 100%rename from web/src/features/mcp/features/experiments/tools/listExperimentItems.tsrename to web/src/features/mcp/server/experiments/tools/listExperimentItems.tsdiff --git a/web/src/features/mcp/features/experiments/tools/listExperiments.ts b/web/src/features/mcp/server/experiments/tools/listExperiments.tssimilarity index 100%rename from web/src/features/mcp/features/experiments/tools/listExperiments.tsrename to web/src/features/mcp/server/experiments/tools/listExperiments.tsdiff --git a/web/src/features/mcp/features/feedback/index.ts b/web/src/features/mcp/server/feedback/index.tssimilarity index 89%rename from web/src/features/mcp/features/feedback/index.tsrename to web/src/features/mcp/server/feedback/index.tsindex 98fa784508..d9835075d4 100644--- a/web/src/features/mcp/features/feedback/index.ts+++ b/web/src/features/mcp/server/feedback/index.ts@@ -1,5 +1,5 @@import { isProductFeedbackAvailable } from "@/src/features/feedback/server/FeedbackService";-import type { McpFeatureModule } from "../../server/registry";+import type { McpFeatureModule } from "../registry";import {handleSubmitFeedback,submitFeedbackTool,diff --git a/web/src/features/mcp/features/feedback/tools/submitFeedback.ts b/web/src/features/mcp/server/feedback/tools/submitFeedback.tssimilarity index 100%rename from web/src/features/mcp/features/feedback/tools/submitFeedback.tsrename to web/src/features/mcp/server/feedback/tools/submitFeedback.tsdiff --git a/web/src/features/mcp/features/health/index.ts b/web/src/features/mcp/server/health/index.tssimilarity index 82%rename from web/src/features/mcp/features/health/index.tsrename to web/src/features/mcp/server/health/index.tsindex 7b83afeac4..152a49d580 100644--- a/web/src/features/mcp/features/health/index.ts+++ b/web/src/features/mcp/server/health/index.ts@@ -1,4 +1,4 @@-import type { McpFeatureModule } from "../../server/registry";+import type { McpFeatureModule } from "../registry";import { getHealthTool, handleGetHealth } from "./tools/getHealth";export const healthFeature = {diff --git a/web/src/features/mcp/features/health/tools/getHealth.ts b/web/src/features/mcp/server/health/tools/getHealth.tssimilarity index 100%rename from web/src/features/mcp/features/health/tools/getHealth.tsrename to web/src/features/mcp/server/health/tools/getHealth.tsdiff --git a/web/src/features/mcp/features/health/tools/index.ts b/web/src/features/mcp/server/health/tools/index.tssimilarity index 100%rename from web/src/features/mcp/features/health/tools/index.tsrename to web/src/features/mcp/server/health/tools/index.tsdiff --git a/web/src/features/mcp/features/media/index.ts b/web/src/features/mcp/server/media/index.tssimilarity index 85%rename from web/src/features/mcp/features/media/index.tsrename to web/src/features/mcp/server/media/index.tsindex 50b04aca29..f57db5bbe5 100644--- a/web/src/features/mcp/features/media/index.ts+++ b/web/src/features/mcp/server/media/index.ts@@ -1,4 +1,4 @@-import type { McpFeatureModule } from "../../server/registry";+import type { McpFeatureModule } from "../registry";import { getMediaTool, handleGetMedia } from "./tools/getMedia";export const mediaFeature = {diff --git a/web/src/features/mcp/features/media/tools/getMedia.ts b/web/src/features/mcp/server/media/tools/getMedia.tssimilarity index 100%rename from web/src/features/mcp/features/media/tools/getMedia.tsrename to web/src/features/mcp/server/media/tools/getMedia.tsdiff --git a/web/src/features/mcp/features/metrics/index.ts b/web/src/features/mcp/server/metrics/index.tssimilarity index 91%rename from web/src/features/mcp/features/metrics/index.tsrename to web/src/features/mcp/server/metrics/index.tsindex 8c23d2ef7e..b3282ee402 100644--- a/web/src/features/mcp/features/metrics/index.ts+++ b/web/src/features/mcp/server/metrics/index.ts@@ -1,5 +1,5 @@import { env } from "@/src/env.mjs";-import type { McpFeatureModule } from "../../server/registry";+import type { McpFeatureModule } from "../registry";import {getMetricsSchemaTool,handleGetMetricsSchema,diff --git a/web/src/features/mcp/features/metrics/tools/getMetricsSchema.ts b/web/src/features/mcp/server/metrics/tools/getMetricsSchema.tssimilarity index 100%rename from web/src/features/mcp/features/metrics/tools/getMetricsSchema.tsrename to web/src/features/mcp/server/metrics/tools/getMetricsSchema.tsdiff --git a/web/src/features/mcp/features/metrics/tools/queryMetrics.ts b/web/src/features/mcp/server/metrics/tools/queryMetrics.tssimilarity index 100%rename from web/src/features/mcp/features/metrics/tools/queryMetrics.tsrename to web/src/features/mcp/server/metrics/tools/queryMetrics.tsdiff --git a/web/src/features/mcp/features/models/index.ts b/web/src/features/mcp/server/models/index.tssimilarity index 91%rename from web/src/features/mcp/features/models/index.tsrename to web/src/features/mcp/server/models/index.tsindex 69f359dd2d..a0f4f99b00 100644--- a/web/src/features/mcp/features/models/index.ts+++ b/web/src/features/mcp/server/models/index.ts@@ -1,4 +1,4 @@-import type { McpFeatureModule } from "../../server/registry";+import type { McpFeatureModule } from "../registry";import { createModelTool, handleCreateModel } from "./tools/createModel";import { deleteModelTool, handleDeleteModel } from "./tools/deleteModel";import { getModelTool, handleGetModel } from "./tools/getModel";diff --git a/web/src/features/mcp/features/models/tools/createModel.ts b/web/src/features/mcp/server/models/tools/createModel.tssimilarity index 100%rename from web/src/features/mcp/features/models/tools/createModel.tsrename to web/src/features/mcp/server/models/tools/createModel.tsdiff --git a/web/src/features/mcp/features/models/tools/deleteModel.ts b/web/src/features/mcp/server/models/tools/deleteModel.tssimilarity index 100%rename from web/src/features/mcp/features/models/tools/deleteModel.tsrename to web/src/features/mcp/server/models/tools/deleteModel.tsdiff --git a/web/src/features/mcp/features/models/tools/getModel.ts b/web/src/features/mcp/server/models/tools/getModel.tssimilarity index 100%rename from web/src/features/mcp/features/models/tools/getModel.tsrename to web/src/features/mcp/server/models/tools/getModel.tsdiff --git a/web/src/features/mcp/features/models/tools/index.ts b/web/src/features/mcp/server/models/tools/index.tssimilarity index 100%rename from web/src/features/mcp/features/models/tools/index.tsrename to web/src/features/mcp/server/models/tools/index.tsdiff --git a/web/src/features/mcp/features/models/tools/listModels.ts b/web/src/features/mcp/server/models/tools/listModels.tssimilarity index 100%rename from web/src/features/mcp/features/models/tools/listModels.tsrename to web/src/features/mcp/server/models/tools/listModels.tsdiff --git a/web/src/features/mcp/features/monitors/index.ts b/web/src/features/mcp/server/monitors/index.tssimilarity index 89%rename from web/src/features/mcp/features/monitors/index.tsrename to web/src/features/mcp/server/monitors/index.tsindex ed8d1541c2..3890c694d7 100644--- a/web/src/features/mcp/features/monitors/index.ts+++ b/web/src/features/mcp/server/monitors/index.ts@@ -1,6 +1,6 @@import { env } from "@/src/env.mjs";-import type { McpFeatureModule } from "../../server/registry";+import type { McpFeatureModule } from "../registry";import { getMonitorTool, handleGetMonitor } from "./tools/getMonitor";import { listMonitorsTool, handleListMonitors } from "./tools/listMonitors";diff --git a/web/src/features/mcp/features/monitors/tools/getMonitor.ts b/web/src/features/mcp/server/monitors/tools/getMonitor.tssimilarity index 100%rename from web/src/features/mcp/features/monitors/tools/getMonitor.tsrename to web/src/features/mcp/server/monitors/tools/getMonitor.tsdiff --git a/web/src/features/mcp/features/monitors/tools/listMonitors.ts b/web/src/features/mcp/server/monitors/tools/listMonitors.tssimilarity index 100%rename from web/src/features/mcp/features/monitors/tools/listMonitors.tsrename to web/src/features/mcp/server/monitors/tools/listMonitors.tsdiff --git a/web/src/features/mcp/features/observations/index.ts b/web/src/features/mcp/server/observations/index.tssimilarity index 95%rename from web/src/features/mcp/features/observations/index.tsrename to web/src/features/mcp/server/observations/index.tsindex ef03f3ba1c..aef11c401e 100644--- a/web/src/features/mcp/features/observations/index.ts+++ b/web/src/features/mcp/server/observations/index.ts@@ -1,4 +1,4 @@-import type { McpFeatureModule } from "../../server/registry";+import type { McpFeatureModule } from "../registry";import {getObservationTool,handleGetObservation,diff --git a/web/src/features/mcp/features/observations/schema.ts b/web/src/features/mcp/server/observations/schema.tssimilarity index 100%rename from web/src/features/mcp/features/observations/schema.tsrename to web/src/features/mcp/server/observations/schema.tsdiff --git a/web/src/features/mcp/features/observations/tools/getObservation.ts b/web/src/features/mcp/server/observations/tools/getObservation.tssimilarity index 100%rename from web/src/features/mcp/features/observations/tools/getObservation.tsrename to web/src/features/mcp/server/observations/tools/getObservation.tsdiff --git a/web/src/features/mcp/features/observations/tools/getObservationFieldSchema.ts b/web/src/features/mcp/server/observations/tools/getObservationFieldSchema.tssimilarity index 100%rename from web/src/features/mcp/features/observations/tools/getObservationFieldSchema.tsrename to web/src/features/mcp/server/observations/tools/getObservationFieldSchema.tsdiff --git a/web/src/features/mcp/features/observations/tools/getObservationFilterSchema.ts b/web/src/features/mcp/server/observations/tools/getObservationFilterSchema.tssimilarity index 100%rename from web/src/features/mcp/features/observations/tools/getObservationFilterSchema.tsrename to web/src/features/mcp/server/observations/tools/getObservationFilterSchema.tsdiff --git a/web/src/features/mcp/features/observations/tools/getObservationFilterValues.ts b/web/src/features/mcp/server/observations/tools/getObservationFilterValues.tssimilarity index 100%rename from web/src/features/mcp/features/observations/tools/getObservationFilterValues.tsrename to web/src/features/mcp/server/observations/tools/getObservationFilterValues.tsdiff --git a/web/src/features/mcp/features/observations/tools/listObservations.ts b/web/src/features/mcp/server/observations/tools/listObservations.tssimilarity index 100%rename from web/src/features/mcp/features/observations/tools/listObservations.tsrename to web/src/features/mcp/server/observations/tools/listObservations.tsdiff --git a/web/src/features/mcp/features/prompts/index.ts b/web/src/features/mcp/server/prompts/index.tssimilarity index 97%rename from web/src/features/mcp/features/prompts/index.tsrename to web/src/features/mcp/server/prompts/index.tsindex 7088f9fe44..3a30025fe8 100644--- a/web/src/features/mcp/features/prompts/index.ts+++ b/web/src/features/mcp/server/prompts/index.ts@@ -13,7 +13,7 @@* - updatePromptLabels: Update labels on prompt versions (destructive)*/-import type { McpFeatureModule } from "../../server/registry";+import type { McpFeatureModule } from "../registry";import { getPromptTool, handleGetPrompt } from "./tools/getPrompt";import {getPromptUnresolvedTool,diff --git a/web/src/features/mcp/features/prompts/tools/createChatPrompt.ts b/web/src/features/mcp/server/prompts/tools/createChatPrompt.tssimilarity index 100%rename from web/src/features/mcp/features/prompts/tools/createChatPrompt.tsrename to web/src/features/mcp/server/prompts/tools/createChatPrompt.tsdiff --git a/web/src/features/mcp/features/prompts/tools/createTextPrompt.ts b/web/src/features/mcp/server/prompts/tools/createTextPrompt.tssimilarity index 100%rename from web/src/features/mcp/features/prompts/tools/createTextPrompt.tsrename to web/src/features/mcp/server/prompts/tools/createTextPrompt.tsdiff --git a/web/src/features/mcp/features/prompts/tools/getPrompt.ts b/web/src/features/mcp/server/prompts/tools/getPrompt.tssimilarity index 100%rename from web/src/features/mcp/features/prompts/tools/getPrompt.tsrename to web/src/features/mcp/server/prompts/tools/getPrompt.tsdiff --git a/web/src/features/mcp/features/prompts/tools/getPromptUnresolved.ts b/web/src/features/mcp/server/prompts/tools/getPromptUnresolved.tssimilarity index 100%rename from web/src/features/mcp/features/prompts/tools/getPromptUnresolved.tsrename to web/src/features/mcp/server/prompts/tools/getPromptUnresolved.tsdiff --git a/web/src/features/mcp/features/prompts/tools/listPrompts.ts b/web/src/features/mcp/server/prompts/tools/listPrompts.tssimilarity index 100%rename from web/src/features/mcp/features/prompts/tools/listPrompts.tsrename to web/src/features/mcp/server/prompts/tools/listPrompts.tsdiff --git a/web/src/features/mcp/features/prompts/tools/promptReadToolFactory.ts b/web/src/features/mcp/server/prompts/tools/promptReadToolFactory.tssimilarity index 100%rename from web/src/features/mcp/features/prompts/tools/promptReadToolFactory.tsrename to web/src/features/mcp/server/prompts/tools/promptReadToolFactory.tsdiff --git a/web/src/features/mcp/features/prompts/tools/updatePromptLabels.ts b/web/src/features/mcp/server/prompts/tools/updatePromptLabels.tssimilarity index 100%rename from web/src/features/mcp/features/prompts/tools/updatePromptLabels.tsrename to web/src/features/mcp/server/prompts/tools/updatePromptLabels.tsdiff --git a/web/src/features/mcp/features/prompts/validation.ts b/web/src/features/mcp/server/prompts/validation.tssimilarity index 100%rename from web/src/features/mcp/features/prompts/validation.tsrename to web/src/features/mcp/server/prompts/validation.tsdiff --git a/web/src/features/mcp/features/publicApi.ts b/web/src/features/mcp/server/publicApi.tssimilarity index 100%rename from web/src/features/mcp/features/publicApi.tsrename to web/src/features/mcp/server/publicApi.tsdiff --git a/web/src/features/mcp/features/scores/index.ts b/web/src/features/mcp/server/scores/index.tssimilarity index 96%rename from web/src/features/mcp/features/scores/index.tsrename to web/src/features/mcp/server/scores/index.tsindex 04741b5b4c..bfee906ca2 100644--- a/web/src/features/mcp/features/scores/index.ts+++ b/web/src/features/mcp/server/scores/index.ts@@ -1,4 +1,4 @@-import type { McpFeatureModule } from "../../server/registry";+import type { McpFeatureModule } from "../registry";import { getScoreTool, handleGetScore } from "./tools/getScore";import {getScoreConfigTool,diff --git a/web/src/features/mcp/features/scores/schema.ts b/web/src/features/mcp/server/scores/schema.tssimilarity index 100%rename from web/src/features/mcp/features/scores/schema.tsrename to web/src/features/mcp/server/scores/schema.tsdiff --git a/web/src/features/mcp/features/scores/tools/createScore.ts b/web/src/features/mcp/server/scores/tools/createScore.tssimilarity index 100%rename from web/src/features/mcp/features/scores/tools/createScore.tsrename to web/src/features/mcp/server/scores/tools/createScore.tsdiff --git a/web/src/features/mcp/features/scores/tools/createScoreConfig.ts b/web/src/features/mcp/server/scores/tools/createScoreConfig.tssimilarity index 100%rename from web/src/features/mcp/features/scores/tools/createScoreConfig.tsrename to web/src/features/mcp/server/scores/tools/createScoreConfig.tsdiff --git a/web/src/features/mcp/features/scores/tools/deleteScoreConfig.ts b/web/src/features/mcp/server/scores/tools/deleteScoreConfig.tssimilarity index 100%rename from web/src/features/mcp/features/scores/tools/deleteScoreConfig.tsrename to web/src/features/mcp/server/scores/tools/deleteScoreConfig.tsdiff --git a/web/src/features/mcp/features/scores/tools/getScore.ts b/web/src/features/mcp/server/scores/tools/getScore.tssimilarity index 100%rename from web/src/features/mcp/features/scores/tools/getScore.tsrename to web/src/features/mcp/server/scores/tools/getScore.tsdiff --git a/web/src/features/mcp/features/scores/tools/getScoreConfig.ts b/web/src/features/mcp/server/scores/tools/getScoreConfig.tssimilarity index 100%rename from web/src/features/mcp/features/scores/tools/getScoreConfig.tsrename to web/src/features/mcp/server/scores/tools/getScoreConfig.tsdiff --git a/web/src/features/mcp/features/scores/tools/listScoreConfigs.ts b/web/src/features/mcp/server/scores/tools/listScoreConfigs.tssimilarity index 100%rename from web/src/features/mcp/features/scores/tools/listScoreConfigs.tsrename to web/src/features/mcp/server/scores/tools/listScoreConfigs.tsdiff --git a/web/src/features/mcp/features/scores/tools/listScores.ts b/web/src/features/mcp/server/scores/tools/listScores.tssimilarity index 100%rename from web/src/features/mcp/features/scores/tools/listScores.tsrename to web/src/features/mcp/server/scores/tools/listScores.tsdiff --git a/web/src/features/mcp/features/scores/tools/updateScoreConfig.ts b/web/src/features/mcp/server/scores/tools/updateScoreConfig.tssimilarity index 100%rename from web/src/features/mcp/features/scores/tools/updateScoreConfig.tsrename to web/src/features/mcp/server/scores/tools/updateScoreConfig.tsdiff --git a/web/src/features/mcp/features/v4Migration/index.ts b/web/src/features/mcp/server/v4Migration/index.tssimilarity index 85%rename from web/src/features/mcp/features/v4Migration/index.tsrename to web/src/features/mcp/server/v4Migration/index.tsindex 18ecc1bb97..1835b20e92 100644--- a/web/src/features/mcp/features/v4Migration/index.ts+++ b/web/src/features/mcp/server/v4Migration/index.ts@@ -1,4 +1,4 @@-import type { McpFeatureModule } from "../../server/registry";+import type { McpFeatureModule } from "../registry";import {getV4MigrationDataTool,handleGetV4MigrationData,diff --git a/web/src/features/mcp/features/v4Migration/tools/getV4MigrationData.ts b/web/src/features/mcp/server/v4Migration/tools/getV4MigrationData.tssimilarity index 100%rename from web/src/features/mcp/features/v4Migration/tools/getV4MigrationData.tsrename to web/src/features/mcp/server/v4Migration/tools/getV4MigrationData.ts