Skip to content

Add a self-service doctor command #12

Description

@MPIsaac-Per

Goal

Provide one command that diagnoses the common causes of a bridge installation failing before the user has to inspect launchd logs or webhook traffic.

Proposed interface

npm run doctor

Checks

  • Supported Node version
  • Claude Code/runtime availability and login state where safely detectable
  • Required Linear application configuration
  • OAuth redirect URI consistency
  • Refresh-token store presence, shape, and permissions
  • KB_PATH existence and readability
  • Session/inbox/outbox store writability
  • Local health endpoint
  • Public HTTPS webhook URL configuration
  • Tailscale status when Tailscale is selected

Acceptance criteria

  • Every check prints pass, warning, or fail with a remediation step.
  • The command never prints access tokens, refresh tokens, client secrets, prompts, or issue contents.
  • Exit status is nonzero for blocking failures.
  • Checks are testable without contacting real Linear or Anthropic services.

Linear execution plan

GitHub remains the public source of truth. Private prioritization, dependencies, and agent execution are tracked in the Linear Agent Bridge OSS project.

Parent: MPI-1431

  • MPI-1432 — Build a testable doctor command framework with safe output
  • MPI-1433 — Add local runtime, OAuth, path, and store doctor checks
  • MPI-1434 — Add health, webhook ingress, and Tailscale doctor checks

Implementation tickets are labeled agent-ready in Linear and include scope, acceptance criteria, dependencies, repository constraints, and required verification evidence. Public decisions and completion status should be mirrored back to this issue.

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

    enhancementNew feature or requesthelp wantedExtra attention is neededlinear-linkedExecution decomposed and tracked in Linear

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions