Skip to content

Runtime error: undefined content.filter in API response handling #20

Description

@3dyuval

Environment:

  • Node.js: v20.19.0
  • Package: mcp-github-project-manager (latest)
  • GitHub token: Valid with all required scopes (gist, project, repo, workflow, write:org)

Error:
undefined is not an object (evaluating '(await l(p,g)).content.filter')

Specific Reproduction:

  1. Configure MCP server with valid GitHub token and repo
  2. Call list_projects with status: "active"
  3. Error occurs consistently

Issue:
The list_projects tool with status: "active" parameter fails because API response handling expects .content.filter() but content is undefined, suggesting GitHub API is returning different response structure than expected.

Working:

  • Parameter validation works correctly (rejects "open", accepts "active")
  • MCP server starts and responds to calls
  • Authentication appears successful

Config:

"github-project-manager": {
  "command": ["npx", "-y", "mcp-github-project-manager", "--verbose"],
  "environment": {
    "GITHUB_OWNER": "3dyuval",
    "GITHUB_TOKEN": "ghp_...",
    "GITHUB_REPO": "nvim"
  }
}

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions