You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e9fc8b7
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: pkg/github/__toolsnaps__/custom_properties_read.snap
+51-14Lines changed: 51 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -6,23 +6,48 @@
6
6
},
7
7
"description": "Read custom properties at the repository, organization, or enterprise level. At the repository level this returns the property values assigned to a repository; at the organization and enterprise levels it returns the property definitions (schema). Select the level with the 'level' parameter.",
8
8
"inputSchema": {
9
+
"additionalProperties": true,
9
10
"properties": {
10
11
"enterprise": {
11
-
"description": "Enterprise slug. Required when level is 'enterprise'.",
12
-
"type": "string"
12
+
"anyOf": [
13
+
{
14
+
"description": "Enterprise slug. Required when level is 'enterprise'.",
15
+
"type": "string"
16
+
},
17
+
{
18
+
"description": "Other JSON values are validated by the legacy handler."
19
+
}
20
+
],
21
+
"description": "Enterprise slug. Required when level is 'enterprise'. Validated by the legacy handler to preserve its error behavior."
13
22
},
14
23
"level": {
15
-
"description": "The level at which custom properties are managed:\n- 'repository': The custom property VALUES assigned to a repository (requires 'owner' and 'repo').\n- 'organization': The custom property DEFINITIONS (schema) for an organization (requires 'org').\n- 'enterprise': The custom property DEFINITIONS (schema) for an enterprise (requires 'enterprise').",
16
-
"enum": [
17
-
"repository",
18
-
"organization",
19
-
"enterprise"
24
+
"anyOf": [
25
+
{
26
+
"description": "The level at which custom properties are managed:\n- 'repository': The custom property VALUES assigned to a repository (requires 'owner' and 'repo').\n- 'organization': The custom property DEFINITIONS (schema) for an organization (requires 'org').\n- 'enterprise': The custom property DEFINITIONS (schema) for an enterprise (requires 'enterprise').",
27
+
"enum": [
28
+
"repository",
29
+
"organization",
30
+
"enterprise"
31
+
],
32
+
"type": "string"
33
+
},
34
+
{
35
+
"description": "Other JSON values are validated by the legacy handler."
36
+
}
20
37
],
21
-
"type": "string"
38
+
"description": "The level at which custom properties are managed:\n- 'repository': The custom property VALUES assigned to a repository (requires 'owner' and 'repo').\n- 'organization': The custom property DEFINITIONS (schema) for an organization (requires 'org').\n- 'enterprise': The custom property DEFINITIONS (schema) for an enterprise (requires 'enterprise'). Required by the legacy handler. Validated by the legacy handler to preserve its error behavior."
22
39
},
23
40
"org": {
24
-
"description": "Organization name. Required when level is 'organization'.",
25
-
"type": "string"
41
+
"anyOf": [
42
+
{
43
+
"description": "Organization name. Required when level is 'organization'.",
44
+
"type": "string"
45
+
},
46
+
{
47
+
"description": "Other JSON values are validated by the legacy handler."
48
+
}
49
+
],
50
+
"description": "Organization name. Required when level is 'organization'. Validated by the legacy handler to preserve its error behavior."
26
51
},
27
52
"owner": {
28
53
"description": "Repository owner. Required when level is 'repository'.",
@@ -33,10 +58,22 @@
33
58
"type": "string"
34
59
}
35
60
},
36
-
"required": [
37
-
"level"
38
-
],
39
61
"type": "object"
40
62
},
41
-
"name": "custom_properties_read"
63
+
"name": "custom_properties_read",
64
+
"outputSchema": {
65
+
"anyOf": [
66
+
{
67
+
"items": {
68
+
"additionalProperties": true,
69
+
"description": "A custom property value or definition returned by the selected level.",
"description": "Read custom properties at the repository, organization, or enterprise level. At the repository level this returns the property values assigned to a repository; at the organization and enterprise levels it returns the property definitions (schema). Select the level with the 'level' parameter.",
"description": "Enterprise slug. Required when level is 'enterprise'.",
27
+
"type": "string"
28
+
},
29
+
{
30
+
"description": "Other JSON values are validated by the legacy handler."
31
+
}
32
+
],
33
+
"description": "Enterprise slug. Required when level is 'enterprise'. Validated by the legacy handler to preserve its error behavior."
34
+
},
35
+
"level": {
36
+
"anyOf": [
37
+
{
38
+
"description": "The level at which custom properties are managed:\n- 'repository': The custom property VALUES assigned to a repository (requires 'owner' and 'repo').\n- 'organization': The custom property DEFINITIONS (schema) for an organization (requires 'org').\n- 'enterprise': The custom property DEFINITIONS (schema) for an enterprise (requires 'enterprise').",
39
+
"enum": [
40
+
"repository",
41
+
"organization",
42
+
"enterprise"
43
+
],
44
+
"type": "string"
45
+
},
46
+
{
47
+
"description": "Other JSON values are validated by the legacy handler."
48
+
}
49
+
],
50
+
"description": "The level at which custom properties are managed:\n- 'repository': The custom property VALUES assigned to a repository (requires 'owner' and 'repo').\n- 'organization': The custom property DEFINITIONS (schema) for an organization (requires 'org').\n- 'enterprise': The custom property DEFINITIONS (schema) for an enterprise (requires 'enterprise'). Required by the legacy handler. Validated by the legacy handler to preserve its error behavior."
51
+
},
52
+
"org": {
53
+
"anyOf": [
54
+
{
55
+
"description": "Organization name. Required when level is 'organization'.",
56
+
"type": "string"
57
+
},
58
+
{
59
+
"description": "Other JSON values are validated by the legacy handler."
60
+
}
61
+
],
62
+
"description": "Organization name. Required when level is 'organization'. Validated by the legacy handler to preserve its error behavior."
63
+
},
64
+
"owner": {
65
+
"description": "Repository owner. Required when level is 'repository'.",
66
+
"type": "string",
67
+
"x-mcp-header": "owner"
68
+
},
69
+
"repo": {
70
+
"description": "Repository name. Required when level is 'repository'.",
71
+
"type": "string",
72
+
"x-mcp-header": "repo"
73
+
}
74
+
},
75
+
"type": "object"
76
+
},
77
+
"name": "custom_properties_read",
78
+
"outputSchema": {
79
+
"anyOf": [
80
+
{
81
+
"items": {
82
+
"additionalProperties": true,
83
+
"description": "A custom property value or definition returned by the selected level.",
0 commit comments