Skip to content

Adopt FastMCP v3 app structure - #18

Merged
evannotfound merged 3 commits into
mainfrom
refactor/fastmcp-v3
Mar 10, 2026
Merged

evannotfound merged 3 commits into
mainfrom
refactor/fastmcp-v3

Conversation

@evannotfound

Copy link
Copy Markdown
Member

Summary

  • replace the direct mcp dependency with FastMCP v3, switch the default HTTP path to /mcp, and add dedicated runtime/ASGI entrypoints
  • refactor the server around a FastMCP factory, lifespan-managed shared services, domain tool registration modules, and backend adapters under pwnomcp/tools/backends
  • move the attach API into pwnomcp/http, remove the legacy router/auth scaffolding, and update docs/tests for the new layout

Testing

  • uv run python -m pytest

- Replace Streamable HTTP transport with FastMCP HTTP at /mcp
- Extract runtime services and FastMCP lifespan into dedicated modules
- Move MCP tools into modular FastMCP tool registries
- Refactor attach API to share session registry and service container
- Update CLI flags, docs, and tests for new HTTP path and runtime
- Swap mcp dependency for fastmcp and refresh uv.lock
- Add FastMCP /healthz route returning JSON status ok
- Wire health route into MCP app startup
- Update k8s liveness/readiness probes to hit /healthz
- Document health endpoint and probe URL in README
- Move GDB controller into tools backends namespace
- Move RetDec analyzer into tools backends namespace
- Update imports and exports for new backend locations
- Refresh README layout to describe backend adapters
@evannotfound
evannotfound merged commit 77cfbdb into main Mar 10, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant