MCP server for Salesforce debug log analysis — connect, capture, scan, and search Apex logs from any AI-powered editor.
Project description
sf-log-analyzer
MCP server for Salesforce debug log analysis. Connect to any Salesforce org, set up log capture, scan logs for errors, and search log content — all from your AI-powered editor (Cursor, VS Code, etc.).
Quick Start
Add to your .cursor/mcp.json or .vscode/mcp.json:
{
"mcpServers": {
"sf-log-analyzer": {
"command": "uvx",
"args": ["sf-log-analyzer"]
}
}
}
Requires uv installed. No other setup needed.
Tools (16 total)
Connection
- sf_list_orgs — List Salesforce CLI-authorized orgs
- sf_connect_org — Connect via CLI alias
- sf_connect — Connect via raw session ID (for subscriber/ISV orgs)
- sf_disconnect — Disconnect and clear cache
Log Capture Setup
- sf_list_users — List active users
- sf_list_debug_levels — List existing debug levels
- sf_create_debug_level — Create a new debug level
- sf_setup_logging — One-step: create debug level + trace flag
- sf_list_trace_flags — List active trace flags
- sf_create_trace_flag — Create a trace flag
- sf_delete_trace_flag — Delete a trace flag
Debug Log Analysis
- sf_list_logs — List debug logs (with filters)
- sf_get_log — Fetch full log body
- sf_scan_log — Scan a log for errors, exceptions, governor limits
- sf_scan_all_logs — Batch scan with summary
- sf_search_log — Full-text search within a log
Requirements
- Python 3.10+
- Salesforce CLI (
sf) for CLI-based connections (optional)
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sf_log_analyzer-0.1.0.tar.gz.
File metadata
- Download URL: sf_log_analyzer-0.1.0.tar.gz
- Upload date:
- Size: 12.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e61c8b2eb085e5657362aa288d0ed7b5f92f46d8d4656179ac4b92be23f12b9b
|
|
| MD5 |
5aa16c2d4f773658394e3aa0591bd9c7
|
|
| BLAKE2b-256 |
0e6ecd4bc56fbae7779c3f51a0883a9349dae28a8c5a4567fd29d739a293f27c
|
File details
Details for the file sf_log_analyzer-0.1.0-py3-none-any.whl.
File metadata
- Download URL: sf_log_analyzer-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6759c44057037d7d4ef3753d80aef6481f414c9fcfca7b5b3ebcc36f41d5da5f
|
|
| MD5 |
2b1097ed4660924896cdc7f771eb924f
|
|
| BLAKE2b-256 |
8618afd864603b1740ce10cedf0dbaa3c15ce838c58d07b440bedcc5a680070b
|