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: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ for the **core** package version in the repo root (`package.json`).

### Changed

- **HTTP `GET /`** — returns a small JSON index (links to `/v1/health`, `/v1/schema`, `/v1/analyze`) so opening only the Railway host in a browser is not a bare `Not found`.

- **`feat(analyze): risk-mapper v2`** — calibrated `critical`/`high`/`medium` heuristics aligned with B2B infra positioning (solo reclassifications: **haemoptysis** HIGH, **FAST** signs + **arm weakness**/**sudden vision loss**/**seizure** HIGH, **palpitations**/**hypotension** medium tier; new stroke/PE/septic/focal clusters; **aggregate point HIGH** requires anchoring HIGH/CRITICAL source; **generic headache** strings no longer inflate risk via removed thunderclap/WOL synonyms on `headache`). Seizure explanatory copy in **`signals[]`**. See PR body + **`docs/risk-classification-draft.md`**.
- HTTP rollup metrics run **every 60 seconds by default** when **`NODE_ENV=production`** (e.g. Railway / production Docker images) unless **`MEDDATA_HTTP_METRICS_INTERVAL_SEC`** is set; set it to **`0`** to disable.
- DevDependency `@types/node` set to `^22` in the core package and in `sdk/` so typings match CI (`node-version: "22"`).
Expand Down
10 changes: 10 additions & 0 deletions src/http/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@ process.on("unhandledRejection", (err) => { console.error("UNHANDLED:", err); })

const app = new Hono();

/** Root URL is not a SPA; browsers hitting only the host otherwise get 404 JSON. */
app.get("/", (c) =>
c.json({
service: "MedMCP HTTP API",
health: "GET /v1/health",
schema: "GET /v1/schema (header X-API-Key required)",
analyze: "POST /v1/analyze (header X-API-Key required)",
})
);

app.use(
"*",
cors({
Expand Down