Skip to content
Open
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
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM node:24-bookworm-slim

ENV NODE_ENV=production
WORKDIR /app

COPY package.json package-lock.json ./
RUN npm ci --omit=dev --ignore-scripts

COPY bin ./bin
COPY src ./src
COPY schemas ./schemas
COPY LICENSE NOTICE THIRD_PARTY_NOTICES.md ./

USER node
CMD ["node", "bin/qarinah.js", "mcp"]
6 changes: 6 additions & 0 deletions glama.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "https://glama.ai/mcp/schemas/server.json",
"maintainers": [
"AjnasNB"
]
}
24 changes: 24 additions & 0 deletions test/glama-config.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import assert from "node:assert/strict";
import { readFile } from "node:fs/promises";
import path from "node:path";
import test from "node:test";
import { fileURLToPath } from "node:url";

const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");

test("Glama metadata identifies the repository maintainer", async () => {
const manifest = JSON.parse(await readFile(path.join(root, "glama.json"), "utf8"));
assert.deepEqual(manifest, {
$schema: "https://glama.ai/mcp/schemas/server.json",
maintainers: ["AjnasNB"]
});
});

test("the Glama container starts the diagnostic-only stdio MCP server", async () => {
const dockerfile = await readFile(path.join(root, "Dockerfile"), "utf8");
assert.match(dockerfile, /^FROM node:24-bookworm-slim$/m);
assert.match(dockerfile, /^RUN npm ci --omit=dev --ignore-scripts$/m);
assert.match(dockerfile, /^USER node$/m);
assert.match(dockerfile, /^CMD \["node", "bin\/qarinah\.js", "mcp"\]$/m);
assert.doesNotMatch(dockerfile, /--allow-query/);
});