Skip to content

Package.json formatting issue prevents npm from displaying repository metadata #2

Description

@jordanburke

Problem

The package.json file contains malformed JSON with literal \n characters instead of actual newlines. This causes npm to fail parsing the repository metadata, resulting in the GitHub repository link not appearing in the npm package page sidebar.

Current State

The package.json file contains:

{\n  "name": "github-mcp-custom",\n  "version": "1.0.20",\n  ...

Instead of properly formatted JSON:

{
  "name": "github-mcp-custom",
  "version": "1.0.20",
  ...

Impact

  • Repository link doesn't appear in npm package sidebar at https://www.npmjs.com/package/github-mcp-custom
  • Potential issues with other npm tooling that relies on proper JSON parsing
  • May affect automated tools that parse package metadata

Solution

The package.json needs to be reformatted with proper newlines. This has been fixed locally in version 1.0.21.

Steps to Reproduce

  1. View the raw package.json file in version 1.0.20
  2. Notice the literal \n characters throughout the file
  3. Check https://www.npmjs.com/package/github-mcp-custom - repository link missing from sidebar

Expected Behavior

  • Package.json should be properly formatted JSON
  • Repository link should appear in npm package page sidebar
  • All JSON parsers should be able to read the file without issues

Environment:

  • Package version: 1.0.20
  • npm registry: npmjs.com

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