Phase 0: FastMCP scaffold with ping tool
Set up the familiar package (src layout, uv/hatchling) with a FastMCP server exposing a read-only ping health tool. Add pytest smoke tests with 80% coverage gate. Flesh out the README with the project vision and roadmap. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
7 files changed
+1864
-1
No files matched your search
@@ -0,0 +1,19 @@
|
||||
"""Phase 0 smoke tests."""
|
||||
|
||||
import asyncio
|
||||
|
||||
from familiar import __version__
|
||||
from familiar.server import mcp, ping
|
||||
|
||||
|
||||
def test_ping_reports_ok():
|
||||
result = ping()
|
||||
assert result["status"] == "ok"
|
||||
assert result["server"] == "familiar"
|
||||
assert result["version"] == __version__
|
||||
assert "time_utc" in result
|
||||
|
||||
|
||||
def test_server_exposes_ping_tool():
|
||||
tools = asyncio.run(mcp.list_tools())
|
||||
assert "ping" in {t.name for t in tools}
|
||||
Reference in new issue
Block a user