initial server
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
from fastmcp import FastMCP
|
||||
|
||||
pytest_scaffolding_server = FastMCP("pytest-scaffolding")
|
||||
|
||||
|
||||
@pytest_scaffolding_server.tool()
|
||||
def propose_pytest_mvp_tree(target_scope: str = "src/") -> str:
|
||||
"""Return a minimal test scaffold plan for a target scope."""
|
||||
return (
|
||||
f"MVP pytest scaffold for {target_scope}:\n"
|
||||
"1. Mirror the source subtree under tests/.\n"
|
||||
"2. Add one happy-path test and one edge-case test per core module.\n"
|
||||
"3. Keep fast tests isolated from integration/external dependencies.\n"
|
||||
"4. Use uv run pytest as the canonical runner."
|
||||
)
|
||||
Reference in New Issue
Block a user