-
Notifications
You must be signed in to change notification settings - Fork 0
feat: Milestone 3 - production HTTP server with dual-mode transport #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
52a0e1c
feat: add Fastify HTTP server with MCP Streamable HTTP transport
daniil-shumko 96f496e
fix: address PR review findings from CodeRabbit
daniil-shumko b7fa3ca
Fixed PR comments
daniil-shumko c8d2955
feat: add server uptime and start time to health check endpoint
daniil-shumko bff7c6b
fix: replace custom rate limiter with @fastify/rate-limit
daniil-shumko 6f2bbc0
chore: add .npmrc with security settings and copy it into Docker builds
daniil-shumko File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| node_modules | ||
| npm-debug.log | ||
| dist | ||
| coverage | ||
| .env | ||
| .DS_Store | ||
| .git | ||
| .gitignore | ||
| *.md | ||
| .omc/ | ||
| .plans/ | ||
| scripts/ | ||
| docs/ | ||
| .github/ | ||
| planning/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| # Server Mode (stdio | http | both) | ||
| # - stdio: For Claude Desktop integration (default) | ||
| # - http: For HTTP server mode (web clients) | ||
| # - both: Run both transports simultaneously | ||
| SERVER_MODE=http | ||
|
|
||
| # HTTP Server Configuration | ||
| HTTP_PORT=3000 | ||
| HTTP_HOST=0.0.0.0 | ||
|
|
||
| # Rate Limiting (per IP address) | ||
| RATE_LIMIT_PER_MINUTE=10 | ||
| RATE_LIMIT_PER_DAY=250 | ||
|
|
||
| # Request Configuration | ||
| REQUEST_TIMEOUT_MS=30000 | ||
| MAX_RETRIES=3 | ||
| RETRY_BASE_DELAY_MS=1000 | ||
|
|
||
| # Logging | ||
| LOG_LEVEL=info |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| # NPM configuration | ||
| # If using a private registry, set NPM_TOKEN as environment variable during build |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,4 +4,5 @@ external_api_spec/* | |
| long_cache/ | ||
| ignore.js | ||
| .claude/ | ||
| .omc/ | ||
| yaak/ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| FROM node:22.22.0-alpine AS builder | ||
|
|
||
| RUN npm install -g npm@11.7.0 | ||
|
|
||
| WORKDIR /app | ||
|
|
||
| COPY package*.json .npmrc ./ | ||
| ARG NPM_TOKEN | ||
| RUN npm ci --ignore-scripts && rm -f .npmrc | ||
|
|
||
| COPY tsconfig.json tsconfig.docker.json ./ | ||
| COPY src ./src | ||
| RUN npx tsc --project tsconfig.docker.json | ||
|
|
||
| FROM node:22.22.0-alpine | ||
|
|
||
| RUN npm install -g npm@11.7.0 | ||
|
|
||
| WORKDIR /app | ||
|
|
||
| COPY package*.json .npmrc ./ | ||
| ARG NPM_TOKEN | ||
| RUN npm ci --omit=dev --ignore-scripts && rm -f .npmrc | ||
|
|
||
| COPY --from=builder /app/dist ./dist | ||
|
|
||
| USER node | ||
|
|
||
| CMD ["node", "dist/index.js"] | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.