# Delete oauth tokens when an mcp is uninstalled

**URL:** <https://forum.cursor.com/t/delete-oauth-tokens-when-an-mcp-is-uninstalled/120000>\
**Category:** Feature Requests\
**Created:** [July 19, 2025, 7:37am UTC](https://forum.cursor.com/t/delete-oauth-tokens-when-an-mcp-is-uninstalled/120000 "2025-07-19T07:37:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stephenhandley](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/stephenhandley/32/71723_2.png) [@stephenhandley](https://forum.cursor.com/u/stephenhandley)\
**Post date:** [July 19, 2025, 7:37am UTC](https://forum.cursor.com/t/delete-oauth-tokens-when-an-mcp-is-uninstalled/120000/1 "2025-07-19T07:37:56Z")

</div>

### Describe the Bug

You appear to be retaining oauth client ids even after an mcp server is deleted.  
This requires deleting cursor and reinstalling to properly test an mcp+oauth flow.

Client id still appears in:  
/Users/{user}/Library/Application Support/Cursor/User/globalStorage/{state.vscdb, state.vscdb.backup, }

### Steps to Reproduce

1. Authorize a mcp server.
2. Remove the server
3. confirm removal in your mcp logs
4. Re-add server
5. still uses old client id during auth loop (never does new DCR)

### Expected Behavior

When I delete an MCP server, should clear any associated client ids and tokens

### Operating System

MacOS

### Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.2.4 (Universal)  
VSCode Version: 1.99.3  
Commit: a8e95743c5268be73767c46944a71f4465d05c90  
Date: 2025-07-10T16:55:16.443Z  
Electron: 34.5.1  
Chromium: 132.0.6834.210  
Node.js: 20.19.0  
V8: 13.2.152.41-electron.0  
OS: Darwin arm64 24.5.0

### Does this stop you from using Cursor

No - Cursor works, but with this issue

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [August 10, 2025, 7:38am UTC](https://forum.cursor.com/t/delete-oauth-tokens-when-an-mcp-is-uninstalled/120000/2 "2025-08-10T07:38:12Z")

</div>

Closed on August 10, 2025, 7:38am UTC

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.
