
Yet another MCP client for Bedrock
Lo-fi Model Context Protocol client for Bedrock in Typescript
package.json
tsconfig.json
src/index.ts
await client.connectToMcpServer('/path/to/mcp/index.js')
where indicated in the code.ConverseCommand
along with the tools (MCP servers) we have available to use (if any).stopReason
of tool_use
. This is documented here. We then have to call the correct tool using client.mcp.callTool
and return the response to Bedrock along with the toolUseId
which was given by Bedrock in the tool_use request.Any opinions in this post are those of the individual author and may not reflect the opinions of AWS.