Skip to content

Commit 02cffeb

Browse files
committed
docs: remove specific tool count references and add inline env var support
- Remove hardcoded tool counts (42, 47) from all documentation - Update links to remove '-42-total' from anchors - Add inline environment variable support (-e flag) for Claude Code - Make inline env var method the recommended approach - Update postinstall message to be more generic - Documentation is now more maintainable without specific counts
1 parent bf3c5c5 commit 02cffeb

File tree

4 files changed

+51
-25
lines changed

4 files changed

+51
-25
lines changed

README.md

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,8 @@ An MCP (Model Context Protocol) server that provides access to Bing Webmaster To
1111

1212
### For Claude Code Users:
1313
```bash
14-
# Add the MCP server
15-
claude mcp add bing-webmaster -- npx -y @isiahw1/mcp-server-bing-webmaster@latest
16-
17-
# Set your API key
18-
export BING_WEBMASTER_API_KEY="your_api_key_here"
14+
# Add the MCP server with your API key
15+
claude mcp add bing-webmaster -e BING_WEBMASTER_API_KEY=your_api_key_here -- npx -y @isiahw1/mcp-server-bing-webmaster@latest
1916

2017
# Launch Claude Code
2118
claude
@@ -48,7 +45,7 @@ Add to your configuration (Settings → Developer → Edit Config):
4845
- [Cursor](#cursor)
4946
- [Windsurf](#windsurf)
5047
- [Development Setup](#development-setup-local-installation)
51-
- [Available Tools](#available-tools-42-total)
48+
- [Available Tools](#available-tools)
5249
- [Usage Examples](#usage-examples)
5350
- [Development](#development)
5451
- [Contributing](#contributing)
@@ -101,19 +98,28 @@ uv pip install -e .
10198
<details>
10299
<summary><b>Claude Code (Command Line)</b></summary>
103100

104-
#### Option 1: Quick Setup
101+
#### Option 1: Quick Setup (Recommended)
105102
```bash
106-
# Add the MCP server to Claude Code
107-
claude mcp add bing-webmaster -- npx -y @isiahw1/mcp-server-bing-webmaster@latest
103+
# Add the MCP server with inline API key
104+
claude mcp add bing-webmaster -e BING_WEBMASTER_API_KEY=your_api_key_here -- npx -y @isiahw1/mcp-server-bing-webmaster@latest
105+
106+
# Launch Claude Code
107+
claude
108+
```
108109

110+
#### Option 2: Using System Environment Variable
111+
```bash
109112
# Set your API key
110113
export BING_WEBMASTER_API_KEY="your_api_key_here"
111114

115+
# Add the MCP server
116+
claude mcp add bing-webmaster -- npx -y @isiahw1/mcp-server-bing-webmaster@latest
117+
112118
# Launch Claude Code
113119
claude
114120
```
115121

116-
#### Option 2: Using Environment File
122+
#### Option 3: Using Environment File
117123
```bash
118124
# Create .env file
119125
echo "BING_WEBMASTER_API_KEY=your_api_key_here" > .env
@@ -267,7 +273,7 @@ claude mcp add bing-webmaster-dev -- uv run python -m mcp_server_bwt
267273
After configuration, you should be able to:
268274
- See "bing-webmaster" in your MCP servers list
269275
- Use commands like "Show me all my sites in Bing Webmaster Tools"
270-
- Access all 42+ Bing Webmaster Tools functions
276+
- Access all Bing Webmaster Tools functions
271277

272278
### Troubleshooting
273279

@@ -281,7 +287,7 @@ After configuration, you should be able to:
281287
- Make sure you're using `npx` as the command, not `mcp-server-bing-webmaster`
282288
- If you have an old global installation, uninstall it: `npm uninstall -g @isiahw1/mcp-server-bing-webmaster`
283289

284-
## Available Tools (42 Total)
290+
## Available Tools
285291

286292
### Site Management
287293
- `get_sites` - List all verified sites in your account

docs/getting-started-claude-code.md

Lines changed: 31 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,39 @@ This guide will help you set up the Bing Webmaster Tools MCP server with Claude
1010

1111
## Setup Steps
1212

13-
### 1. Add the MCP Server
13+
### 1. Add the MCP Server with API Key
1414

15-
Run this command to add the Bing Webmaster MCP server to Claude Code:
15+
Choose one of the following methods:
1616

17+
#### Option A: Inline Environment Variable (Recommended)
18+
Add the server with your API key in one command:
1719
```bash
18-
claude mcp add bing-webmaster -- npx -y @isiahw1/mcp-server-bing-webmaster@latest
20+
claude mcp add bing-webmaster -e BING_WEBMASTER_API_KEY=your_api_key_here -- npx -y @isiahw1/mcp-server-bing-webmaster@latest
1921
```
2022

21-
### 2. Set Your API Key
22-
23-
#### Option A: Environment Variable
23+
#### Option B: Using System Environment Variable
24+
First set the environment variable:
2425
```bash
2526
export BING_WEBMASTER_API_KEY="your_api_key_here"
2627
```
2728

28-
#### Option B: Using .env File
29+
Then add the server:
30+
```bash
31+
claude mcp add bing-webmaster -- npx -y @isiahw1/mcp-server-bing-webmaster@latest
32+
```
33+
34+
#### Option C: Using .env File
2935
Create a `.env` file in your project directory:
3036
```
3137
BING_WEBMASTER_API_KEY=your_api_key_here
3238
```
3339

34-
### 3. Launch Claude Code
40+
Then add the server:
41+
```bash
42+
claude mcp add bing-webmaster -- npx -y @isiahw1/mcp-server-bing-webmaster@latest
43+
```
44+
45+
### 2. Launch Claude Code
3546

3647
```bash
3748
claude
@@ -78,19 +89,28 @@ MCP server "bing-webmaster" Server stderr: Starting Bing Webmaster MCP server...
7889

7990
### Using a Specific Version
8091
```bash
81-
claude mcp add bing-webmaster -- npx -y @isiahw1/[email protected]
92+
claude mcp add bing-webmaster -e BING_WEBMASTER_API_KEY=your_api_key_here -- npx -y @isiahw1/[email protected]
8293
```
8394

8495
### Using Local Development Version
8596
```bash
8697
# From your development directory
8798
cd /path/to/mcp-server-bing-webmaster
88-
claude mcp add bing-webmaster-dev -- uv run python -m mcp_server_bwt
99+
claude mcp add bing-webmaster-dev -e BING_WEBMASTER_API_KEY=your_api_key_here -- uv run python -m mcp_server_bwt
100+
```
101+
102+
### Multiple Environment Variables
103+
You can pass multiple environment variables using multiple `-e` flags:
104+
```bash
105+
claude mcp add bing-webmaster \
106+
-e BING_WEBMASTER_API_KEY=your_api_key_here \
107+
-e LOG_LEVEL=debug \
108+
-- npx -y @isiahw1/mcp-server-bing-webmaster@latest
89109
```
90110

91111
## Next Steps
92112

93-
- Explore the [full list of available tools](../README.md#available-tools-42-total)
113+
- Explore the [full list of available tools](../README.md#available-tools)
94114
- Check out [usage examples](../README.md#usage-examples)
95115
- Learn about [API quotas and limits](https://www.bing.com/webmaster/help/webmaster-api-limits)
96116

docs/getting-started-claude-desktop.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ You can run multiple MCP servers simultaneously:
169169

170170
## Next Steps
171171

172-
- Explore the [full list of available tools](../README.md#available-tools-42-total)
172+
- Explore the [full list of available tools](../README.md#available-tools)
173173
- Check out [usage examples](../README.md#usage-examples)
174174
- Learn about [API quotas and limits](https://www.bing.com/webmaster/help/webmaster-api-limits)
175175

scripts/postinstall.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ console.log(' https://github.com/isiahw1/mcp-server-bing-webmaster');
3939
console.log('\n🔑 Next Steps:');
4040
console.log(' 1. Get your Bing Webmaster API key from https://www.bing.com/webmasters');
4141
console.log(' 2. Configure Claude Desktop with your API key');
42-
console.log(' 3. Start using 47 powerful Bing Webmaster tools!\n');
42+
console.log(' 3. Start using powerful Bing Webmaster tools!\n');

0 commit comments

Comments
 (0)