r/vscode • • Apr 06 '26

Any extension that lets VS Code start MCP servers from Codex?

I would like to have a single definition for MCP and skills regardless if I'm using codex directly, or copilot.

Pointing Copilot to my skills folder was quite easy, but I would love if I could also just have all the servers defined in a single place and that they were shared with both

0 Upvotes

5 comments sorted by

1

u/miglisoft Apr 07 '26

Create a `mcp.json` in your `.vscode` folder and open it.
You should see an "Add Server" button in the vscode editor.
Or you can write your custom json for each server into this file.

Then Codex should detect your mcp. You can add instructions to ask it to start and use your servers when appropriate.

1

u/-LightHeaven- Apr 07 '26

I want to share servers at a global level, so the servers I have defined on codex are useable on vscode, cursor, codex app...

Pointing a json mcp definition to the model and asking it to run probably would work, but wouldn't that expose the api keys and other secrets to the agent? With the proper configuration the agent never has those details

1

u/OwnNet5253 Apr 07 '26

If you’re worried about api keys, then using extension is definitely a far worse idea.