Skip to content

Commit 718610f

Browse files
no bundle
1 parent 82c74a8 commit 718610f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

packages/mcp-server/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"version": "0.0.1",
55
"bin": "./dist/bin/index.js",
66
"scripts": {
7-
"build": "bunchee --tsconfig tsconfig.build.json",
8-
"dev": "bunchee -w --tsconfig tsconfig.build.json --no-clean"
7+
"build": "bunchee --tsconfig tsconfig.build.json --no-external",
8+
"dev": "bunchee -w --tsconfig tsconfig.build.json --no-clean --no-external"
99
},
1010
"devDependencies": {
1111
"@uploadthing/eslint-config": "workspace:*",

packages/mcp-server/src/bin/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"
22

33
import { createServer } from "../server";
44

5-
const tokenstr = process.argv[2] ?? process.env.UPLOADTHING_TOKEN;
5+
const tokenstr =
6+
process.argv.find((arg) => arg.startsWith("eyJhc")) ??
7+
process.env.UPLOADTHING_TOKEN;
68

79
if (!tokenstr) {
810
console.error(

0 commit comments

Comments
 (0)