build-mcp-use-agent
Build MCP Use Agent
Build or audit TypeScript MCPAgent code from the mcp-use package — the LLM-driven loop where a model chooses, calls, and chains MCP tools across one or more servers.
This SKILL.md is a routing spine. Load-bearing rules and the minimal runnable path live here; deep detail lives in references/.
When to use this skill
Trigger on any of these:
- Imports
MCPAgentfrommcp-useand callsagent.run({ prompt }),agent.stream(...),agent.streamEvents(...), oragent.prettyStreamEvents(...). - Wires an LLM (LangChain
ChatModelor"provider/model"shorthand) into an agent loop that must select tools at runtime. - Builds a Next.js / Express / serverless handler whose body is a
MCPAgentinvocation against one or more MCP servers. - Adds streaming, structured output (Zod), memory, server-manager, code mode, observability (Langfuse), or production hardening to an existing
MCPAgent. - Debugging an agent that loops, stalls, hits
maxSteps, leaks sessions, or returns wrong-shaped output. - Picks a model/provider for an
MCPAgent(OpenAI, Anthropic, Google, Groq, custom LangChain adapter) or migrates between them.
Do NOT use this skill for
More from yigitkonur/skills-by-yigitkonur
run-research
Use skill if you are answering one technical research question with current web evidence, Reddit practitioner experience, and source-backed synthesis, optionally fanned out across parallel subagents.
42run-agent-browser
Use skill if you are driving the agent-browser CLI for ad hoc browser automation — @ref snapshots, sessions, forms, extraction, screenshots, headed/stealth, or provider runs.
38publish-npm-package
Use skill if you are publishing to npm via GitHub Actions release workflow with trusted publishing, NPM_TOKEN, provenance, semantic-release, changesets, release-please, or fixing npm publish CI.
35init-agent-config
Use skill if you are creating, auditing, or migrating CLAUDE.md, AGENTS.md, or REVIEW.md instruction files, folder-scoped agent guidance, or cross-agent companion entrypoints.
34build-mcp-use-server
Use skill if you are building TypeScript MCP servers with mcp-use/server — server.tool, response helpers, ctx.auth, sessions, transports, widgets, Inspector, deploy.
34build-skills
Use skill if you are creating or substantially revising a Claude skill and need workspace-first evidence, remote comparison, and repo-fit synthesis before writing SKILL.md.
32