prep work for new clone

sets up src/dist directories
configures tsc for project
updates paths for dockerfile
updates outdated deps
creates gitignore
This commit is contained in:
Sampson committed 2025-06-16 14:15:35 -05:00
1 parent 42bc6627a9
commit f20539b104
6 files changed
+1537 -14

No files matched your search

+2
View File
@@ -0,0 +1,2 @@
/node_modules
/dist
+1 -1
View File
@@ -1,7 +1,7 @@
FROM node:22.12-alpine AS builder FROM node:22.12-alpine AS builder
# Must be entire project because `prepare` script is run during `npm install` and requires all files. # Must be entire project because `prepare` script is run during `npm install` and requires all files.
COPY src/brave-search /app COPY src/ /app/src
COPY tsconfig.json /tsconfig.json COPY tsconfig.json /tsconfig.json
WORKDIR /app WORKDIR /app
+1515
View File
File diff suppressed because it is too large. Load diff
+3 -3
View File
@@ -19,11 +19,11 @@
"watch": "tsc --watch" "watch": "tsc --watch"
}, },
"dependencies": { "dependencies": {
"@modelcontextprotocol/sdk": "1.0.1" "@modelcontextprotocol/sdk": "^1.12.3"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^22", "@types/node": "^24.0.3",
"shx": "^0.3.4", "shx": "^0.4.0",
"typescript": "^5.6.2" "typescript": "^5.6.2"
} }
} }
+1 -1
View File
@@ -5,7 +5,7 @@ import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"
import { import {
CallToolRequestSchema, CallToolRequestSchema,
ListToolsRequestSchema, ListToolsRequestSchema,
Tool, type Tool,
} from "@modelcontextprotocol/sdk/types.js"; } from "@modelcontextprotocol/sdk/types.js";
const WEB_SEARCH_TOOL: Tool = { const WEB_SEARCH_TOOL: Tool = {
+15 -9
View File
@@ -1,10 +1,16 @@
{ {
"extends": "../../tsconfig.json", "compilerOptions": {
"compilerOptions": { "outDir": "./dist",
"outDir": "./dist", "rootDir": "src",
"rootDir": "." "target": "ES2022",
}, "module": "Node16",
"include": [ "moduleResolution": "Node16",
"./**/*.ts" "strict": true,
] "esModuleInterop": true,
} "skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true
},
"include": ["src/**/*"],
"exclude": ["node_modules"]
}