Skip to content

Commit a385954

Browse files
committed
feat(glama): add a Dockerfile and glama.json so the MCP server can be graded
Glama builds the repository in its own sandbox and introspects the MCP server over stdio. Without a buildable image it records no tool definitions at all and the listing grade falls back to the maintenance signal (D). The image builds the pnpm workspace, builds jevcore and jevcore-mcp, and runs packages/mcp/lib/bin.js. JEV_PROVIDER=mock is pinned so introspection never depends on a credential: the server answers initialize and tools/list with no API key present, and logs to stderr while keeping stdout to JSON-RPC only. Verified locally before pushing: `pnpm --filter jevcore run build` and `pnpm --filter jevcore-mcp run build` both succeed, and piping initialize + tools/list into packages/mcp/lib/bin.js returns all three tools (jev_ask, jev_rank, jev_check). The Docker build itself could not be exercised here because no Docker daemon is running in this environment.
1 parent 563117c commit a385954

3 files changed

Lines changed: 44 additions & 0 deletions

File tree

‎.dockerignore‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Keep the build context small and reproducible. Everything here is regenerated
2+
# inside the build stage, or is not needed to build and run the MCP server.
3+
.git
4+
.github
5+
node_modules
6+
**/node_modules
7+
**/lib
8+
coverage
9+
*.log
10+
*.tsbuildinfo
11+
docs
12+
tools

‎Dockerfile‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Glama (https://glama.ai/mcp/servers/PerryLink/jevcore) builds this image in its
2+
# own sandbox and introspects the MCP server over stdio: it must answer
3+
# `initialize` and `tools/list` unattended, with no credential present.
4+
#
5+
# The server satisfies that by falling back to the offline mock provider, which is
6+
# pinned explicitly below so introspection can never depend on an API key.
7+
# Logs go to stderr; JSON-RPC goes to stdout only.
8+
9+
# syntax=docker/dockerfile:1
10+
11+
FROM node:22-alpine AS build
12+
RUN corepack enable
13+
WORKDIR /app
14+
15+
# `COPY . .` is deliberate: pnpm-workspace.yaml globs `packages/*`, so a partial
16+
# copy that omits any workspace manifest breaks `--frozen-lockfile`.
17+
COPY . .
18+
RUN pnpm install --frozen-lockfile
19+
RUN pnpm --filter jevcore run build && pnpm --filter jevcore-mcp run build
20+
21+
FROM node:22-alpine
22+
WORKDIR /app
23+
ENV NODE_ENV=production
24+
ENV JEV_PROVIDER=mock
25+
COPY --from=build /app /app
26+
ENTRYPOINT ["node", "packages/mcp/lib/bin.js"]

‎glama.json‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"$schema": "https://glama.ai/mcp/schemas/server.json",
3+
"maintainers": [
4+
"PerryLink"
5+
]
6+
}

0 commit comments

Comments
 (0)