
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
Apex Log MCP Server - AI 기반 Salesforce Apex 디버그 로그 분석. 성능 병목, 느린 방법, SOQL 병목 및 통치자 제한 문제 찾기.
개요
수천 개의 로그 라인 스크롤 대신, 느리고 왜 묻습니다. Apex Log Analyzer VS Code Extension과 동일한 파서를 사용합니다. Node.js 22 이상이 필요합니다. MCP 클라이언트 구성 (claude desktop config.json, VS Code mcp.json 등)에 이것을 추가하십시오: 다음 로그인을 분석하기 위해 조수를 요청하십시오. apexlog execute anonymous는 또한 Salesforce CLI와 org를 인증해야합니다. - "이 디버그 로그 요약"- "기본 네임스페이스에서 5 가지 가장 느린 방법을 보여"- "이 거래에서 어떤 통치자 제한에 접근합니까?"- "내 스크래치 org에 대한이 에이펙트를 잃고 성능 분석" 서버 연결 비용 유지 ~1,232 토큰, 0.6%의 200K 컨텍스트. 토큰 비용 보기 분석 도구는 .log 파일에 절대 경로를 취합니다. 모든 도구는 TOON으로 인코딩 한 플랫 테이블을 반환합니다. 아무것도 반복하고, 아무것도 공간을 절약하기 위해 떨어졌다. 0은 아무도, "측정되지 않음". 무슨 일이 일어나지 않았다면 : 지방 오류, 분실 로그 내용, 쿼리 계획.
개요(AI 번역)
MCP Server to Analyze Salesforce Apex debug는 AI Assistant에서 로그를 분석합니다. 느린 방법 찾기, 지배자 제한 위험, 그리고 거래는 시간을 보냈습니다. org에서 익명 Apex, fetches 로그를 실행하고 추적 플래그를 설정합니다.
수천 개의 로그 라인 스크롤 대신, 느리고 왜 묻습니다. Apex Log Analyzer VS Code 확장자로 동일한 Apex 로그 파서를 사용합니다.
빠른 시작
Node.js 22 이상이 필요합니다. MCP 클라이언트 설정에 이것을 추가하십시오 (claude_desktop_config.json], VS Code mcp.json 등):
VS Code mcp.json에서 "servers"] 의 장소 "mcpServers"를 사용합니다.
다음 로그인을 분석하기 위해 조수를 요청하십시오. org 도구 - apexlog_execute_anonymous, apexlog_list_org_logs, apexlog_get_org_logs] 및 apexlog_create_trace_flag] - 또한 Salesforce CLI로 인증 된 org가 필요합니다.
예 Prompts
- “이 디버그 로그 요약”
- “기본 네임스페이스에서 5개의 가장 느린 방법 보기”
- “우리는 이 거래에서 지배자 제한에 접근합니까?”
- “내 System.debug 통화 인쇄는 어떻게 되었습니까?”
- “내 스크래치 org에 대한이 정점과 성능을 분석”
- “FINEST에서 데이터베이스 로깅으로 다시 시작”
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
Apex Log MCP Server
MCP Server to Analyze Salesforce Apex debug logs from your AI assistant. Finds slow methods, governor limit risks, and where a transaction spent its time. In your org, runs anonymous Apex, fetches logs, and sets trace flags.
Instead of scrolling thousands of log lines, ask what’s slow and why. Uses the same Apex log parser as the Apex Log Analyzer VS Code extension.
Quick Start
Requires Node.js 22 or later. Add this to your MCP client config (claude_desktop_config.json, VS Code mcp.json, and so on):
{
"mcpServers": {
"apex-log-mcp": {
"command": "npx",
"args": ["-y", "@certinia/apex-log-mcp"]
}
}
}
In VS Code mcp.json, use "servers" in place of "mcpServers".
Then ask your assistant to analyze a log. The org tools - apexlog_execute_anonymous, apexlog_list_org_logs, apexlog_get_org_logs and apexlog_create_trace_flag - also need an org authenticated with the Salesforce CLI.
Example Prompts
- “Give me a summary of this debug log”
- “Show me the 5 slowest methods in the default namespace”
- “Are we approaching any governor limits in this transaction?”
- “What did my System.debug calls print?”
- “Run this Apex against my scratch org and analyze the performance”
- “Run it again with database logging at FINEST”
- “Find the latest debug log for [email protected] and summarize it”
- “Why are there no logs for this user?”
Keeping the server connected costs ~2,445 tokens, 1.2% of a 200K context. See Token Cost.
Tools Reference
설치
npx -y @certinia/apex-log-mcp설정
{
"mcpServers": {
"apex-log-mcp": {
"command": "npx",
"args": ["-y", "@certinia/apex-log-mcp"]
}
}
}