Commit 10e4530
Harden the vendored OpenAPI->MCP fork (#317)
The src/openapi-mcp-server/ tree is a vendored fork of snaggle-ai/
openapi-mcp-server v1 (MIT; upstream went an incompatible direction in v2,
so there's no upgrade path). This makes ownership of it deliberate and safe
rather than incidental:
- License compliance: add the upstream MIT LICENSE/copyright (Jan Wilmake)
in the vendored dir, as the MIT terms require. It was previously dropped.
- Regression guard: snapshot the MCP tool surface generated from the real
scripts/notion-openapi.json (names, HTTP method, descriptions, params), so
any future change to the converter — or a swap to a different engine — is
caught with a reviewable diff.
- Dead code: remove the unused convertToOpenAITools / convertToAnthropicTools
converters (and the now-orphaned convertOperationToJsonSchema helper and
FunctionParameters type). This drops the only uses of the `openai` and
`@anthropic-ai/sdk` devDependencies, which are removed.
- Document why it's forked and how to change it safely.
No runtime behavior change. Build + full test suite pass (83 tests).
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 06803ef commit 10e4530
7 files changed
Lines changed: 489 additions & 339 deletions
File tree
- src/openapi-mcp-server
- openapi
- __tests__
- __snapshots__
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
| |||
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
47 | | - | |
48 | 46 | | |
49 | 47 | | |
50 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
0 commit comments