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

Function run_specific_command

mcp_server.py:1622–1636  ·  view source on GitHub ↗

Run a specific command.

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

Source from the content-addressed store, hash-verified

1620
1621
1622async def run_specific_command(
1623 arguments: dict[str, Any], project_root: Path
1624) -> CallToolResult:
1625 """Run a specific command."""
1626 command = arguments["command"]
1627 working_directory = arguments.get("working_directory", ".")
1628
1629 work_dir = project_root / working_directory
1630
1631 result = await run_command(command.split(), work_dir)
1632 return CallToolResult(
1633 content=[
1634 TextContent(type="text", text=f"Command: {command}\nOutput:\n{result}")
1635 ]
1636 )
1637
1638
1639async def validate_completion(

Callers 1

call_toolFunction · 0.85

Calls 2

run_commandFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected