Register and share your invite link to earn from video plays and referrals.

cv usk
@cv_usk
AI / Software Research Notes AI Agent, LLMOps, MLOps, Software Architecture ๆŠ•็จฟใฏๅ€‹ไบบใฎๆ„่ฆ‹ใงใ™ใ€‚
Joined May 2026
258 Following    228 Followers
# Practical ways to use the Claude Agent SDK ๐Ÿ”Œ Connect Playwright, databases, GitHub, and more to your agent via MCP for unlimited capabilities. MCP (External Tool Connections) connects external MCP servers (browsers, databases, APIs) to your agent via the Model Context Protocol. ๐Ÿ“Œ Title: Connecting External Tools with MCP ๐Ÿ”— URL: ๐Ÿงฉ Overview Specify external MCP servers in `mcp_servers` via stdio / HTTP / SSE transports. Control tool access with `allowedTools` and inject credentials via `env` or `headers`. ๐Ÿ›  How to use it Specify MCP servers in `mcp_servers` via stdio, HTTP, or SSE transports. For example, Playwright uses `{"command": "npx", "args": ["@playwright/mcp@latest"]}`, and Postgres injects credentials via `"env": {"DATABASE_URL": "..."}`. Control access with `allowed_tools=["mcp__postgres__query"]`. ๐Ÿ— Practical usage - Connect Playwright MCP and run "Open and describe what you see" for E2E testing or web scraping agents. - Connect a Postgres MCP server and ask "Daily signups for last week" โ€” Claude auto-detects schema, generates SQL, and executes. Lock down with `allowedTools: ["mcp__postgres__query"]`. - Build GitHub Issue triage and auto-response bots with the GitHub MCP server. - Verify connection status at startup via `system/init` message's `mcp_servers[].status`. ๐Ÿ’ก Use cases ๐ŸŒ Browser automation with Playwright ๐Ÿ—„ Natural language database queries ๐Ÿ“‹ Automated GitHub Issue triage โš ๏ธ Watch out `permissionMode: "acceptEdits"` does NOT auto-approve MCP tools. Use `allowedTools` wildcards (`mcp__github__*`) to safely whitelist specific servers. Default connection timeout is 60 seconds. #ClaudeAgentSDK# #AI#
Show more