Skip to content

[BUG]: MCP Usage Fails #92

@FidelusAleksander

Description

@FidelusAleksander

I think there is something wrong with the enable-mcp-server feature in this GitHub Action. I was going to set up a workflow and got this error

Warning: Failed to connect to GitHub MCP server: Error: Error POSTing to endpoint (HTTP 400): bad request: Authorization header is badly formatted

Warning: MCP connection failed, falling back to simple inference

Here is my workflow file

name: AI Similar issues

on:
  issues:
    types: [opened]

permissions:
  contents: read
  issues: write
  models: read

jobs:
  find-similar-issues:
    runs-on: ubuntu-latest
    steps:
      - name: Find similar issues
        id: find-similar-issues
        uses: actions/ai-inference@v2
        with:
          enable-github-mcp: true
          prompt: |
            A new GitHub Issue was just opened (issue number: ${{ github.event.issue.number }} )
            Your job is to find any similar issues in this repository and prepare a GitHub markdown styled comment.

            The comment should include links to all issues that you find relevant (e.g they report the same bug, request the same feature). 

            Respond with nothing else but the comment text

            If there are no similar issues found, respond with "NONE"

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