Skip to content

Conversation

@rapid-killer-9
Copy link
Member

Migrating docs from Js Sdk to the main docsite for toolbox-adk

@rapid-killer-9 rapid-killer-9 requested a review from a team as a code owner February 2, 2026 08:28
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @rapid-killer-9, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request migrates and introduces new, detailed documentation for the @toolbox-sdk/adk JavaScript SDK. The new documentation provides an in-depth guide for developers, covering everything from initial setup and basic usage to advanced topics like authentication, transport protocols, and integration with the Agent Development Kit. The goal is to centralize and enhance the accessibility of information for users interacting with the MCP Toolbox service through this SDK.

Highlights

  • New Documentation for @toolbox-sdk/adk: A comprehensive documentation file has been added for the @toolbox-sdk/adk JavaScript SDK, detailing its features and usage.
  • Installation and Quickstart Guide: The new documentation includes clear instructions for installing the SDK via npm and a quickstart guide with a minimal example to get users started.
  • Authentication Mechanisms: Detailed sections on client-to-server authentication (including Google Cloud integration) and authenticating individual tools with Oauth2 tokens have been provided.
  • Tool Loading, Invocation, and Parameter Binding: The document explains how to load single tools or toolsets, invoke them, and bind parameter values, including dynamic values, for enhanced control and security.
  • Integration with ADK: An example demonstrating the use of @toolbox-sdk/adk with the Agent Development Kit (ADK) is included, showcasing how to integrate Toolbox tools into LLM agents.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adds a new markdown document for the Toolbox-adk SDK, providing documentation and usage examples. The review focuses on ensuring the documentation is clear, correct, and follows best practices for SDK usage. No specific style guide was provided, so the review defaults to general documentation best practices.

Comment on lines +39 to +40
import { ToolboxClient } from '@toolbox-sdk/adk';
const client = new ToolboxClient(URL);
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

The URL variable is used without being defined within the scope of this code snippet. This could lead to confusion for users trying to run this example. It should be defined or replaced with a placeholder URL.

Consider defining the URL variable before its usage or replacing it with a placeholder URL to make the example self-contained and runnable.

Suggested change
import { ToolboxClient } from '@toolbox-sdk/adk';
const client = new ToolboxClient(URL);
import { ToolboxClient } from '@toolbox-sdk/adk';
const URL = 'http://127.0.0.1:5000'; // Replace with your Toolbox service URL
const client = new ToolboxClient(URL);

Comment on lines +140 to +141
const tool = await toolbox.loadTool("my-tool")
const result = await tool.runAsync(args: {a: 5, b: 2})
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

These examples use toolbox without it being defined. It should be client to align with the client initialization examples above.

Consider updating toolbox to client to ensure consistency with the client initialization examples.

Suggested change
const tool = await toolbox.loadTool("my-tool")
const result = await tool.runAsync(args: {a: 5, b: 2})
const tool = await client.loadTool("my-tool")
const result = await tool.runAsync(args: {a: 5, b: 2})

Comment on lines +315 to +317
const authTool = await toolbox.loadTool("toolName", {"myAuth": getAuthToken})

// OR
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

The URL variable is used without being defined within the scope of this code snippet. This could lead to confusion for users trying to run this example. It should be defined or replaced with a placeholder URL.

Consider defining the URL variable before its usage or replacing it with a placeholder URL to make the example self-contained and runnable.

Suggested change
const authTool = await toolbox.loadTool("toolName", {"myAuth": getAuthToken})
// OR
import { ToolboxClient } from '@toolbox-sdk/core';
// update the url to point to your server
const URL = 'http://127.0.0.1:5000';

Comment on lines +430 to +437
import {ToolboxClient} from '@toolbox-sdk/core'

const toolboxClient = new ToolboxClient("http://127.0.0.1:5000");
const loadedTools = await toolboxClient.loadToolset();

export const rootAgent = new LlmAgent({
name: 'weather_time_agent',
model: 'gemini-2.5-flash',
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

The comment // Use the client and tools as per requirement is vague and doesn't provide specific guidance to the user. Consider expanding on this comment to provide more context or examples of how to use the client and tools.

Consider expanding on the comment to provide more context or examples of how to use the client and tools.

Suggested change
import {ToolboxClient} from '@toolbox-sdk/core'
const toolboxClient = new ToolboxClient("http://127.0.0.1:5000");
const loadedTools = await toolboxClient.loadToolset();
export const rootAgent = new LlmAgent({
name: 'weather_time_agent',
model: 'gemini-2.5-flash',
// Use the client and tools to interact with the Toolbox service
// For example, load a toolset and run a tool:
// const tools = await client.loadToolset();
// const result = await tools[0].runAsync({ input: 'example' });

@rapid-killer-9 rapid-killer-9 marked this pull request as draft February 2, 2026 08:30
@github-actions
Copy link
Contributor

github-actions bot commented Feb 2, 2026

Updated title and description for the adk documentation.
@github-actions
Copy link
Contributor

github-actions bot commented Feb 3, 2026

@rapid-killer-9 rapid-killer-9 marked this pull request as ready for review February 3, 2026 10:10
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.

3 participants