Skip to content

v0.1.48

Latest

Choose a tag to compare

@anandnalya anandnalya released this 27 May 04:59
650227a

Published as @automattic/mcp-remote@0.1.48.

Changes

  • --instructions-file flag (#2): load markdown/text from a local file and append it to the upstream server's InitializeResult.instructions, letting operators surface server-level guidance to MCP clients (e.g. Claude Code session context) without requiring an upstream change. If the upstream response already has instructions, the file is appended after a blank line; otherwise the file contents are used as-is. The path is resolved against cwd and read once at startup; a missing/unreadable path or missing flag value exits with an error.
  • Fix id-0 correlation in the proxy (#2): the message transformer used if (!messageId), which treated JSON-RPC id 0 as absent. MCP SDK clients increment request ids from 0, so the very first request — typically initialize — bypassed correlation entirely, silently skipping both instructions injection and tools/list filtering. Replaced with explicit undefined/null checks and added regression tests for numeric id 0.

Spec reference: InitializeResult.instructions is a standard, optional field in the MCP 2025-06-18 lifecycle schema.

Install: npx @automattic/mcp-remote@0.1.48 https://remote.mcp.server/sse