From e0604ca38cb8e886331ff06408bfe2c36fa195d3 Mon Sep 17 00:00:00 2001
From: Twisha Bansal <58483338+twishabansal@users.noreply.github.com>
Date: Mon, 10 Nov 2025 12:09:23 +0530
Subject: [PATCH] docs: Add MCP Toolbox for databases TS SDK Documentation
---
.../google-cloud/mcp-toolbox-for-databases.md | 63 ++++++++++++++++++-
1 file changed, 62 insertions(+), 1 deletion(-)
diff --git a/docs/tools/google-cloud/mcp-toolbox-for-databases.md b/docs/tools/google-cloud/mcp-toolbox-for-databases.md
index 6a6df6b19..fd01bf2cb 100644
--- a/docs/tools/google-cloud/mcp-toolbox-for-databases.md
+++ b/docs/tools/google-cloud/mcp-toolbox-for-databases.md
@@ -1,7 +1,7 @@
# MCP Toolbox for Databases
- Supported in ADKPythonGo
+ Supported in ADKPythonGoTS
[MCP Toolbox for Databases](https://github.com/googleapis/genai-toolbox) is an
@@ -174,6 +174,67 @@ documentation:
}
```
+=== "TS"
+
+ ADK relies on the `@toolbox-sdk/adk` go module to use Toolbox. Install the
+ module before getting started:
+
+ ```shell
+ npm install @toolbox-sdk/adk
+ ```
+
+ ### Loading Toolbox Tools
+
+ Once you’re Toolbox server is configured and up and running, you can load tools
+ from your server using ADK:
+
+ ```javascript
+ import {FunctionTool, InMemoryRunner, LlmAgent} from '@google/adk';
+ import {Content} from '@google/genai';
+ 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',
+ description:
+ 'Agent to answer questions about the time and weather in a city.',
+ instruction:
+ 'You are a helpful agent who can answer user questions about the time and weather in a city.',
+ tools: loadedTools,
+ });
+
+ async function main() {
+ const userId = 'test_user';
+ const appName = rootAgent.name;
+ const runner = new InMemoryRunner({agent: rootAgent, appName});
+ const session = await runner.sessionService.createSession({
+ appName,
+ userId,
+ });
+
+ const prompt = 'What is the weather in New York? And the time?';
+ const content: Content = {
+ role: 'user',
+ parts: [{text: prompt}],
+ };
+ console.log(content);
+ for await (const e of runner.runAsync({
+ userId,
+ sessionId: session.id,
+ newMessage: content,
+ })) {
+ if (e.content?.parts?.[0]?.text) {
+ console.log(`${e.author}: ${JSON.stringify(e.content, null, 2)}`);
+ }
+ }
+ }
+
+ main().catch(console.error);
+ ```
+
## Advanced Toolbox Features
Toolbox has a variety of features to make developing Gen AI tools for databases.