Skip to content

Don't run {cmd:} until mcp or codecompanion actually opens #253

@petobens

Description

@petobens

If I define my mcp server like:

{
  "mcpServers": {
    "github": {
      "disabled": true,
      "headers": {
        "Authorization": "Bearer ${cmd: pass show <some_pass>}"
      },
      "url": "https://api.githubcopilot.com/mcp/"
    }
  }
}

Then upon firing nvim the pass show cmd is called. Is it possible to only call cmd:pass upon running :MCPHub or some codecompanion command that triggers a chat buffer? I tried lazy loading but without success.

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