Skip to content

Published tarball includes CLAUDE.md (Claude Code project guide) #290

Description

@morganmaiani-bit

Summary

@notionhq/notion-mcp-server ships CLAUDE.md (Claude Code project guide) inside the published npm tarball, observable via npx @notionhq/notion-mcp-server.

Repro

npm pack @notionhq/notion-mcp-server@latest
tar tzvf notionhq-notion-mcp-server-*.tgz | grep CLAUDE.md

Why this matters

CLAUDE.md is a maintainer-facing project guide. No runtime purpose for consumers. Two issues:

  1. Adds bytes to every install and every npx cache.
  2. Claude Code can auto-load CLAUDE.md files from tool-touched directories — if a downstream developer reads files inside the installed package (especially likely for an MCP server that ships with Claude Code workflows), this guide can inject into their session context.

Suggested fix

Add a files allowlist to package.json, or add CLAUDE.md to .npmignore.

Context

Found during a Claude Code permissions audit. Filing individually across several npm packages with the same pattern. Happy to PR if useful.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions