{"version":"2.1.242","anchor":"new-plugin-types-command-writes-typescript-types-for-your-co","canonical_anchor":"new-plugin-types-command-writes-typescript-types-for-your-co","heading":"New \/plugin-types command writes TypeScript types for your connected MCP tools","tier":"use","area":"Slash Commands","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.242\/e\/new-plugin-types-command-writes-typescript-types-for-your-co","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.242","markdown":"### New \/plugin-types command writes TypeScript types for your connected MCP tools\n\nType \/plugin-types to generate a TypeScript file typing every connected MCP tool's arguments.\n\n**What**\n\n`\/plugin-types` generates `claude-code-mcp.d.ts` in `.claude\/types`, or in a directory you pass, containing an `McpToolInputs` interface built from every connected MCP server's advertised tool schemas. A plugin checking `e.tool === \"mcp__<server>__<tool>\"` then gets that tool's exact arguments typed. It reports how many tools from how many servers it wrote.\n\n**Details**\n\n- Refuses to write outside the project directory or through a symlink.\n- Registered as an ordinary local command and usable non-interactively.\n- Types come from the servers connected in the current session, so reconnecting or adding a server means re-running it.\n\n**Usage**\n\n`\/plugin-types \/plugin-types src\/types` **Evidence** `Write claude-code-mcp.d.ts: the inputs of the connected MCP tools, for typing a plugin against this session`\n\n- Area: Slash Commands\n- Names: `\/plugin-types`\n- Tier: Use it now\n- Useful: 4\/5\n- Signal: 3\/5"}