[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ETB2PREAEV5DGE16JNG4PK":3,"skill-same:01M7ETB2PREAEV5DGE16JNG4PK":45},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7ETB2PREAEV5DGE16JNG4PK","ams-mcp-builder",null,"TanNhatCMS\u002Fjarvis","TanNhatCMS","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F113796420?v=4","01M753MV17KG5CD3152G3WQEQY","KietNT","01M7EKEDYVYQ6PWVJJMZ911VMX",0,"MIT","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-mcp-builder\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: mcp-builder\ndescription: Design and build Model Context Protocol servers: tools, resources, prompts, transports, and security. Use when exposing APIs, data, or capabilities to AI assistants via MCP.\ncategory: development\n---\n\n# MCP Builder\n\n## Overview\n\nThe Model Context Protocol (MCP) is a standard way to expose **tools, data, and prompts** to AI\nassistants: your server advertises capabilities, the client (an AI app) discovers them, and the\nmodel invokes tools or reads resources as needed. Think of it as \"USB-C for AI integrations\" — one\nprotocol instead of bespoke plugins per assistant.\n\nThis skill covers designing and building MCP servers well: capability modeling, tool design,\ntransports, auth, and the security posture that matters when a model can invoke your code.\n\n## When to use\n\n- Exposing an internal API, database, or service to AI assistants.\n- Building a tool integration (GitHub, Postgres, filesystem, custom SaaS) for MCP clients.\n- Designing the tool surface: what operations a model should be able to call.\n- Choosing transports (stdio vs HTTP\u002FSSE) and auth for an MCP server.\n- Reviewing an MCP server for security issues before deployment.\n\n## Core concepts\n\n- **Three capability types.** *Tools* (model-invoked actions with side effects — the workhorse),\n  *Resources* (read-only data the model can fetch, like files or records), *Prompts* (reusable\n  templates). Most servers are 90% tools; reach for resources when the model needs to *read*,\n  tools when it needs to *do*.\n- **Tool design is API design.** Each tool: a clear name (`create_ticket`, not `do_thing`), a\n  precise description (the model reads this to decide when to call it), a strict input schema\n  (required fields, enums, formats), and structured output. Vague tools get misused; oversized\n  tools (one tool that does everything) get miscalled.\n- **Schemas are contracts.** Use JSON Schema rigorously: types, required arrays, descriptions per\n  field, sensible defaults. Validate inputs server-side — the model *will* send malformed\n  arguments eventually.\n- **Transports.** `stdio` for local servers (spawned by the client — simplest, no network);\n  Streamable HTTP for remote servers (needs auth, TLS, and all the usual web hardening). Choose\n  stdio unless the server must be shared across machines.\n- **Progressive disclosure.** Don't dump your whole API as 200 tools. Expose the operations that\n  match real workflows; compose complex flows from a few well-chosen primitives. Fewer, better\n  tools beat exhaustive coverage.\n- **Security model.** The model is an *untrusted caller with a trusted user's intent*: authenticate\n  the user, authorize every tool call against their permissions, validate and sanitize all inputs,\n  and treat tool *outputs* as untrusted data (they can contain injected instructions — never let\n  tool output drive privileged actions without checks).\n\n## Practical workflow\n\n1. **Model the workflows first.** List the 3–5 real tasks users will ask the assistant to do with\n   your system. Each task maps to 1–4 tools — that's your v1 surface.\n2. **Define tools with ruthless clarity.** For each: name (verb_noun), one-paragraph description\n   stating *when to use it and when not to*, input schema with examples, and output shape.\n   Write the descriptions as if the model has never seen your domain.\n3. **Implement with an SDK.** Use the official MCP SDK for your language (TypeScript\u002FPython);\n   don't hand-roll the protocol. Structure: transport setup → capability registration →\n   handlers with input validation → structured results and typed errors.\n4. **Handle errors like an API.** Return structured errors (code, message, retryable?) — the model\n   can recover from \"rate_limited, retry in 60s\" but not from a stack trace. Never leak internals.\n5. **Add auth for remote servers.** OAuth 2.1 \u002F bearer tokens at the HTTP layer; scope tokens to\n   the minimum capability set; log and audit tool invocations per user.\n6. **Test as a client.** Connect with a real MCP client (e.g., the inspector tool), run each\n   workflow end-to-end, and try adversarial inputs: missing fields, wrong types, oversized\n   payloads, and prompt-injection strings in tool arguments.\n\nExample tool definition sketch:\n\n```json\n{\n  \"name\": \"search_tickets\",\n  \"description\": \"Search support tickets by status, assignee, or keyword. Use for finding existing tickets before creating new ones; do not use for modifying tickets (see update_ticket).\",\n  \"inputSchema\": {\n    \"type\": \"object\",\n    \"properties\": {\n      \"status\": { \"type\": \"string\", \"enum\": [\"open\", \"pending\", \"closed\"] },\n      \"assignee\": { \"type\": \"string\", \"description\": \"User email, or 'unassigned'\" },\n      \"query\": { \"type\": \"string\", \"maxLength\": 200 }\n    },\n    \"required\": [\"status\"]\n  }\n}\n```\n\n## Common pitfalls\n\n- **Tool sprawl.** Auto-generating one tool per API endpoint (200 tools) overwhelms the model's\n  selection and burns context. Curate: expose workflow-level tools, not endpoint-level mirrors.\n- **Vague descriptions.** \"Interacts with the ticket system\" tells the model nothing. Say when to\n  call it, what it returns, and what *not* to use it for.\n- **Missing input validation.** Trusting the model to send correct arguments. Validate types,\n  ranges, and enums server-side; return helpful errors naming the offending field.\n- **Destructive tools without guardrails.** A `delete_database` tool with no confirmation\n  parameter is an incident waiting for a misread prompt. Require explicit confirmation fields for\n  destructive ops, and scope them to least privilege.\n- **Prompt injection via tool output.** Tool results containing \"ignore previous instructions and\n  …\" — treat all tool output as data, never as instructions; sanitize or sandbox where output\n  feeds back into privileged decisions.\n- **No auth on remote servers.** An HTTP MCP server without authentication is a public API for\n  anyone who finds the URL. Authenticate, authorize per-tool, and rate-limit.\n- **Leaking internals in errors.** Stack traces and SQL errors in tool responses teach attackers\n  your internals and confuse the model. Structured, minimal errors only.\n","# MCP Builder\n\n## Overview\n\nThe Model Context Protocol (MCP) is a standard way to expose **tools, data, and prompts** to AI\nassistants: your server advertises capabilities, the client (an AI app) discovers them, and the\nmodel invokes tools or reads resources as needed. Think of it as \"USB-C for AI integrations\" — one\nprotocol instead of bespoke plugins per assistant.\n\nThis skill covers designing and building MCP servers well: capability modeling, tool design,\ntransports, auth, and the security posture that matters when a model can invoke your code.\n\n## When to use\n\n- Exposing an internal API, database, or service to AI assistants.\n- Building a tool integration (GitHub, Postgres, filesystem, custom SaaS) for MCP clients.\n- Designing the tool surface: what operations a model should be able to call.\n- Choosing transports (stdio vs HTTP\u002FSSE) and auth for an MCP server.\n- Reviewing an MCP server for security issues before deployment.\n\n## Core concepts\n\n- **Three capability types.** *Tools* (model-invoked actions with side effects — the workhorse),\n  *Resources* (read-only data the model can fetch, like files or records), *Prompts* (reusable\n  templates). Most servers are 90% tools; reach for resources when the model needs to *read*,\n  tools when it needs to *do*.\n- **Tool design is API design.** Each tool: a clear name (`create_ticket`, not `do_thing`), a\n  precise description (the model reads this to decide when to call it), a strict input schema\n  (required fields, enums, formats), and structured output. Vague tools get misused; oversized\n  tools (one tool that does everything) get miscalled.\n- **Schemas are contracts.** Use JSON Schema rigorously: types, required arrays, descriptions per\n  field, sensible defaults. Validate inputs server-side — the model *will* send malformed\n  arguments eventually.\n- **Transports.** `stdio` for local servers (spawned by the client — simplest, no network);\n  Streamable HTTP for remote servers (needs auth, TLS, and all the usual web hardening). Choose\n  stdio unless the server must be shared across machines.\n- **Progressive disclosure.** Don't dump your whole API as 200 tools. Expose the operations that\n  match real workflows; compose complex flows from a few well-chosen primitives. Fewer, better\n  tools beat exhaustive coverage.\n- **Security model.** The model is an *untrusted caller with a trusted user's intent*: authenticate\n  the user, authorize every tool call against their permissions, validate and sanitize all inputs,\n  and treat tool *outputs* as untrusted data (they can contain injected instructions — never let\n  tool output drive privileged actions without checks).\n\n## Practical workflow\n\n1. **Model the workflows first.** List the 3–5 real tasks users will ask the assistant to do with\n   your system. Each task maps to 1–4 tools — that's your v1 surface.\n2. **Define tools with ruthless clarity.** For each: name (verb_noun), one-paragraph description\n   stating *when to use it and when not to*, input schema with examples, and output shape.\n   Write the descriptions as if the model has never seen your domain.\n3. **Implement with an SDK.** Use the official MCP SDK for your language (TypeScript\u002FPython);\n   don't hand-roll the protocol. Structure: transport setup → capability registration →\n   handlers with input validation → structured results and typed errors.\n4. **Handle errors like an API.** Return structured errors (code, message, retryable?) — the model\n   can recover from \"rate_limited, retry in 60s\" but not from a stack trace. Never leak internals.\n5. **Add auth for remote servers.** OAuth 2.1 \u002F bearer tokens at the HTTP layer; scope tokens to\n   the minimum capability set; log and audit tool invocations per user.\n6. **Test as a client.** Connect with a real MCP client (e.g., the inspector tool), run each\n   workflow end-to-end, and try adversarial inputs: missing fields, wrong types, oversized\n   payloads, and prompt-injection strings in tool arguments.\n\nExample tool definition sketch:\n\n```json\n{\n  \"name\": \"search_tickets\",\n  \"description\": \"Search support tickets by status, assignee, or keyword. Use for finding existing tickets before creating new ones; do not use for modifying tickets (see update_ticket).\",\n  \"inputSchema\": {\n    \"type\": \"object\",\n    \"properties\": {\n      \"status\": { \"type\": \"string\", \"enum\": [\"open\", \"pending\", \"closed\"] },\n      \"assignee\": { \"type\": \"string\", \"description\": \"User email, or 'unassigned'\" },\n      \"query\": { \"type\": \"string\", \"maxLength\": 200 }\n    },\n    \"required\": [\"status\"]\n  }\n}\n```\n\n## Common pitfalls\n\n- **Tool sprawl.** Auto-generating one tool per API endpoint (200 tools) overwhelms the model's\n  selection and burns context. Curate: expose workflow-level tools, not endpoint-level mirrors.\n- **Vague descriptions.** \"Interacts with the ticket system\" tells the model nothing. Say when to\n  call it, what it returns, and what *not* to use it for.\n- **Missing input validation.** Trusting the model to send correct arguments. Validate types,\n  ranges, and enums server-side; return helpful errors naming the offending field.\n- **Destructive tools without guardrails.** A `delete_database` tool with no confirmation\n  parameter is an incident waiting for a misread prompt. Require explicit confirmation fields for\n  destructive ops, and scope them to least privilege.\n- **Prompt injection via tool output.** Tool results containing \"ignore previous instructions and\n  …\" — treat all tool output as data, never as instructions; sanitize or sandbox where output\n  feeds back into privileged decisions.\n- **No auth on remote servers.** An HTTP MCP server without authentication is a public API for\n  anyone who finds the URL. Authenticate, authorize per-tool, and rate-limit.\n- **Leaking internals in errors.** Stack traces and SQL errors in tool responses teach attackers\n  your internals and confuse the model. Structured, minimal errors only.\n",{},"main","af388a77c2fe5e0b4fd879cca4300a0ffa9a6579","skills\u002Fams-mcp-builder",1,"https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis","https:\u002F\u002Fgithub.com\u002FTanNhatCMS","https:\u002F\u002Fmrkiet.name.vn","2026-11-07 14:23:08",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add TanNhatCMS\u002Fjarvis --skill ams-mcp-builder",{"tool":37,"command":38},"bunx","bunx skills add TanNhatCMS\u002Fjarvis --skill ams-mcp-builder",{"tool":40,"command":41},"pnpm","pnpm dlx skills add TanNhatCMS\u002Fjarvis --skill ams-mcp-builder","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-mcp-builder\u002FSKILL.md",true,[],[46,53,61,68,75,82],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":18},"01M7EWYJR0J8DARY7E59Z6Y9MV","web-scrape","Turn web pages into LLM-ready markdown via the Firecrawl API (renders JS, anti-bot handling). Use when browser_open\u002Ffetch fails on JS-heavy pages, or when you need clean markdown\u002Fstructured extraction from a site. Requires FIRECRAWL_API_KEY.","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fweb-scrape\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":57,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":18},"01M7EWYBN5P6F2AJG3FR24T9BP","design-taste-frontend","tasteskill v2, the anti-slop frontend skill. Art direction for websites, distilled from a study of 247 curated gallery sites (One Page Love, Awwwards Sites of the Day). Deals researched directions (idea, composition, type, palette, photographs, section blueprints) from a library, enforces a strict no-slop house style with a real-browser inspector, and runs a look-and-fix loop on screenshots. Use this whenever you build, design, redesign, restyle, polish or review a landing page, marketing site, portfolio, product page, one-pager, hero or any public-facing web page, in any stack (HTML\u002FCSS, React, Next.js, Vue, Svelte, Astro, Tailwind) — also when the user says a page looks generic, templated, \"AI-made\", sloppy, or asks to make it look designed, premium, award-level or less like every other site. Not for dashboards or app screens.","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Ftaste-design\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Ftaste-design\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":18},"01M7EWY8FQFNQ2GB7NZZWGSSDX","test-driven-development","Use when implementing any feature or bugfix, before writing implementation code","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-tdd\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":18},"01M7EWY5SHBFRH1HDHVWM9K7TV","systematic-debugging","Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-debugging\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":18},"01M7EWY3NM0Z0JAKS7HDZ24K66","requesting-code-review","Use when completing tasks, implementing major features, or before merging to verify work meets requirements","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-code-review\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":18},"01M7EWY0WRMWX4M9ZFY0WKC593","brainstorming","You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-brainstorming\u002FSKILL.md",[],[]]