Skip to content

Commit ed11052

Browse files
Add type generation from schema
1 parent 60016ca commit ed11052

File tree

3 files changed

+5880
-1
lines changed

3 files changed

+5880
-1
lines changed

internal/schema/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ This schema is used to generate the types we use in this library and means that
66

77
## Generating types from a new schema
88

9-
We use the [go-jsonschema](https://github.com/omissis/go-jsonschema) library to generate types from the schema. To update the types, run `go generate ./...` in this directory.
9+
We use the [schema-generate](https://github.com/a-h/generate/cmd/schema-generate) library to generate types from the schema. To update the types, run `go generate ./...` in this directory.

internal/schema/generate.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package schema
2+
3+
//go:generate go run github.com/a-h/generate/cmd/schema-generate@latest -i mcp-schema-2024-10-07.json -o ../../types.go -p mcp

0 commit comments

Comments
 (0)