Skip to content

Commit 25ed318

Browse files
docs(mcp): add a README link to add server to VS Code or Claude Code
1 parent 8d5c4c8 commit 25ed318

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

packages/mcp-server/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,22 @@ in Cursor's `mcp.json`, which can be found in Cursor Settings > Tools & MCP > Ne
5656

5757
[![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=@stainless-api/sdk-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBzdGFpbmxlc3MtYXBpL3Nkay1tY3AiXSwiZW52Ijp7IlNUQUlOTEVTU19BUElfS0VZIjoiU2V0IHlvdXIgU1RBSU5MRVNTX0FQSV9LRVkgaGVyZS4iLCJTVEFJTkxFU1NfUFJPSkVDVCI6IlNldCB5b3VyIFNUQUlOTEVTU19QUk9KRUNUIGhlcmUuIn19)
5858

59+
### VS Code
60+
61+
If you use MCP, you can install the MCP server by clicking the link below. You will need to set your environment variables
62+
in VS Code's `mcp.json`, which can be found via Command Palette > MCP: Open User Configuration.
63+
64+
[Open VS Code](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22%40stainless-api%2Fsdk-mcp%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40stainless-api%2Fsdk-mcp%22%5D%2C%22env%22%3A%7B%22STAINLESS_API_KEY%22%3A%22Set%20your%20STAINLESS_API_KEY%20here.%22%2C%22STAINLESS_PROJECT%22%3A%22Set%20your%20STAINLESS_PROJECT%20here.%22%7D%7D)
65+
66+
### Claude Code
67+
68+
If you use Claude Code, you can install the MCP server by running the command below in your terminal. You will need to set your
69+
environment variables in Claude Code's `.claude.json`, which can be found in your home directory.
70+
71+
```
72+
claude mcp add --transport stdio stainless_api_sdk_api --env STAINLESS_API_KEY="Your STAINLESS_API_KEY here." STAINLESS_PROJECT="Your STAINLESS_PROJECT here." -- npx -y @stainless-api/sdk-mcp
73+
```
74+
5975
## Exposing endpoints to your MCP Client
6076

6177
There are three ways to expose endpoints as tools in the MCP server:

0 commit comments

Comments
 (0)