spx-mcp-server
SPX MCP Server
Reiner Web-MCP-Server für php-spx-Berichte. Er ruft die eingebetteten SPX-Web-Endpunkte auf, analysiert den vollständigen Bericht und gibt LLM-große JSON-Zusammenfassungen anstelle von rohen Ereignisströmen zurück.
Voraussetzungen
Node.js 20 oder neuer
Eine Anwendung mit der
spx-PHP-Erweiterung, die für HTTP-Profiling aktiviert istSPX-HTTP-Zugriff konfiguriert, zum Beispiel:
spx.http_enabled=1
spx.http_key="dev"
spx.http_ip_whitelist="127.0.0.1"Related MCP server: otel-mcp
Erstellen
npm install
npm run buildDer erstellte stdio-Einstiegspunkt ist:
/path/to/spx-mcp-server/dist/index.jsSetzen Sie diese Umgebungsvariablen in Ihrer Agentenkonfiguration oder übergeben Sie sie pro Tool-Aufruf:
SPX_BASE_URL=http://localhost
SPX_KEY=devInstallation in Codex CLI
Bearbeiten Sie ~/.codex/config.toml und fügen Sie hinzu:
[mcp_servers.spx]
command = "node"
args = ["/path/to/spx-mcp-server/dist/index.js"]
env = { SPX_BASE_URL = "http://localhost", SPX_KEY = "dev" }Starten Sie Codex CLI nach dem Bearbeiten der Datei neu.
Installation in Claude Code
Lokale Projektkonfiguration:
claude mcp add --transport stdio --scope project \
--env SPX_BASE_URL=http://localhost \
--env SPX_KEY=dev \
spx -- node /path/to/spx-mcp-server/dist/index.jsBenutzerweite Konfiguration:
claude mcp add --transport stdio --scope user \
--env SPX_BASE_URL=http://localhost \
--env SPX_KEY=dev \
spx -- node /path/to/spx-mcp-server/dist/index.jsÜberprüfen:
claude mcp list
claude mcp get spxÄquivalente .mcp.json-Projektkonfiguration:
{
"mcpServers": {
"spx": {
"type": "stdio",
"command": "node",
"args": ["/path/to/spx-mcp-server/dist/index.js"],
"env": {
"SPX_BASE_URL": "http://localhost",
"SPX_KEY": "dev"
}
}
}
}Installation in Cline
Cline ist ein beliebter Open-Source-VS-Code-Agent mit MCP-Unterstützung.
Führen Sie für die Cline CLI aus:
cline mcpFügen Sie dann einen lokalen stdio-Server hinzu mit:
name: spx
command: node
args: /path/to/spx-mcp-server/dist/index.js
env:
SPX_BASE_URL=http://localhost
SPX_KEY=devÖffnen Sie für die VS Code-Erweiterung die Cline MCP Servers-Einstellungen und fügen Sie dieses JSON hinzu:
{
"mcpServers": {
"spx": {
"command": "node",
"args": ["/path/to/spx-mcp-server/dist/index.js"],
"env": {
"SPX_BASE_URL": "http://localhost",
"SPX_KEY": "dev"
},
"disabled": false,
"autoApprove": []
}
}
}Installation in OpenClaw
OpenClaw ist ein Open-Source-Personal-Agent/Gateway, das ausgehende MCP-Server unter mcp.servers verwalten kann.
Bearbeiten Sie ~/.openclaw/openclaw.json oder die Datei, auf die OPENCLAW_CONFIG_PATH verweist:
{
mcp: {
servers: {
spx: {
command: "node",
args: ["/path/to/spx-mcp-server/dist/index.js"],
env: {
SPX_BASE_URL: "http://localhost",
SPX_KEY: "dev",
},
},
},
},
}Überprüfen Sie die gespeicherte Konfiguration:
openclaw mcp status --verbose
openclaw mcp probe spxGrundlegender Arbeitsablauf
Rufen Sie
profile_urlfür die Web-URL auf, die Sie profilieren möchten.Rufen Sie
list_reportsauf.Wählen Sie den neuesten passenden Bericht aus.
Rufen Sie
analyze_reportoderget_hot_pathsauf.
Werkzeuge
profile_url: sendet eine HTTP-Anfrage mit aktivierten SPX-Cookies.list_reports: liest?SPX_UI_URI=/data/reports/metadata.get_report_metadata: liest ein Berichts-Metadaten-JSON.analyze_report: lädt?SPX_UI_URI=/data/reports/get/<key>herunter und analysiert es.get_hot_paths: gibt die teuersten Aufrufpfade zurück.get_function_profile: gibt die aggregierten Daten einer Funktion sowie Aufrufer/Aufgerufene zurück.get_raw_events: gibt einen paginierten Debug-Ausschnitt roher Ereignisse zurück.
Der Analysator begrenzt die Ausgabe standardmäßig. Große SPX-Berichte können Millionen von Ereignissen enthalten, daher wird die vollständige Rohberichtausgabe absichtlich nicht als normales Tool-Ergebnis bereitgestellt. get_raw_events ist auf 1000 Ereignisse pro Aufruf begrenzt und dient zum Debuggen des Parser- oder Analysatorverhaltens.
Referenzen
Claude Code MCP-Konfiguration: https://code.claude.com/docs/en/mcp
Cline MCP-Konfiguration: https://github.com/cline/cline/blob/main/docs/mcp/mcp-overview.mdx
OpenClaw MCP-Konfiguration: https://docs.openclaw.ai/gateway/configuration-reference
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityBmaintenanceAn MCP server that converts Windows WPR .etl performance traces into structured JSON summaries and flamegraph-ready data for LLM analysis. It bridges Windows Performance Analyzer automation with LLM reasoning capabilities for performance troubleshooting.1MIT
- AlicenseAqualityDmaintenanceMCP server that gives AI agents access to your application's OpenTelemetry traces for querying, analysis, and debugging.5262MIT
- Alicense-qualityBmaintenanceMCP server that exposes Symfony profiler runtime data (requests, queries, logs) to AI agents like Claude Code for debugging and optimization.MIT
- Alicense-qualityDmaintenanceRemote MCP server that normalizes OpenTelemetry GenAI spans by mapping fields, provider attributes, and missing attributes, and exports dashboard schemas.MIT
Related MCP Connectors
Remote MCP for GenAI span mapping, provider normalization, dashboard schemas, and receipts.
MCP server providing access to the Scorecard API to evaluate and optimize LLM systems.
AI Reasoning Cache & Consensus Layer with 11 MCP tools via Streamable HTTP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/szepeviktor/spx-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server