feat(docs): add MCP Server documentation and configuration#7
feat(docs): add MCP Server documentation and configuration#7escapeboy wants to merge 1 commit intotweakphp:mainfrom
Conversation
escapeboy
commented
Nov 25, 2025
- Add comprehensive MCP Server documentation page with setup instructions
- Include configuration guides for Claude Desktop, Cursor, and custom MCP clients
- Document all five available MCP tools: execute_php, execute_with_loader, get_execution_history, switch_connection, and get_php_info
- Add detailed examples for each connection type: local, Docker, SSH, Kubernetes, and Vapor
- Include troubleshooting section and common workflows
- Add MCP Server navigation link to VitePress config
- Add MCP server icon (mcp.svg) to public assets
- Update package-lock.json with dependency changes
✅ Deploy Preview for tweakphp ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Docs need updating — Claude Desktop config is incorrectThe current Claude Desktop configuration example requires Node.js to be installed on the user's machine: {
"mcpServers": {
"tweakphp": {
"command": "node",
"args": ["-e", "require('http').request(...)"],
"env": {}
}
}
}This is exactly the problem reported by users in tweakphp/tweakphp#202 — the MCP server runs inside Electron's bundled Node.js, so no system Node.js is required. The transport is Streamable HTTP, not stdio. Correct configurationClaude Desktop ( {
"mcpServers": {
"tweakphp": {
"url": "http://127.0.0.1:3000/mcp",
"type": "http"
}
}
}Cursor ( {
"mcpServers": {
"tweakphp": {
"url": "http://127.0.0.1:3000/mcp",
"type": "http"
}
}
}VS Code ( {
"servers": {
"tweakphp": {
"url": "http://127.0.0.1:3000/mcp",
"type": "http"
}
}
}Custom MCP Client sectionThe TypeScript example uses import { Client } from '@modelcontextprotocol/sdk/client/index.js'
import { StreamableHTTPClientTransport } from '@modelcontextprotocol/sdk/client/streamableHttp.js'
const client = new Client({ name: 'my-agent', version: '1.0.0' })
await client.connect(new StreamableHTTPClientTransport(
new URL('http://127.0.0.1:3000/mcp')
))Summary of required changes in
|
- Add comprehensive MCP Server documentation page with setup instructions - Include configuration guides for Claude Desktop, Cursor, and custom MCP clients - Document all five available MCP tools: execute_php, execute_with_loader, get_execution_history, switch_connection, and get_php_info - Add detailed examples for each connection type: local, Docker, SSH, Kubernetes, and Vapor - Include troubleshooting section and common workflows - Add MCP Server navigation link to VitePress config - Add MCP server icon (mcp.svg) to public assets - Update package-lock.json with dependency changes
63e2234 to
fb59f1b
Compare
✅ Deploy Preview for tweakphp ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Updated: correct client configuration examplesBased on the investigation in tweakphp/tweakphp#202, the Claude Desktop configuration example in this PR was incorrect — it used The MCP server runs inside Electron's bundled Node.js — no system Node.js is needed. The transport is Streamable HTTP. Changes made to
|