Commit fe3e99b
committed
Implement flattened _meta format for server extensions
Replace the confusing wrapper format (server + x-* extensions) with a clean
flattened format using structured _meta fields. This provides better developer
ergonomics while maintaining extensibility and MCP compliance.
Key changes:
- Move from wrapper format to flattened ServerJSON with _meta field
- Use structured ServerMeta with known fields (publisher, registry metadata)
- Simplify PostgreSQL to simple id/value table for easier management
- Update all APIs, validation, and services to use flattened format
- Migrate seed data and examples to new format
- Add migration 003_simplify_to_key_value.sql
Publishers now maintain a single server.json file instead of separate files,
improving the developer experience significantly.
Fixes #284
🏠 Remote-Dev: homespace1 parent be036a4 commit fe3e99b
File tree
30 files changed
+19283
-19549
lines changed- cmd
- publisher/commands
- registry
- data
- docs/server-json
- internal
- api/handlers/v0
- database
- migrations
- service
- validators
- pkg
- api/v0
- model
- tests/integration
- tools/validate-examples
30 files changed
+19283
-19549
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | | - | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
269 | | - | |
| 269 | + | |
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
300 | | - | |
| 300 | + | |
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
33 | | - | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| |||
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
76 | | - | |
77 | | - | |
| 78 | + | |
| 79 | + | |
78 | 80 | | |
79 | 81 | | |
80 | 82 | | |
81 | 83 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | 84 | | |
95 | | - | |
| 85 | + | |
96 | 86 | | |
97 | 87 | | |
98 | 88 | | |
| |||
129 | 119 | | |
130 | 120 | | |
131 | 121 | | |
132 | | - | |
| 122 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
0 commit comments