Skip to content

fix(mcp): remove dead code (Failed NamedError + unused import) - #1946

Open
Cipher208 wants to merge 1 commit into
XiaomiMiMo:devfrom
Cipher208:fix/mcp-remove-dead-code
Open

fix(mcp): remove dead code (Failed NamedError + unused import)#1946
Cipher208 wants to merge 1 commit into
XiaomiMiMo:devfrom
Cipher208:fix/mcp-remove-dead-code

Conversation

@Cipher208

Copy link
Copy Markdown

No description provided.

Skylos flagged 5 dead-code items in MCP index.ts. After thorough
verification across the entire codebase:

- Failed (NamedError): truly dead code — not imported or used anywhere
  outside index.ts. Removed.
- NamedError import: only used by Failed. Removed.
- defaultLayer: NOT dead code — used in session/prompt.ts, effect/app-runtime.ts,
  command/index.ts (skylos false positive)
- Resource: NOT dead code — used in server/routes/instance/experimental.ts
- ToolsChanged: NOT dead code — used at line 498 in same file

4 of 5 skylos findings were false positives.
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.

1 participant