Claude Code & Claude Desktop
Claude Code
Add the server with claude mcp add, passing your Stellar testnet credentials
as environment variables:
claude mcp add --transport stdio wasit \
--env MPP_STELLAR_NETWORK=stellar:testnet \
--env STELLAR_PRIVATE_KEY=S... \
--env MPP_PAYER_SECRET=S... \
--env COMMITMENT_SECRET_HEX=... \
-- npx -y @wasit-dev/serverThis registers the server at local scope (current project only). Add
--scope user instead if you want it available in every project, or
--scope project to commit a shared .mcp.json for a team. Verify it
connected with claude mcp list, then ask Claude Code directly, for example
"run wasit_x402_test against https://my-service.example.com".
To remove it later: claude mcp remove wasit.
Try it first: read-only, no keys
The quickest safe start needs no keys and settles nothing. Register the server
without any --env:
claude mcp add --transport stdio wasit -- npx -y @wasit-dev/serverThen ask Claude Code to run only the read-only checks, for example "run
wasit_x402_test against https://my-service.example.com with readOnly true; do
not pay anything". Without a payer key in the server's environment the payment
checks (X402-06 to 10) do not run, and readOnly: true skips them even when
a key is set.
On Windows
On native Windows, Claude Code needs cmd /c in front of npx for a stdio
server. In Windows PowerShell 5.1 the bare -- is swallowed, so -y reaches
claude and the command fails with error: unknown option '-y'. Quote the
separator:
claude mcp add --transport stdio wasit '--' cmd /c npx -y @wasit-dev/serverA user reported this working on Windows 11 with PowerShell 5.1, Claude Code 2.1.183 and Node 24 (2026-10-24, wasit-dev/Wasit#15).
Claude Desktop
Open Settings, go to the Developer tab, and click "Edit Config". This opens (or creates) the config file at:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Add a wasit entry under mcpServers:
{
"mcpServers": {
"wasit": {
"command": "npx",
"args": ["-y", "@wasit-dev/server"],
"env": {
"MPP_STELLAR_NETWORK": "stellar:testnet",
"STELLAR_PRIVATE_KEY": "S...",
"MPP_PAYER_SECRET": "S...",
"COMMITMENT_SECRET_HEX": "..."
}
}
}
}Save the file and fully quit and restart Claude Desktop (not just close the
window — use the Claude menu, Quit). The wasit tools then appear under the
connectors indicator in the message box. If the server doesn't show up, check
~/Library/Logs/Claude/mcp-server-wasit.log (macOS) or
%APPDATA%\Claude\logs\mcp-server-wasit.log (Windows) for the stderr output.