{
 "$schema": "https://static.modelcontextprotocol.io/schemas/mcp-server-card/v1.json",
 "version": "1.0",
 "protocolVersion": "2025-06-18",
 "serverInfo": {
  "name": "ai-coding-dictionary",
  "title": "AI Coding Dictionary",
  "version": "1.1.0"
 },
 "description": "The vocabulary of AI coding, translated into plain English.",
 "documentationUrl": "https://ai9k.vercel.app/en/agents/mcp",
 "transport": {
  "type": "streamable-http",
  "endpoint": "/api/mcp"
 },
 "capabilities": {
  "tools": {
   "listChanged": false
  }
 },
 "authentication": {
  "required": false,
  "schemes": []
 },
 "instructions": "A dictionary of AI coding terms, in Vietnamese and English. Every tool only reads. Call get_overview to see what it covers, search when you have words and no slug, get_term for one full entry, get_related to walk the links from a term, get_section to browse a part of the curriculum, and compare for two to six terms side by side. Pass lang \"vi\" or \"en\" to choose the language of the answer; the default is \"vi\". Cite the url of each term you use. get_term also returns learn_url and map_url: offer them when the user wants to study a term or see what it connects to.",
 "tools": [
  {
   "name": "get_overview",
   "title": "Overview of the dictionary",
   "description": "What this dictionary covers: the number of terms, the curriculum sections in teaching order, the languages, and the files the site publishes for machines. Takes no required arguments. Use this first when you do not yet know whether the dictionary can answer the question.",
   "inputSchema": {
    "type": "object",
    "properties": {
     "lang": {
      "type": "string",
      "enum": [
       "vi",
       "en"
      ],
      "description": "Language of the text in the answer: \"vi\" (Vietnamese, the default) or \"en\" (English). Use the language the user writes in."
     }
    }
   }
  },
  {
   "name": "search",
   "title": "Search the dictionary",
   "description": "Find terms by words. Matching ignores accents and letter case, and looks at the English and the Vietnamese text together, so query in the user's own words in either language. A word that few terms use counts for more than a common one, and a hit in the term's name counts for more than one in its text. A term whose whole name appears in the query comes first. A result that scores under a tenth of the best one is left out, so the list is short rather than noisy. This is word matching, not a search by meaning: when a question returns nothing useful, retry with the key noun. Use this when you have words or a question and no slug, then call get_term with a slug from the results.",
   "inputSchema": {
    "type": "object",
    "properties": {
     "query": {
      "type": "string",
      "description": "Words to look for, at most 200 characters."
     },
     "lang": {
      "type": "string",
      "enum": [
       "vi",
       "en"
      ],
      "description": "Language of the text in the answer: \"vi\" (Vietnamese, the default) or \"en\" (English). Use the language the user writes in."
     },
     "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 20,
      "description": "How many results to return, 1 to 20. The default is 8."
     }
    },
    "required": [
     "query"
    ]
   }
  },
  {
   "name": "get_term",
   "title": "Read one term",
   "description": "The full entry of one term: its description, the body and the usage dialogue as markdown, its section, the terms it links to and the terms that link to it, and the addresses of the term in the Learn view and on the map. Pass a slug such as \"context-window\"; the English term or its Vietnamese name also works. An unknown slug is not a dead end: found is false and suggestions names the nearest terms to retry with. Use this once search, get_section or get_related has given you a slug.",
   "inputSchema": {
    "type": "object",
    "properties": {
     "slug": {
      "type": "string",
      "description": "The term's slug, such as \"context-window\"."
     },
     "lang": {
      "type": "string",
      "enum": [
       "vi",
       "en"
      ],
      "description": "Language of the text in the answer: \"vi\" (Vietnamese, the default) or \"en\" (English). Use the language the user writes in."
     }
    },
    "required": [
     "slug"
    ]
   }
  },
  {
   "name": "get_section",
   "title": "List the terms of a section",
   "description": "The terms of one curriculum section, in teaching order, each with its description. Sections are numbered from 1; get_overview lists them. An unknown number comes back with found false and the sections that do exist. Use this to browse a part of the curriculum; use search when you have a question rather than a section.",
   "inputSchema": {
    "type": "object",
    "properties": {
     "section": {
      "type": "integer",
      "minimum": 1,
      "description": "The section's number, from get_overview."
     },
     "lang": {
      "type": "string",
      "enum": [
       "vi",
       "en"
      ],
      "description": "Language of the text in the answer: \"vi\" (Vietnamese, the default) or \"en\" (English). Use the language the user writes in."
     }
    },
    "required": [
     "section"
    ]
   }
  },
  {
   "name": "get_related",
   "title": "Terms linked to a term",
   "description": "The neighbours of a term in the link graph: the terms its entry links to, and the terms whose entries link to it, each with its description. It walks one step from a term you already have. Use this after get_term to widen an answer; use search when you have a question and no starting term. An unknown slug comes back with found false and suggestions.",
   "inputSchema": {
    "type": "object",
    "properties": {
     "slug": {
      "type": "string",
      "description": "The term's slug, such as \"context-window\"."
     },
     "lang": {
      "type": "string",
      "enum": [
       "vi",
       "en"
      ],
      "description": "Language of the text in the answer: \"vi\" (Vietnamese, the default) or \"en\" (English). Use the language the user writes in."
     }
    },
    "required": [
     "slug"
    ]
   }
  },
  {
   "name": "compare",
   "title": "Compare terms",
   "description": "Two to 6 terms side by side: each one's description, body and section, whether they share a section, the links that run between them, and the terms that all of them link to. Use this when the question is \"X vs Y\" or \"how does X differ from Y\". Call search first if you only have names. An unknown slug lands in missing with suggestions, and the rest are still compared.",
   "inputSchema": {
    "type": "object",
    "properties": {
     "slugs": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "minItems": 2,
      "maxItems": 6,
      "description": "Slugs of the terms to compare, 2 to 6."
     },
     "lang": {
      "type": "string",
      "enum": [
       "vi",
       "en"
      ],
      "description": "Language of the text in the answer: \"vi\" (Vietnamese, the default) or \"en\" (English). Use the language the user writes in."
     }
    },
    "required": [
     "slugs"
    ]
   }
  }
 ]
}