initial server
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
from personal_mcp.skills.fastapi_uv_docker.server import fastapi_uv_docker_server
|
||||
|
||||
__all__ = ["fastapi_uv_docker_server"]
|
||||
@@ -0,0 +1,7 @@
|
||||
id: fastapi-uv-docker
|
||||
name: FastAPI uv Docker
|
||||
description: Provide fast migration guidance to FastAPI plus uv plus Docker.
|
||||
tags:
|
||||
- fastapi
|
||||
- uv
|
||||
- docker
|
||||
@@ -0,0 +1,16 @@
|
||||
from fastmcp import FastMCP
|
||||
|
||||
fastapi_uv_docker_server = FastMCP("fastapi-uv-docker")
|
||||
|
||||
|
||||
@fastapi_uv_docker_server.tool()
|
||||
def fastapi_uv_docker_mvp_checklist(current_state: str = "bare python project") -> list[str]:
|
||||
"""Return a compact migration checklist for FastAPI + uv + Docker."""
|
||||
return [
|
||||
f"Current state: {current_state}",
|
||||
"Create src/ package layout for the FastAPI app.",
|
||||
"Manage dependencies with uv and keep uv.lock committed.",
|
||||
"Use an app factory and lifespan hooks.",
|
||||
"Add /healthz endpoint for operational checks.",
|
||||
"Build with a multi-stage Dockerfile and run as non-root user.",
|
||||
]
|
||||
Reference in New Issue
Block a user