feat(http): add OpenAPI 3.1.0 specification and REST tool execution endpoint

This commit is contained in:
Lucas Winther
2026-09-07 01:38:32 +02:00
parent ba1ce2171e
commit 75531eca2d
7 changed files with 509 additions and 13 deletions
+8
View File
@@ -106,6 +106,14 @@
- [x] Record [ADR-016](DECISIONS.md#adr-016-hosted-remote-mcp-server-architecture-httpsse-transport--multi-tenant-credential-scoping).
- [x] Update documentation with hosted deployment guide and remote client setups for Cursor and Claude Desktop in [README.md](../README.md).
- [x] **Task 8: OpenAPI 3.1.0 Specification & REST Tool Execution Bridge**
- [x] Implement dynamic OpenAPI specification generator `src/openapi-spec.ts`.
- [x] Expose `GET /openapi.json` and `GET /swagger.json` in `src/http-server.ts`.
- [x] Expose REST tool execution endpoint `POST /api/tools/:toolName` with Zod parameter validation and `RequestContext` execution.
- [x] Add automated test coverage in `tests/http-server.test.ts`.
- [x] Record [ADR-017](DECISIONS.md#adr-017-openapi-310-specification--rest-tool-execution-bridge-for-openapi-clients) in `docs/DECISIONS.md`.
- [x] Document OpenAPI connection mode and server endpoints reference table in [README.md](../README.md).
---
## 3. Backlog & Future Phases