wb-api-mcp-test
v1.0.16
Published
For a custom client or server implementation, the communication happens using raw JSON-RPC messages over stdin and stdout. Each message must be on a single line and delimited by a newline character.
Readme
Raw STDIO Communication Example
For a custom client or server implementation, the communication happens using raw JSON-RPC messages over stdin and stdout. Each message must be on a single line and delimited by a newline character.
To invoke a tool, clients send a tools/call request:
{"jsonrpc": "2.0", "id": 4, "method": "tools/call", "params": { "name": "get_colors", "arguments": {"locale": "ru"} }}{"jsonrpc": "2.0", "id": 2, "method": "tools/list", "params": {}}Start MCP inspector
npx @modelcontextprotocol/inspector node path/to/server/index.js args...
Configure Claude Desktop
- Open your Claude Desktop configuration file:
For MacOS:
code ~/Library/Application\ Support/Claude/claude_desktop_config.jsonFor Windows:
code %AppData%\Claude\claude_desktop_config.json- Add or update the configuration:
{
"mcpServers": {
"wb-api-mcp": {
"command": "node",
"args": [
"/ABSOLUTE/PATH/TO/YOUR/build/index.js"
],
"env": {
"WB_API_KEY": "your_wb_api_key"
}
}
}
}A backslash (\) character must always be escaped as \\ within a JSON string.
For example an absolute path in Windows: "C:\\ABSOLUTE\\PATH\\TO\\YOUR\\build\\index.js"
- Save the file and restart Claude Desktop
Example Usage
import { main } from "wb-api-mcp-test";
main();