Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/dependabot-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:

Verify the package can start without runtime errors:
```
cd mcp-server && timeout 10 node build/index.js --help || true
cd mcp-server && timeout 10 node dist/index.mjs --help || true
```
If a `--help` flag is not available, start the process and kill it after a few seconds to confirm it boots.

Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTE.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ You should see: `Currents MCP Server running on stdio`.
To test with a local MCP client (e.g., Cursor or Claude Desktop), point the client to your built server:

- Command: `node`
- Args: `./mcp-server/build/index.js`
- Args: `./mcp-server/dist/index.mjs`
- Env: set `CURRENTS_API_KEY` to a valid key

Example snippet for a client config:
Expand All @@ -55,7 +55,7 @@ Example snippet for a client config:
"mcpServers": {
"currents": {
"command": "node",
"args": ["./mcp-server/build/index.js"],
"args": ["./mcp-server/dist/index.mjs"],
"env": {
"CURRENTS_API_KEY": "your-api-key"
}
Expand Down
12 changes: 7 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
# syntax=docker/dockerfile:1

# Build stage
FROM node:20-alpine AS build
FROM node:24-alpine AS build
WORKDIR /app

# Install dependencies
COPY mcp-server/package.json mcp-server/package-lock.json ./
RUN npm ci --production=false

# Copy source code
COPY mcp-server/tsconfig.json mcp-server/tsconfig.cjs.json ./
COPY mcp-server/scripts ./scripts
COPY mcp-server/tsconfig.json mcp-server/tsdown.config.ts ./
COPY mcp-server/assets ./assets
COPY mcp-server/src ./src

# Build the project
Expand All @@ -22,10 +22,12 @@ FROM node:20-alpine AS runtime
WORKDIR /app

# Copy build artifacts and dependencies
COPY --from=build /app/build ./build
COPY --from=build /app/dist ./dist
COPY --from=build /app/assets ./assets
COPY --from=build /app/package.json ./package.json
COPY --from=build /app/node_modules ./node_modules

# Default API URL environment variable
ENV CURRENTS_API_URL=https://api.currents.dev

ENTRYPOINT ["node", "build/index.js"]
ENTRYPOINT ["node", "dist/index.mjs"]
2 changes: 1 addition & 1 deletion mcp-server/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build output
build/
dist/

# README is copied from root during publish
README.md
Expand Down
Binary file added mcp-server/assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading