Fix missing mcpServers keys in README code examples

This commit is contained in:
Rahim Nathwani 2024-11-25 20:04:06 -08:00
commit a54651477c
9 changed files with 85 additions and 36 deletions

View file

@ -38,11 +38,16 @@ Add this to your `claude_desktop_config.json`:
```json ```json
{ {
"brave-search": { "mcpServers": {
"command": "npx", "brave-search": {
"args": ["-y", "@modelcontextprotocol/server-brave-search"], "command": "npx",
"env": { "args": [
"BRAVE_API_KEY": "YOUR_API_KEY_HERE" "-y",
"@modelcontextprotocol/server-brave-search"
],
"env": {
"BRAVE_API_KEY": "YOUR_API_KEY_HERE"
}
} }
} }
} }

View file

@ -78,8 +78,14 @@ Add to your `claude_desktop_config.json`:
```json ```json
{ {
"everything": { "mcpServers": {
"command": "npx", "everything": {
"args": ["-y", "@modelcontextprotocol/server-everything"] "command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-everything"
]
}
} }
} }
```

View file

@ -82,9 +82,16 @@ Node.js server implementing Model Context Protocol (MCP) for filesystem operatio
Add this to your `claude_desktop_config.json`: Add this to your `claude_desktop_config.json`:
```json ```json
{ {
"filesystem": { "mcpServers": {
"command": "npx", "filesystem": {
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/Users/username/Desktop", "/path/to/other/allowed/dir"] "command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/Users/username/Desktop",
"/path/to/other/allowed/dir"
]
}
} }
} }
``` ```

View file

@ -51,9 +51,14 @@ To integrate this server with the desktop app, add the following to your app's s
```json ```json
{ {
"gdrive": { "mcpServers": {
"command": "npx", "gdrive": {
"args": ["-y", "@modelcontextprotocol/server-gdrive"] "command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-gdrive"
]
}
} }
} }
``` ```

View file

@ -117,11 +117,16 @@ To use this with Claude Desktop, add the following to your `claude_desktop_confi
```json ```json
{ {
"github": { "mcpServers": {
"command": "npx", "github": {
"args": ["-y", "@modelcontextprotocol/server-github"], "command": "npx",
"env": { "args": [
"GITHUB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>" "-y",
"@modelcontextprotocol/server-github"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
}
} }
} }
} }

View file

@ -61,11 +61,16 @@ Add the following to your `claude_desktop_config.json`:
```json ```json
{ {
"google-maps": { "mcpServers": {
"command": "npx", "google-maps": {
"args": ["-y", "@modelcontextprotocol/server-google-maps"], "command": "npx",
"env": { "args": [
"GOOGLE_MAPS_API_KEY": "<YOUR_API_KEY>" "-y",
"@modelcontextprotocol/server-google-maps"
],
"env": {
"GOOGLE_MAPS_API_KEY": "<YOUR_API_KEY>"
}
} }
} }
} }

View file

@ -130,9 +130,14 @@ Example:
Add this to your claude_desktop_config.json: Add this to your claude_desktop_config.json:
```json ```json
{ {
"memory": { "mcpServers": {
"command": "npx", "memory": {
"args": ["-y", "@modelcontextprotocol/server-memory"] "command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-memory"
]
}
} }
} }
``` ```

View file

@ -26,9 +26,15 @@ To use this server with the Claude Desktop app, add the following configuration
```json ```json
{ {
"postgres": { "mcpServers": {
"command": "npx", "postgres": {
"args": ["-y", "@modelcontextprotocol/server-postgres", "postgresql://localhost/mydb"] "command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-postgres",
"postgresql://localhost/mydb"
]
}
} }
} }
``` ```

View file

@ -98,12 +98,17 @@ Add the following to your `claude_desktop_config.json`:
```json ```json
{ {
"slack": { "mcpServers": {
"command": "npx", "slack": {
"args": ["-y", "@modelcontextprotocol/server-slack"], "command": "npx",
"env": { "args": [
"SLACK_BOT_TOKEN": "xoxb-your-bot-token", "-y",
"SLACK_TEAM_ID": "T01234567" "@modelcontextprotocol/server-slack"
],
"env": {
"SLACK_BOT_TOKEN": "xoxb-your-bot-token",
"SLACK_TEAM_ID": "T01234567"
}
} }
} }
} }