@strands-agents/sdk 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +12 -9
  2. package/package.json +11 -11
package/README.md CHANGED
@@ -171,22 +171,25 @@ await agent.invoke('What is the weather in San Francisco?')
171
171
  Seamlessly integrate Model Context Protocol (MCP) servers:
172
172
 
173
173
  ```typescript
174
- import { Agent, McpClient, StdioClientTransport } from '@strands-agents/sdk'
174
+ import { Agent, McpClient } from "@strands-agents/sdk";
175
+ import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js";
175
176
 
176
177
  // Create a client for a local MCP server
177
- const chromeDevtools = new McpClient({
178
+ const documentationTools = new McpClient({
178
179
  transport: new StdioClientTransport({
179
- command: 'npx',
180
- args: ['-y', 'chrome-devtools-mcp'],
180
+ command: "uvx",
181
+ args: ["awslabs.aws-documentation-mcp-server@latest"],
181
182
  }),
182
- })
183
+ });
183
184
 
184
185
  const agent = new Agent({
185
- systemPrompt: 'You are a helpful assistant using MCP tools.',
186
- tools: [chromeDevtools], // Pass the MCP client directly as a tool source
187
- })
186
+ systemPrompt: "You are a helpful assistant using MCP tools.",
187
+ tools: [documentationTools], // Pass the MCP client directly as a tool source
188
+ });
189
+
190
+ await agent.invoke("Use a random tool from the MCP server.");
188
191
 
189
- await agent.invoke('Use a random tool from the MCP server.')
192
+ await documentationTools.disconnect();
190
193
  ```
191
194
 
192
195
  ---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strands-agents/sdk",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "TypeScript SDK for Strands Agents framework",
5
5
  "main": "dist/src/index.js",
6
6
  "module": "dist/src/index.js",
@@ -69,21 +69,21 @@
69
69
  "author": "Strands Agents",
70
70
  "license": "Apache-2.0",
71
71
  "devDependencies": {
72
- "@aws-sdk/client-secrets-manager": "^3.921.0",
73
- "@aws-sdk/credential-providers": "^3.913.0",
72
+ "@aws-sdk/client-secrets-manager": "^3.943.0",
73
+ "@aws-sdk/credential-providers": "^3.943.0",
74
74
  "@types/json-schema": "^7.0.15",
75
75
  "@types/node": "^24.6.0",
76
- "@typescript-eslint/eslint-plugin": "^8.0.0",
76
+ "@typescript-eslint/eslint-plugin": "^8.48.1",
77
77
  "@typescript-eslint/parser": "^8.0.0",
78
- "@vitest/browser": "^4.0.8",
79
- "@vitest/browser-playwright": "^4.0.8",
80
- "@vitest/coverage-v8": "^4.0.8",
78
+ "@vitest/browser": "^4.0.15",
79
+ "@vitest/browser-playwright": "^4.0.15",
80
+ "@vitest/coverage-v8": "^4.0.15",
81
81
  "eslint": "^9.0.0",
82
82
  "eslint-plugin-tsdoc": "^0.5.0",
83
83
  "husky": "^9.1.7",
84
84
  "playwright": "^1.56.1",
85
- "prettier": "^3.0.0",
86
- "tsx": "^4.20.6",
85
+ "prettier": "^3.7.4",
86
+ "tsx": "^4.21.0",
87
87
  "typescript": "^5.5.0",
88
88
  "vitest": "^4.0.8"
89
89
  },
@@ -99,8 +99,8 @@
99
99
  },
100
100
  "homepage": "https://github.com/strands-agents/sdk-typescript#readme",
101
101
  "dependencies": {
102
- "@aws-sdk/client-bedrock-runtime": "^3.941.0",
103
- "@modelcontextprotocol/sdk": "^1.20.2",
102
+ "@aws-sdk/client-bedrock-runtime": "^3.943.0",
103
+ "@modelcontextprotocol/sdk": "^1.24.2",
104
104
  "zod": "^4.1.12"
105
105
  },
106
106
  "optionalDependencies": {