tracescope-mcp

v0.3.5
@rebornace/tracescope-mcp Checked 21 hours ago Published 1 month ago

TraceScope MCP server — impact analysis + design diff tools for any MCP client

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

tracescope_open_panel

Open the TraceScope visual manual-test panel in the browser (best for non-technical testers).

tracescope_list_commits

List recent git commits for a local path or remote URL. Remotes are cloned/fetched under ~/.tracescope/repos. Supports HTTPS token or SSH key auth.

ParameterTypeDescription
repoPath *stringLocal git path or remote URL (https://… / git@… / github.com/org/repo)
authModestring
authPrivateKeyPathstringSSH private key absolute path
authTokenstringHTTPS PAT / password
authUsernamestring
fetchbooleanFetch remotes first (default true)
limitintegerMax commits (default 40)

tracescope_get_diff

Fetch a chunk of unified git diff between two commits. Use offset/limit to page through files; do not request the entire tree at once.

ParameterTypeDescription
baseCommit *string
headCommit *string
repoPath *stringLocal git path or remote URL
authModestring
authPrivateKeyPathstringSSH private key absolute path
authTokenstringHTTPS PAT / password
authUsernamestring
limitintegerMax files (default 8, max 20)
offsetintegerFile offset (default 0)
pathsstringOptional comma-separated relative paths to limit the diff

tracescope_analyze_impact

Compare two git commits (local path or remote URL) and produce a manual-test impact scope report. Supports private remotes via HTTPS token or SSH key.

ParameterTypeDescription
baseCommit *stringStable baseline commit (SHA or ref, e.g. origin/main)
headCommit *stringUnder-test commit (SHA or ref)
repoPath *stringLocal git path or remote URL (https://… / git@… / github.com/org/repo)
authModestring
authPrivateKeyPathstringSSH private key absolute path
authTokenstringHTTPS PAT / password
authUsernamestring
exportDirstringIf set, also write report.md and report.csv
fetchRemotebooleanFetch remotes before analyze
modulesConfigPathstring
rippleDepthinteger

tracescope_create_handtest_job

Create a TraceScope hand-test chat job and return the starter prompt. After interactive analysis, call tracescope_publish_handtest with the same jobId.

ParameterTypeDescription
baseCommit *string
headCommit *string
repoPath *stringLocal git path or remote URL
accessModestring
authModestring
authPrivateKeyPathstringSSH private key absolute path
authTokenstringHTTPS PAT / password
authUsernamestring
fetchRemoteboolean
relatedWorkItemsstringOptional related work-item refs (JSON or free text)

tracescope_publish_handtest

Publish the final hand-test checklist for a TraceScope chat job so the panel can refresh and the report is persisted.

ParameterTypeDescription
items *stringJSON array of hand-test items: [{displayName,kind,risk,files,suggestedSteps,evidence}]
jobId *stringTraceScope job id from tracescope_create_handtest_job / starter prompt

tracescope_start_visual_review

Start a design↔code UI review job and return the starter prompt. Use tracescope_get_design_snapshot as needed, then tracescope_publish_visual_findings.

ParameterTypeDescription
adapterId *stringPlatform adapter id, e.g. android-xml / web-react
relativePath *stringCode file relative path to compare
repoPath *string
designIdstringDesign node / page id when known
designUrlstringAlias of figmaUrl
figmaTokenstring
figmaUrlstringFigma or Lanhu design URL
lanhuCookiestring

tracescope_get_design_snapshot

Load a compact text snapshot of the design tree for a TraceScope UI review job. Prefer a specific nodeId over the whole page.

ParameterTypeDescription
jobId *string
maxNodesinteger
nodeIdstring

tracescope_publish_visual_findings

Publish structured UI review findings for a TraceScope visual job so the panel refreshes and results persist.

ParameterTypeDescription
findings *stringJSON array: [{title,severity,nodeId,location,expected,actual,codeSource,suggestion}]
jobId *string
renderPatchstringOptional legacy experimental patch JSON
summarystring

tracescope_start_page_rematch

Start a design page ↔ code file rematch job and return the starter prompt. Write back with tracescope_publish_page_rematch.

ParameterTypeDescription
designId *string
repoPath *string
adapterIdstring
designUrlstring
figmaTokenstring
figmaUrlstring
lanhuCookiestring
relativePathstring

tracescope_publish_page_rematch

Publish AI page↔file rematch recommendations for a TraceScope rematch job.

ParameterTypeDescription
jobId *string
picks *stringJSON array: [{adapterId,relativePath,kindLabel?,score?,reason?}]
notestring

tracescope_crash_probe

Verify Umeng / Crashlytics / local crash credentials. Pass remember=true to persist into ~/.tracescope (same store as the DSH sidebar).

ParameterTypeDescription
accessTokenstringGoogle OAuth access token (ya29.… )
appIdstringFirebase App ID (1:…:ios|android:…)
appKeystringUmeng AppKey
cookiestringUmeng Console cookie
langstring
projectIdstringFirebase / GCP project id or number
providerstring
rememberbooleanSave credentials when probe succeeds (default false)
repoPathstringCode directory / repo key for saved credentials and stack file matching
serviceAccountJsonstringCrashlytics service-account JSON
stackTextstringPasted stack for local provider / fallback
titlestring

tracescope_crash_filter_options

List crash filter options (app versions / OS / devices) for the active CrashProvider.

ParameterTypeDescription
accessTokenstringGoogle OAuth access token (ya29.… )
appIdstringFirebase App ID (1:…:ios|android:…)
appKeystringUmeng AppKey
cookiestringUmeng Console cookie
langstring
metaTypestringProvider meta type, e.g. crash / anr
projectIdstringFirebase / GCP project id or number
providerstring
repoPathstringCode directory / repo key for saved credentials and stack file matching
serviceAccountJsonstringCrashlytics service-account JSON
stackTextstringPasted stack for local provider / fallback
titlestring

tracescope_crash_list

List crash/ANR issues from Umeng or Firebase Crashlytics (or empty for local). Uses saved credentials when tool credential fields are omitted.

ParameterTypeDescription
accessTokenstringGoogle OAuth access token (ya29.… )
appIdstringFirebase App ID (1:…:ios|android:…)
appKeystringUmeng AppKey
appVersionstringJSON array or comma-separated versions
cookiestringUmeng Console cookie
deviceModelsstringJSON array of device ids
endDaystring
errorKindstringcrash / anr / error / other
keywordstring
langstring
osVersionsstringJSON array of OS versions
pageinteger
pageSizeinteger
projectIdstringFirebase / GCP project id or number
providerstring
repoPathstringCode directory / repo key for saved credentials and stack file matching
serviceAccountJsonstringCrashlytics service-account JSON
sortstring
stackTextstringPasted stack for local provider / fallback
startDaystring
statusstring
timeRangestringe.g. 24h / 7d / 30d / 90d / custom
titlestring

tracescope_crash_detail

Fetch one crash/ANR incident (including stack text) by id from the active CrashProvider.

ParameterTypeDescription
id *stringIssue / error id from tracescope_crash_list
accessTokenstringGoogle OAuth access token (ya29.… )
appIdstringFirebase App ID (1:…:ios|android:…)
appKeystringUmeng AppKey
cookiestringUmeng Console cookie
langstring
projectIdstringFirebase / GCP project id or number
providerstring
repoPathstringCode directory / repo key for saved credentials and stack file matching
serviceAccountJsonstringCrashlytics service-account JSON
stackTextstringPasted stack for local provider / fallback
titlestring

tracescope_crash_analyze

Local crash analysis: parse stack, match files under repoPath, return summary / matchedFiles / fixHints (no model call).

ParameterTypeDescription
repoPath *stringLocal code directory for filename matching
idstring
incidentstringJSON CrashIncident from tracescope_crash_detail (preferred)
langstring
stackTextstringPasted stack when no incident JSON
titlestring

tracescope_create_crash_analysis_job

Create a crash AI analysis job and return a starter prompt with jobId. After reasoning, call tracescope_publish_crash_analysis with the same jobId.

ParameterTypeDescription
incident *stringJSON CrashIncident object
repoPath *string
summary *stringLocal analysis summary from tracescope_crash_analyze
fixHintsstringJSON string array of fix hints
langstring
matchedFilesstringJSON array from analyze report: [{path,reason,symbol?}]
stackTextstring

tracescope_publish_crash_analysis

Publish the crash/ANR AI conclusion for a TraceScope crash job so panels / clients can write it back.

ParameterTypeDescription
analysis *stringFull AI conclusion text (root cause / impact / fix)
jobId *stringJob id from tracescope_create_crash_analysis_job
langstring

tracescope_get_crash_job

Poll a crash AI job for status and published aiAnalysis.

ParameterTypeDescription
jobId *stringCrash job id
idstringAlias of jobId
langstring