Skip to content

bug(bootstrap): commits local telemetry and writes a machine-absolute path into .mcp.json #298

Closed

Description

@stackbilt-admin

Problem

Two files that charter bootstrap creates are not safe to commit as written, and nothing marks them as local-only.

1. Usage telemetry is tracked by git

.charter/.gitignore covers only:

# Charter local state
.cache/
context.md

so .charter/telemetry/events.ndjson gets staged by a normal git add -A. It is per-machine usage data that grows with every command:

{"version":1,"eventType":"command","timestamp":"2026-09-19T21:16:52.851Z","commandPath":"quickstart","flags":["--version"],"format":"text","ciMode":false,"durationMs":2,"exitCode":0,"success":true}

It carries timestamps and command history, it conflicts on every merge between machines, and it has no value in review. Mine reached 4.2 KB within one session.

2. .mcp.json hardcodes the author's absolute path

{
  "mcpServers": {
    "charter": {
      "command": "npx",
      "args": ["@stackbilt/cli", "serve", "--ai-dir", "/mnt/c/users/kover/documents/stackbilt_eco/wargames/.ai"]
    }
  }
}

.mcp.json is a committed, shared file, so the MCP server is broken for every other clone and for CI. It also leaks the author's local directory layout into a repo that may later be public.

Suggested fix

  1. Add telemetry/ to the generated .charter/.gitignore (or write telemetry outside the repo, e.g. under the user's state directory).
  2. Write --ai-dir .ai (repo-relative) in .mcp.json. The server already runs from the repo root.
  3. Consider having bootstrap print which generated files are intended to be committed and which are local-only.

Environment

@stackbilt/[email protected], Node 22.14, WSL2.

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