Skip to content

Commit 9c8d26d

Browse files
committed
chore(schema): add updated JSONSchema files
1 parent 926ae00 commit 9c8d26d

File tree

64 files changed

+1125
-1246
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+1125
-1246
lines changed
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
2-
"summary": "Returns an array of recent bad blocks that the client has seen on the network.",
3-
"description": "",
4-
"name": "debug_getBadBlocks",
5-
"params": [],
6-
"defs": null
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"$id": "https://github.com/selesy/ethereum-mcp/debug_getBadBlocks.json",
4+
"properties": {},
5+
"type": "object",
6+
"title": "debug_getBadBlocks",
7+
"description": "Returns an array of recent bad blocks that the client has seen on the network."
78
}

pkg/schema/data/debug_getRawBlock.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,7 @@
11
{
2-
"summary": "Returns an RLP-encoded block.",
3-
"description": "",
4-
"name": "debug_getRawBlock",
5-
"params": [
6-
{
7-
"summary": "",
8-
"description": "Block",
9-
"name": "block",
10-
"schema": {
11-
"$ref": "#/$defs/BlockNumberOrTag"
12-
},
13-
"required": true,
14-
"deprecated": false
15-
}
16-
],
17-
"defs": {
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"$id": "https://github.com/selesy/ethereum-mcp/debug_getRawBlock.json",
4+
"$defs": {
185
"BlockNumberOrTag": {
196
"oneOf": [
207
{
@@ -45,5 +32,18 @@
4532
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$",
4633
"title": "hex encoded unsigned integer"
4734
}
48-
}
35+
},
36+
"properties": {
37+
"block": {
38+
"$ref": "#/$defs/BlockNumberOrTag",
39+
"title": "block",
40+
"description": "Block"
41+
}
42+
},
43+
"type": "object",
44+
"required": [
45+
"block"
46+
],
47+
"title": "debug_getRawBlock",
48+
"description": "Returns an RLP-encoded block."
4949
}

pkg/schema/data/debug_getRawHeader.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,7 @@
11
{
2-
"summary": "Returns an RLP-encoded header.",
3-
"description": "",
4-
"name": "debug_getRawHeader",
5-
"params": [
6-
{
7-
"summary": "",
8-
"description": "Block",
9-
"name": "block",
10-
"schema": {
11-
"$ref": "#/$defs/BlockNumberOrTag"
12-
},
13-
"required": true,
14-
"deprecated": false
15-
}
16-
],
17-
"defs": {
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"$id": "https://github.com/selesy/ethereum-mcp/debug_getRawHeader.json",
4+
"$defs": {
185
"BlockNumberOrTag": {
196
"oneOf": [
207
{
@@ -45,5 +32,18 @@
4532
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$",
4633
"title": "hex encoded unsigned integer"
4734
}
48-
}
35+
},
36+
"properties": {
37+
"block": {
38+
"$ref": "#/$defs/BlockNumberOrTag",
39+
"title": "block",
40+
"description": "Block"
41+
}
42+
},
43+
"type": "object",
44+
"required": [
45+
"block"
46+
],
47+
"title": "debug_getRawHeader",
48+
"description": "Returns an RLP-encoded header."
4949
}

pkg/schema/data/debug_getRawReceipts.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,7 @@
11
{
2-
"summary": "Returns an array of EIP-2718 binary-encoded receipts.",
3-
"description": "",
4-
"name": "debug_getRawReceipts",
5-
"params": [
6-
{
7-
"summary": "",
8-
"description": "Block",
9-
"name": "block",
10-
"schema": {
11-
"$ref": "#/$defs/BlockNumberOrTag"
12-
},
13-
"required": true,
14-
"deprecated": false
15-
}
16-
],
17-
"defs": {
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"$id": "https://github.com/selesy/ethereum-mcp/debug_getRawReceipts.json",
4+
"$defs": {
185
"BlockNumberOrTag": {
196
"oneOf": [
207
{
@@ -45,5 +32,18 @@
4532
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$",
4633
"title": "hex encoded unsigned integer"
4734
}
48-
}
35+
},
36+
"properties": {
37+
"block": {
38+
"$ref": "#/$defs/BlockNumberOrTag",
39+
"title": "block",
40+
"description": "Block"
41+
}
42+
},
43+
"type": "object",
44+
"required": [
45+
"block"
46+
],
47+
"title": "debug_getRawReceipts",
48+
"description": "Returns an array of EIP-2718 binary-encoded receipts."
4949
}
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
{
2-
"summary": "Returns an array of EIP-2718 binary-encoded transactions.",
3-
"description": "",
4-
"name": "debug_getRawTransaction",
5-
"params": [
6-
{
7-
"summary": "",
8-
"description": "Transaction hash",
9-
"name": "transaction_hash",
10-
"schema": {
11-
"$ref": "#/$defs/hash32"
12-
},
13-
"required": true,
14-
"deprecated": false
15-
}
16-
],
17-
"defs": {
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"$id": "https://github.com/selesy/ethereum-mcp/debug_getRawTransaction.json",
4+
"$defs": {
185
"hash32": {
196
"type": "string",
207
"pattern": "^0x[0-9a-f]{64}$",
218
"title": "32 byte hex value"
229
}
23-
}
10+
},
11+
"properties": {
12+
"transaction_hash": {
13+
"$ref": "#/$defs/hash32",
14+
"title": "transaction_hash",
15+
"description": "Transaction hash"
16+
}
17+
},
18+
"type": "object",
19+
"required": [
20+
"transaction_hash"
21+
],
22+
"title": "debug_getRawTransaction",
23+
"description": "Returns an array of EIP-2718 binary-encoded transactions."
2424
}
Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
{
2-
"summary": "Exchanges list of supported Engine API methods",
3-
"description": "",
4-
"name": "engine_exchangeCapabilities",
5-
"params": [
6-
{
7-
"summary": "",
8-
"description": "Consensus client methods",
9-
"name": "consensus_client_methods",
10-
"schema": {
11-
"items": {
12-
"type": "string"
13-
},
14-
"type": "array"
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"$id": "https://github.com/selesy/ethereum-mcp/engine_exchangeCapabilities.json",
4+
"properties": {
5+
"consensus_client_methods": {
6+
"items": {
7+
"type": "string"
158
},
16-
"required": true,
17-
"deprecated": false
9+
"type": "array",
10+
"title": "consensus_client_methods",
11+
"description": "Consensus client methods"
1812
}
13+
},
14+
"type": "object",
15+
"required": [
16+
"consensus_client_methods"
1917
],
20-
"defs": {}
18+
"title": "engine_exchangeCapabilities",
19+
"description": "Exchanges list of supported Engine API methods"
2120
}

pkg/schema/data/engine_exchangeTransitionConfigurationV1.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,7 @@
11
{
2-
"summary": "Exchanges transition configuration",
3-
"description": "",
4-
"name": "engine_exchangeTransitionConfigurationV1",
5-
"params": [
6-
{
7-
"summary": "",
8-
"description": "Consensus client configuration",
9-
"name": "consensus_client_configuration",
10-
"schema": {
11-
"$ref": "#/$defs/TransitionConfigurationV1"
12-
},
13-
"required": true,
14-
"deprecated": false
15-
}
16-
],
17-
"defs": {
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"$id": "https://github.com/selesy/ethereum-mcp/engine_exchangeTransitionConfigurationV1.json",
4+
"$defs": {
185
"TransitionConfigurationV1": {
196
"properties": {
207
"terminalBlockHash": {
@@ -53,5 +40,18 @@
5340
"pattern": "^0x(0|[1-9a-f][0-9a-f]{0,15})$",
5441
"title": "hex encoded 64 bit unsigned integer"
5542
}
56-
}
43+
},
44+
"properties": {
45+
"consensus_client_configuration": {
46+
"$ref": "#/$defs/TransitionConfigurationV1",
47+
"title": "consensus_client_configuration",
48+
"description": "Consensus client configuration"
49+
}
50+
},
51+
"type": "object",
52+
"required": [
53+
"consensus_client_configuration"
54+
],
55+
"title": "engine_exchangeTransitionConfigurationV1",
56+
"description": "Exchanges transition configuration"
5757
}

pkg/schema/data/engine_forkchoiceUpdatedV1.json

Lines changed: 22 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,7 @@
11
{
2-
"summary": "Updates the forkchoice state",
3-
"description": "",
4-
"name": "engine_forkchoiceUpdatedV1",
5-
"params": [
6-
{
7-
"summary": "",
8-
"description": "Forkchoice state",
9-
"name": "forkchoice_state",
10-
"schema": {
11-
"$ref": "#/$defs/ForkchoiceStateV1"
12-
},
13-
"required": true,
14-
"deprecated": false
15-
},
16-
{
17-
"summary": "",
18-
"description": "Payload attributes",
19-
"name": "payload_attributes",
20-
"schema": {
21-
"$ref": "#/$defs/PayloadAttributesV1"
22-
},
23-
"required": false,
24-
"deprecated": false
25-
}
26-
],
27-
"defs": {
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"$id": "https://github.com/selesy/ethereum-mcp/engine_forkchoiceUpdatedV1.json",
4+
"$defs": {
285
"ForkchoiceStateV1": {
296
"properties": {
307
"finalizedBlockHash": {
@@ -91,5 +68,23 @@
9168
"pattern": "^0x(0|[1-9a-f][0-9a-f]{0,15})$",
9269
"title": "hex encoded 64 bit unsigned integer"
9370
}
94-
}
71+
},
72+
"properties": {
73+
"forkchoice_state": {
74+
"$ref": "#/$defs/ForkchoiceStateV1",
75+
"title": "forkchoice_state",
76+
"description": "Forkchoice state"
77+
},
78+
"payload_attributes": {
79+
"$ref": "#/$defs/PayloadAttributesV1",
80+
"title": "payload_attributes",
81+
"description": "Payload attributes"
82+
}
83+
},
84+
"type": "object",
85+
"required": [
86+
"forkchoice_state"
87+
],
88+
"title": "engine_forkchoiceUpdatedV1",
89+
"description": "Updates the forkchoice state"
9590
}

pkg/schema/data/engine_forkchoiceUpdatedV2.json

Lines changed: 22 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,7 @@
11
{
2-
"summary": "Updates the forkchoice state",
3-
"description": "",
4-
"name": "engine_forkchoiceUpdatedV2",
5-
"params": [
6-
{
7-
"summary": "",
8-
"description": "Forkchoice state",
9-
"name": "forkchoice_state",
10-
"schema": {
11-
"$ref": "#/$defs/ForkchoiceStateV1"
12-
},
13-
"required": true,
14-
"deprecated": false
15-
},
16-
{
17-
"summary": "",
18-
"description": "Payload attributes",
19-
"name": "payload_attributes",
20-
"schema": {
21-
"$ref": "#/$defs/PayloadAttributesV2"
22-
},
23-
"required": false,
24-
"deprecated": false
25-
}
26-
],
27-
"defs": {
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"$id": "https://github.com/selesy/ethereum-mcp/engine_forkchoiceUpdatedV2.json",
4+
"$defs": {
285
"ForkchoiceStateV1": {
296
"properties": {
307
"finalizedBlockHash": {
@@ -122,5 +99,23 @@
12299
"pattern": "^0x(0|[1-9a-f][0-9a-f]{0,15})$",
123100
"title": "hex encoded 64 bit unsigned integer"
124101
}
125-
}
102+
},
103+
"properties": {
104+
"forkchoice_state": {
105+
"$ref": "#/$defs/ForkchoiceStateV1",
106+
"title": "forkchoice_state",
107+
"description": "Forkchoice state"
108+
},
109+
"payload_attributes": {
110+
"$ref": "#/$defs/PayloadAttributesV2",
111+
"title": "payload_attributes",
112+
"description": "Payload attributes"
113+
}
114+
},
115+
"type": "object",
116+
"required": [
117+
"forkchoice_state"
118+
],
119+
"title": "engine_forkchoiceUpdatedV2",
120+
"description": "Updates the forkchoice state"
126121
}

0 commit comments

Comments
 (0)