Skip to content

CoR: Cherry pick MCP support, add CoR commands as MCP, wrap commands and tools with diagnostics and telemetry handling - #1552

Merged
MicroFish91 merged 15 commits into
feat/CoRfrom
mwf/mcp-all-the-CoR
Jul 16, 2026
Merged

CoR: Cherry pick MCP support, add CoR commands as MCP, wrap commands and tools with diagnostics and telemetry handling#1552
MicroFish91 merged 15 commits into
feat/CoRfrom
mwf/mcp-all-the-CoR

Conversation

@MicroFish91

@MicroFish91 MicroFish91 commented Jul 15, 2026

Copy link
Copy Markdown
Contributor
  • Includes a cherry-picked MCP PR off of main (probably should have included it in a separate PR, but oh well, here we are 😆)
  • Add all vscode commands that CoR needs as MCP tools
  • Rearrange and group CoR commands and tools
  • Wrap with automatic telemetry and diagnostics handling for CoR commands and MCP tools
  • Copilot on Rails context carries a separate diagnostic properties that automatically get pushed up as events throughout the lifecycle of each command.
  • Add a command to inspect cached diagnostic events

I will open up a separate issue going over some of the things we discussed that were TODO items for telemetry and diagnostics as this was mainly an introduction to wrapping the main commands and introducing the new mcp tools.

import * as vscode from 'vscode';
import { ext } from '../../extensionVariables';

export const copilotOnRailsCustomAgents = {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We already have a const in the constants.ts that exports all of these names so we should just be centralizing that.

Comment thread resources/agents/azure-debug-generate.agent.md Outdated
…lout

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 0faebbd0-4408-43b5-9c7d-0304832c3412
Comment thread src/chat/askAgentAboutActivityLog/askAgentAboutActivityLog.ts
return { message: l10n.t('Opened the Deployment Plan view.') };
});
}) ?? {
message: l10n.t('Failed to open the Deployment Plan view.'),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be good to say why it failed opening (like which file was missing, what may need to be run to fix it, etc.)

Comment thread src/chat/tools/copilotOnRails/openFrontendPreviewViewTool.ts Outdated
Comment thread src/chat/tools/copilotOnRails/openLocalNextStepsViewTool.ts Outdated
Comment thread src/chat/tools/copilotOnRails/openLocalPlanViewTool.ts Outdated
Comment thread src/chat/tools/copilotOnRails/openScaffoldNextStepsViewTool.ts Outdated
Comment thread src/chat/tools/copilotOnRails/startAzureDebugGenerateTool.ts Outdated

@nturinski nturinski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The actual format of everything seems good to me, most of my comments relate to strings.

@MicroFish91
MicroFish91 marked this pull request as ready for review July 16, 2026 04:34
@MicroFish91
MicroFish91 requested a review from a team as a code owner July 16, 2026 04:34
@MicroFish91
MicroFish91 merged commit 2eb35c2 into feat/CoR Jul 16, 2026
2 checks passed
@MicroFish91
MicroFish91 deleted the mwf/mcp-all-the-CoR branch July 16, 2026 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants