Skip to content

[Bug]: Failed to clear cache at ~/.forge/cache/mcp_cache #3129

@tusharmath

Description

@tusharmath

Bug Description

 forgecode-sdk  attempt-apr-20 󰄾 forge mcp import  '{                                                                                                              󱙺 FORGE  claude-sonnet-4-6 MEDIUM 
  "mcpServers": {  
    "deepwiki": {
      "serverUrl": "https://mcp.deepwiki.com/mcp"
    }
  }
}'
● [14:51:12] ERROR: Failed to clear cache
    Caused by: Failed to clear cache at /Users/tushar/.forge/cache/mcp_cache
    Caused by: Not a directory (os error 20)
 forgecode-sdk  attempt-apr-20 ~1 󰄾                 

Steps to Reproduce

Pick a mcp server and attempt to import it using the cli

Expected Behavior

It the mcp server should get imported without any issues.

Actual Behavior

  • Import succeed but throws the above errors

Forge Version

2.12.2

Operating System & Version

Mac OS

AI Provider

None

Model

No response

Installation Method

Other

Configuration

Metadata

Metadata

Assignees

No one assigned

    Labels

    severity: highSignificant impact; core functionality is impaired.type: bugSomething isn't working.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions