-
Notifications
You must be signed in to change notification settings - Fork 91
Add standalone OpenGenerativeUI MCP Server #18
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 all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
17058d1
feat: Add standalone OpenGenerativeUI MCP Server
GeneralJerel bdd69c2
Fix path traversal, Dockerfile build, and per-session transport
GeneralJerel cf5978c
Add stdio transport entry point for Claude Desktop
GeneralJerel 82cf3eb
Update READMEs with MCP server setup and stdio transport docs
GeneralJerel 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
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
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,9 @@ | ||
| node_modules/ | ||
| npm-debug.log | ||
| .git | ||
| .gitignore | ||
| README.md | ||
| .env.example | ||
| .DS_Store | ||
| dist/ | ||
| .turbo/ |
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,12 @@ | ||
| # Server Configuration | ||
| MCP_PORT=3100 | ||
| NODE_ENV=development | ||
|
|
||
| # CORS (comma-separated origins, default: * for development) | ||
| ALLOWED_ORIGINS=* | ||
|
|
||
| # Skills directory (default: ./skills relative to package root) | ||
| SKILLS_DIR=./skills | ||
|
|
||
| # 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,11 @@ | ||
| node_modules/ | ||
| dist/ | ||
| .env | ||
| .env.local | ||
| *.log | ||
| npm-debug.log* | ||
| yarn-debug.log* | ||
| yarn-error.log* | ||
| .DS_Store | ||
| .turbo/ | ||
| .venv/ |
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,53 @@ | ||
| # Multi-stage build for production | ||
| FROM node:20-alpine AS builder | ||
|
|
||
| WORKDIR /app | ||
|
|
||
| # Install build dependencies | ||
| RUN apk add --no-cache python3 make g++ | ||
|
|
||
| # Copy package files | ||
| COPY package.json pnpm-lock.yaml ./ | ||
|
|
||
| # Install pnpm | ||
| RUN npm install -g pnpm@9 | ||
|
|
||
| # Install dependencies | ||
| RUN pnpm install --frozen-lockfile | ||
|
|
||
| # Copy source | ||
| COPY tsconfig.json ./ | ||
| COPY src ./src | ||
| COPY skills ./skills | ||
|
|
||
| # Build | ||
| RUN pnpm build | ||
|
|
||
| # Production image | ||
| FROM node:20-alpine | ||
|
|
||
| WORKDIR /app | ||
|
|
||
| # Install dumb-init for proper signal handling | ||
| RUN apk add --no-cache dumb-init | ||
|
|
||
| # Copy built application from builder | ||
| COPY --from=builder /app/dist ./dist | ||
| COPY --from=builder /app/skills ./skills | ||
| COPY --from=builder /app/node_modules ./node_modules | ||
| COPY package.json ./ | ||
|
|
||
| # Non-root user | ||
| RUN addgroup -g 1001 -S nodejs && \ | ||
| adduser -S nodejs -u 1001 | ||
|
|
||
| USER nodejs | ||
|
|
||
| # Health check | ||
| HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ | ||
| CMD wget --no-verbose --tries=1 --spider http://localhost:${MCP_PORT:-3100}/health || exit 1 | ||
|
|
||
| EXPOSE 3100 | ||
|
|
||
| ENTRYPOINT ["/sbin/dumb-init", "--"] | ||
| CMD ["node", "dist/index.js"] | ||
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug:
--prodflag breaks the build step--prodskips devDependencies, buttsc(used on line 23 viapnpm build) is listed underdevDependencies. This Docker build will fail at theRUN pnpm buildstep.Should be:
RUN pnpm install --frozen-lockfileOr split into two stages — full install for build, then prune to prod for the runtime image.