fix: replace @/ path alias with relative imports in MCP server
The @/ alias resolves via tsconfig but not in production where Bun runs server files directly. Use relative paths instead. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -2,7 +2,7 @@ import { randomUUID } from "node:crypto";
|
|||||||
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
||||||
import { WebStandardStreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js";
|
import { WebStandardStreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js";
|
||||||
import { Hono } from "hono";
|
import { Hono } from "hono";
|
||||||
import { db as prodDb } from "@/db/index.ts";
|
import { db as prodDb } from "../../db/index.ts";
|
||||||
import { getUserCount, verifyApiKey } from "../services/auth.service.ts";
|
import { getUserCount, verifyApiKey } from "../services/auth.service.ts";
|
||||||
import { getCollectionSummary } from "./resources/collection.ts";
|
import { getCollectionSummary } from "./resources/collection.ts";
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { db as prodDb } from "@/db/index.ts";
|
import type { db as prodDb } from "../../../db/index.ts";
|
||||||
import { getAllCategories } from "../../services/category.service.ts";
|
import { getAllCategories } from "../../services/category.service.ts";
|
||||||
import { getAllItems } from "../../services/item.service.ts";
|
import { getAllItems } from "../../services/item.service.ts";
|
||||||
import { getAllSetups } from "../../services/setup.service.ts";
|
import { getAllSetups } from "../../services/setup.service.ts";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { db as prodDb } from "@/db/index.ts";
|
import type { db as prodDb } from "../../../db/index.ts";
|
||||||
import {
|
import {
|
||||||
createCategory,
|
createCategory,
|
||||||
getAllCategories,
|
getAllCategories,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { db as prodDb } from "@/db/index.ts";
|
import type { db as prodDb } from "../../../db/index.ts";
|
||||||
import {
|
import {
|
||||||
createItem,
|
createItem,
|
||||||
deleteItem,
|
deleteItem,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { db as prodDb } from "@/db/index.ts";
|
import type { db as prodDb } from "../../../db/index.ts";
|
||||||
import {
|
import {
|
||||||
createSetup,
|
createSetup,
|
||||||
getAllSetups,
|
getAllSetups,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { db as prodDb } from "@/db/index.ts";
|
import type { db as prodDb } from "../../../db/index.ts";
|
||||||
import {
|
import {
|
||||||
createCandidate,
|
createCandidate,
|
||||||
createThread,
|
createThread,
|
||||||
|
|||||||
Reference in New Issue
Block a user