Skip to content

ponytail-mcp: McpServer version hardcoded to 0.1.0 instead of reading package.json #535

Description

@guyoron1

Bug

ponytail-mcp/index.js:12 passes version: "0.1.0" to the McpServer constructor:

const server = new McpServer({ name: "ponytail", version: "0.1.0" });

However, ponytail-mcp/package.json declares "version": "4.8.4". MCP clients that inspect the server version see a stale 0.1.0, and this will need manual updating on every release — something easy to forget.

Fix

Read the version from package.json at startup:

import { readFileSync } from 'fs';
const { version } = JSON.parse(readFileSync(new URL('./package.json', import.meta.url), 'utf8'));
const server = new McpServer({ name: "ponytail", version });

Or use a createRequire-based import if consistency with the other adapters matters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions