Skip to content
Back to skills

Server Change

ASecurity

Rules for changes to the inspector's Hono server (mcpjam-inspector/server), including routes, services, logging, error reporting and the browserd daemon. Use before editing anything under mcpjam-inspector/server.

  • 2,368 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 10, 2026
ai-agentsgoshellbashapi

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Scanned November 10, 2026

npx -y skills add MCPJam/inspector --skill server-change --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Server Change?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Server Change
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mcpjam-server-change/badge)](https://www.skillsdirectory.com/skills/mcpjam-server-change)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: server-change
description: Rules for changes to the inspector's Hono server (mcpjam-inspector/server), including routes, services, logging, error reporting and the browserd daemon. Use before editing anything under mcpjam-inspector/server.
---

# Server change

## Logging and errors

Never use `console.*` in `server/`.

```ts
import { logger } from "@/utils/logger";
```

- `logger.error` goes to Sentry and Axiom. Use it only for real failures in
  MCPJam's own code.
- `logger.warn`, `logger.info` and `logger.debug` go to Axiom only.
- Route catch sites call `reportRouteFailure` from
  `server/utils/route-error-report.ts`, not `logger.error`. Pass the hop that
  failed, so a user's broken MCP server does not page MCPJam:
  ```ts
  reportRouteFailure("[mcp/chat-v2] stream error", error, {
    source: "mcp.chat-v2.stream",
    hop: "user_server_hop", // or "mcpjam_internal"
  });
  ```
  Anything under `/api/mcp/*` that proxies to a user's server is
  `user_server_hop`.
- Never log tokens, access links, API keys or request bodies that may hold them.

Background: `mcpjam-inspector/docs/server-error-reporting.md`.

## Tests

- Route tests: `server/routes/mcp/__tests__/`. Helpers in
  `server/routes/mcp/__tests__/helpers/` (`createTestApp()`,
  `createMockMcpClientManager()`, `postJson()`, `expectError()`).
- Anything whose correctness depends on WorkOS behavior (refresh tokens, API key
  revocation, JWKS) uses the emulator suites (`*.emulator.test.ts`) and
  `server/test/support/workos-emulator.ts`. Do not stub `fetch` for those.
  Do not export `WORKOS_API_BASE_URL` in the shell.
- Cover the happy path, validation errors, error handling and empty/null input.

```bash
npm run test -w @mcpjam/inspector -- server/routes/<area>
```

## browserd daemon

`server/services/browserd/dist/` is checked in and is what ships. After
changing anything under `server/services/browserd/daemon/`, or anything it
imports (`protocol.ts`, the WebMCP launch flags):

```bash
npm run bundle:browserd -w @mcpjam/inspector
```

Commit both files in `dist/`. `pretest` fails if the bundle is stale.

## Auth-sensitive areas

Changes to `server/routes/workos-authkit.ts`, `server/services/authkit-jwt.ts`,
`server/services/guest-token*.ts`, `server/services/api-keys-relay.ts` or
`server/middleware/` need a PR description that states who can reach the code
path before and after the change.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.