Skip to content

Extend MCP schemas to support resources#874

Merged
jviotti merged 3 commits intomainfrom
mcp-resource-schemas
May 4, 2026
Merged

Extend MCP schemas to support resources#874
jviotti merged 3 commits intomainfrom
mcp-resource-schemas

Conversation

@jviotti
Copy link
Copy Markdown
Member

@jviotti jviotti commented May 4, 2026

Signed-off-by: Juan Cruz Viotti jv@jviotti.com

Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
@augmentcode
Copy link
Copy Markdown

augmentcode Bot commented May 4, 2026

This pull request is abnormally large and would use a significant amount of tokens to review. If you still wish to review it, comment "augment review" and we will review it.

Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 107 files

Note: This PR contains a large number of files. cubic only reviews up to 75 files per PR, so some files may not have been reviewed. cubic prioritises the most important files to review.

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="src/self/v1/schemas/mcp/resources/list/response.json">

<violation number="1" location="src/self/v1/schemas/mcp/resources/list/response.json:28">
P2: The schema fixes `resources` to an empty array, so any non-empty resources list will fail validation. Define it as an array instead of a constant empty list.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

Comment thread src/self/v1/schemas/mcp/resources/list/response.json
jviotti added 2 commits May 4, 2026 15:13
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark Index (community)

Details
Benchmark suite Current: 7d06757 Previous: 02ef2bf Ratio
Add one schema (0 existing) 208 ms 163 ms 1.28
Add one schema (100 existing) 22 ms 22 ms 1
Add one schema (1000 existing) 73 ms 79 ms 0.92
Add one schema (10000 existing) 987 ms 1012 ms 0.98
Update one schema (1 existing) 16 ms 15 ms 1.07
Update one schema (101 existing) 24 ms 22 ms 1.09
Update one schema (1001 existing) 79 ms 79 ms 1
Update one schema (10001 existing) 689 ms 690 ms 1.00
Cached rebuild (1 existing) 4 ms 4 ms 1
Cached rebuild (101 existing) 7 ms 7 ms 1
Cached rebuild (1001 existing) 27 ms 29 ms 0.93
Cached rebuild (10001 existing) 248 ms 327 ms 0.76
Index 100 schemas 127 ms 131 ms 0.97
Index 1000 schemas 974 ms 1108 ms 0.88
Index 10000 schemas 13571 ms 13004 ms 1.04

This comment was automatically generated by workflow using github-action-benchmark.

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark Index (enterprise)

Details
Benchmark suite Current: 7d06757 Previous: 02ef2bf Ratio
Add one schema (0 existing) 217 ms 158 ms 1.37
Add one schema (100 existing) 25 ms 22 ms 1.14
Add one schema (1000 existing) 76 ms 70 ms 1.09
Add one schema (10000 existing) 650 ms 576 ms 1.13
Update one schema (1 existing) 18 ms 15 ms 1.20
Update one schema (101 existing) 24 ms 21 ms 1.14
Update one schema (1001 existing) 78 ms 70 ms 1.11
Update one schema (10001 existing) 660 ms 602 ms 1.10
Cached rebuild (1 existing) 6 ms 5 ms 1.20
Cached rebuild (101 existing) 8 ms 7 ms 1.14
Cached rebuild (1001 existing) 31 ms 27 ms 1.15
Cached rebuild (10001 existing) 273 ms 242 ms 1.13
Index 100 schemas 123 ms 106 ms 1.16
Index 1000 schemas 1115 ms 1029 ms 1.08
Index 10000 schemas 13582 ms 12981 ms 1.05

This comment was automatically generated by workflow using github-action-benchmark.

@jviotti jviotti merged commit f2383c3 into main May 4, 2026
5 checks passed
@jviotti jviotti deleted the mcp-resource-schemas branch May 4, 2026 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant