Skip to content

refactor: rename mcp tool to gateway target#377

Merged
aidandaly24 merged 1 commit intoaws:feat/gateway-integrationfrom
aidandaly24:feat/rename-mcp-tool-to-gateway-target
Feb 23, 2026
Merged

refactor: rename mcp tool to gateway target#377
aidandaly24 merged 1 commit intoaws:feat/gateway-integrationfrom
aidandaly24:feat/rename-mcp-tool-to-gateway-target

Conversation

@aidandaly24
Copy link
Contributor

Description

Renames the mcp-tool resource type to gateway-target across the entire CLI codebase. This aligns the implementation with the gateway terminology used in the MCP Gateway feature — targets are
services exposed through gateways, not standalone tools.

File renames (8 files via git mv):

  • AddMcpToolFlow.tsx → AddGatewayTargetFlow.tsx
  • AddMcpToolScreen.tsx → AddGatewayTargetScreen.tsx
  • RemoveMcpToolScreen.tsx → RemoveGatewayTargetScreen.tsx
  • McpToolRenderer.ts → GatewayTargetRenderer.ts
  • useAddMcpWizard.ts → useAddGatewayTargetWizard.ts
  • remove-mcp-tool.ts → remove-gateway-target.ts
  • add-mcp-tool.test.ts → add-gateway-target.test.ts
  • remove-mcp-tool.test.ts → remove-gateway-target.test.ts

Identifier renames:

  • Types: RemovableMcpTool → RemovableGatewayTarget, AddMcpToolConfig → AddGatewayTargetConfig, AddMcpToolStep → AddGatewayTargetStep
  • Hooks: useAddMcpToolWizard → useAddGatewayTargetWizard, useRemovableMcpTools → useRemovableGatewayTargets
  • Components: AddMcpToolFlow → AddGatewayTargetFlow, AddMcpToolScreen → AddGatewayTargetScreen, RemoveMcpToolScreen → RemoveGatewayTargetScreen
  • Functions: renderMcpToolTemplate → renderGatewayTargetTemplate, handleAddMcpTool → handleAddGatewayTarget, removeMcpTool → removeGatewayTarget
  • Command registrations: .command('mcp-tool') → .command('gateway-target')
  • HIDDEN_SUBCOMMANDS: 'mcp-tool' → 'gateway-target'
  • McpGuidedEditor.tsx: toolName label → targetName

Not renamed (these refer to the MCP protocol, not the tool/target concept):

  • McpGuidedEditor, McpSpec, McpDefs, AgentCoreMcp — protocol-level names stay as-is
  • mcp/ directory name — unchanged

Zero mcp-tool or McpTool references remain in src/cli/.

Depends on #[schema PR number].

Related Issue

Closes #

Documentation PR

N/A — internal rename only, no user-facing documentation impact.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Other (please describe): Refactor — terminology rename from mcp-tool to gateway-target

Testing

How have you tested the change?

  • I ran npm run test:unit and npm run test:integ
  • I ran npm run typecheck
  • I ran npm run lint
  • If I modified src/assets/, I ran npm run test:update-snapshots and committed the updated snapshots

Checklist

  • I have read the CONTRIBUTING document
  • I have added any necessary tests that prove my fix is effective or my feature works
  • I have updated the documentation accordingly
  • I have added an appropriate example to the documentation to outline the feature, or no new docs are needed
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@aidandaly24 aidandaly24 requested a review from a team February 23, 2026 00:44
@github-actions github-actions bot added the size/l PR size: L label Feb 23, 2026
@aidandaly24 aidandaly24 changed the base branch from main to feat/gateway-integration February 23, 2026 01:28
@aidandaly24 aidandaly24 force-pushed the feat/rename-mcp-tool-to-gateway-target branch 2 times, most recently from 4a5924d to 1b1769c Compare February 23, 2026 16:53
@github-actions github-actions bot added size/l PR size: L and removed size/l PR size: L labels Feb 23, 2026
@aidandaly24 aidandaly24 force-pushed the feat/rename-mcp-tool-to-gateway-target branch from 1b1769c to cf19660 Compare February 23, 2026 16:57
@github-actions github-actions bot added size/m PR size: M and removed size/l PR size: L labels Feb 23, 2026
@aidandaly24 aidandaly24 changed the title feat: rename mcp tool to gateway target refactor: rename mcp tool to gateway target Feb 23, 2026
@aidandaly24 aidandaly24 force-pushed the feat/rename-mcp-tool-to-gateway-target branch from cf19660 to 58f69bc Compare February 23, 2026 17:15
@github-actions github-actions bot added size/m PR size: M and removed size/m PR size: M labels Feb 23, 2026
@aidandaly24 aidandaly24 merged commit d74fec3 into aws:feat/gateway-integration Feb 23, 2026
13 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/m PR size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants