MCPcopy Create free account
hub / github.com/FastLED/FastLED / code_fingerprint

Function code_fingerprint

mcp_server.py:1443–1461  ·  view source on GitHub ↗

Calculate code fingerprint.

(
    arguments: dict[str, Any], project_root: Path
)

Source from the content-addressed store, hash-verified

1441
1442
1443async def code_fingerprint(
1444 arguments: dict[str, Any], project_root: Path
1445) -> CallToolResult:
1446 """Calculate code fingerprint."""
1447 from test import calculate_fingerprint
1448
1449 directory = arguments.get("directory", "src")
1450 target_dir = project_root / directory
1451
1452 fingerprint_data = calculate_fingerprint(target_dir)
1453
1454 result_text = f"Code fingerprint for {directory}:\n"
1455 result_text += f"Hash: {fingerprint_data.hash}\n"
1456 result_text += f"Elapsed time: {fingerprint_data.elapsed_seconds or 'N/A'}s\n"
1457
1458 if fingerprint_data.status:
1459 result_text += f"Status: {fingerprint_data.status}\n"
1460
1461 return CallToolResult(content=[TextContent(type="text", text=result_text)])
1462
1463
1464async def lint_code(arguments: dict[str, Any], project_root: Path) -> CallToolResult:

Callers 1

call_toolFunction · 0.85

Calls 2

calculate_fingerprintFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected