feat: Add actual MCP Toolbox server verification test and examples#69
Draft
stenalpjolly wants to merge 7 commits into
Draft
feat: Add actual MCP Toolbox server verification test and examples#69stenalpjolly wants to merge 7 commits into
stenalpjolly wants to merge 7 commits into
Conversation
b987796 to
71e6557
Compare
…y-paste convenience
…ion; extract parameter bindings to ParameterBindingUsage
…us flat style, removing verbose logs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds local integration verification testing using the actual MCP Toolbox server binary and a local SQLite database. It introduces multiple standalone examples configured from system properties (avoiding mock fallbacks in runtime code) and validates their compilation and execution dynamically in tests. Additionally, the examples have been restructured into independent folders for easier copy-pasting by users.
Expectation & Implementation
example/src/main/java/cloudcode/into independent standalone folders (simple,bulk,validation) so that users can easily copy and paste targeted, minimal example code.ExampleUsage.javafrom a beginner's perspective, removing unnecessary printouts and deep indentations to make the code highly concise and readable.ParameterBindingUsage.javaandBulkToolsetUsage.javato demonstrate advanced workflows like stateful parameter binding and the Bulk Toolset Loading API.ToolboxActualServerVerifyTest.javaunder the test suite. It initializes a local SQLite DB (verification.db), configuresverify_tools.yamlin flat format, launches the nativetoolboxserver, mocks the Google Credentials environment dynamically, compiles the Java examples on the fly, and runs them to verify all SDK client methods..gitignore.example/README.mdto document the verification workflow and how to execute it locally.Test cases
mvn test -Dtest="*Test,!*E2ETest" -Dnet.bytebuddy.experimental=trueAcceptance criteria
ToolboxActualServerVerifyTestexecutes successfully for both examples, showing correct retrieval of data and price checks from the realtoolboxserver.Breaking changes
None.