From f05e501e42e063f85f71a0316c36ecba6bf4b0a3 Mon Sep 17 00:00:00 2001 From: "MOGU :\\'-\"/" Date: Tue, 12 May 2026 15:26:43 +0800 Subject: [PATCH] chore(install): remove fallback MCP snippet hint (#38) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary - The post-install summary printed an `If your agent is NOT Claude Code / Claude Desktop / Cursor` block with a manual MCP JSON snippet. By the time the user sees it, `@agentkey/mcp --auth-login` has already either auto-written the supported configs or surfaced its own error — so this block is ambiguous noise for the supported path, and the canonical fallback for unsupported agents already lives in `SKILL.md`'s Fallback section. - Removed the same block from `install.ps1` to keep the Bash and PowerShell installers in sync. ## Test plan - [ ] `bash scripts/install.sh` ends with `Next steps` → `Docs` → `Uninstall` (no fallback snippet block in between). - [ ] `pwsh scripts/install.ps1` shows the same trimmed summary on Windows. - [ ] Confirm `skills/agentkey/SKILL.md` still documents the manual-paste fallback for non-auto-targeted agents (no doc regression). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.7 (1M context) --- scripts/install.ps1 | 14 -------------- scripts/install.sh | 14 -------------- 2 files changed, 28 deletions(-) diff --git a/scripts/install.ps1 b/scripts/install.ps1 index c63b8e0..6aed603 100644 --- a/scripts/install.ps1 +++ b/scripts/install.ps1 @@ -347,20 +347,6 @@ Write-Muted '1. Restart your agent (Claude Code / Cursor / etc.)' Write-Muted '2. Ask it something that needs the internet:' Write-Host ' "What has Musk been tweeting about lately?"' -ForegroundColor Cyan Write-Host '' -Write-Host ' If your agent is NOT Claude Code / Claude Desktop / Cursor' -ForegroundColor White -Write-Muted 'The skill is installed, but you may need to paste this MCP snippet' -Write-Muted 'into its config manually:' -Write-Host '' -Write-Host ' {' -ForegroundColor DarkGray -Write-Host ' "mcpServers": {' -ForegroundColor DarkGray -Write-Host ' "agentkey": {' -ForegroundColor DarkGray -Write-Host ' "command": "npx",' -ForegroundColor DarkGray -Write-Host ' "args": ["-y", "@agentkey/mcp"],' -ForegroundColor DarkGray -Write-Host ' "env": { "AGENTKEY_API_KEY": "ak_..." }' -ForegroundColor DarkGray -Write-Host ' }' -ForegroundColor DarkGray -Write-Host ' }' -ForegroundColor DarkGray -Write-Host ' }' -ForegroundColor DarkGray -Write-Host '' Write-Host ' Docs https://agentkey.app/docs' -ForegroundColor White Write-Host ' Uninstall irm https://agentkey.app/uninstall.ps1 | iex' -ForegroundColor White Write-Host '' diff --git a/scripts/install.sh b/scripts/install.sh index 8eea267..649ec7a 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -467,20 +467,6 @@ main() { ${MUTED}2.${NC} Ask it something that needs the internet: ${ACCENT}"What has Musk been tweeting about lately?"${NC} - ${BOLD}If your agent is NOT Claude Code / Claude Desktop / Cursor${NC} - The skill is installed, but you may need to paste this MCP snippet - into its config manually: - - ${MUTED}{ - "mcpServers": { - "agentkey": { - "command": "npx", - "args": ["-y", "@agentkey/mcp"], - "env": { "AGENTKEY_API_KEY": "ak_..." } - } - } - }${NC} - ${BOLD}Docs${NC} https://agentkey.app/docs ${BOLD}Uninstall${NC} curl -fsSL https://agentkey.app/uninstall.sh | bash