Skip to content

copilot cli fails to read config from working directory which isn't a repo root #4765

Description

@johnmreynolds

Describe the bug

I've got a project which is not a monorepo, but instead has several repos in a workspace directory which itself isn't a git repo.

The copilot cli harness in this case fails to read .mcp.json or hook files (and probably other config I've not tested) which is in the project directory.

Creating an empty git repo at the root fixes this, but this shouldn't be necessary.

For reference to similar harnesses, Claude CLI reads workspace level files.

Affected version

No response

Steps to reproduce the behavior

Create a directory containing a simple .mcp.json.

Within this create a git repo.

Launch copilot cli from the directory.

Expected behavior

Copilot reads config files such as .mcp.json and files in .github.

Additional context

Windows

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

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions