Skip to content

Conversation

@swissspidy
Copy link
Collaborator

@swissspidy swissspidy commented May 2, 2025

Still testing...

Command line

# First add server to the config
$ wp mcp server add mylocalsite https://admin:[email protected]/wp-json/mcp/v1/mcp

# Then start the server (optionally add --debug=ai-command)
$ wp mcp proxy mylocalsite
# Initialize connection (this should already return some tools etc.)
{"jsonrpc":"2.0","id":"0","method":"initialize","params":{"protocolVersion": "2025-03-26", "capabilities": {}, "clientInfo":{"name": "test", "version": "1.0"}}}
# List tools (again) for testing
{"jsonrpc":"2.0","id":"0","method":"tools/list","params":{}}

MCP Inspector

Note: does not yet support the 2025-03-26 protocol version

Transport type: STDIO
Command: wp
Arguments: mcp proxy mylocalsite

Click Connect

Claude Desktop

{
    "mcpServers": {
        "mylocalsite-proxy": {
            "command": "wp",
            "args": [
                "mcp",
                "proxy",
                "mylocalsite"
            ]
        }
    }
}

Fixes #60

@swissspidy swissspidy added the enhancement New feature or request label May 2, 2025
@codecov
Copy link

codecov bot commented May 2, 2025

Codecov Report

❌ Patch coverage is 0% with 82 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/MCP/ProxySession.php 0.00% 50 Missing ⚠️
src/McpCommand.php 0.00% 31 Missing ⚠️
ai-command.php 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@swissspidy swissspidy merged commit 1f54069 into main Jul 28, 2025
6 of 7 checks passed
@swissspidy swissspidy deleted the add/proxy-command branch July 28, 2025 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Long-running CLI server

2 participants