Open Customize → Connectors in Claude, then choose + → Add
custom connector. Enter gat as the name and
https://getgat.dev/mcp as the remote MCP server URL, then click Add.For a managed workspace, an organization owner may need to add the
connector. See Claude’s custom connector setup
for account requirements.
2
Enable it in a conversation
In a chat, open + → Connectors and enable gat. Ask Claude to
search the gat documentation using one of the prompts below.
1
Register the server
Run this in your terminal to make the server available across projects:
claude mcp add --transport http --scope user gat https://getgat.dev/mcp
2
Check the connection
Start Claude Code and run /mcp to view the server’s status and tools.
Then ask it to search the gat docs.
To use the server across projects, put the configuration in
~/.cursor/mcp.json instead.
2
Use it in Agent
Open Cursor’s MCP settings and check that gat is available. In an
Agent conversation, ask it to search the gat documentation and approve
the tool call when prompted.
Run MCP: List Servers from the Command Palette, select gat, and
start it. Confirm trust if prompted. Open Copilot Chat in Agent mode
and ask it to search the gat documentation.
For Copilot CLI,
register the server with copilot mcp add --transport http gat https://getgat.dev/mcp.
Use copilot mcp list to list configured servers.
{"docsConfig":{"theme":"linden","$schema":"https://mintlify.com/docs.json","name":"gat","description":"Simple, fast, versioned large-file storage for git.","colors":{"primary":"#0F766E","light":"#CCFBF1","dark":"#115E59"},"logo":{"light":"https://mintcdn.com/getgat/gM8EvlJ90QP0hGoe/images/logo-original.png?fit=max\u0026auto=format\u0026n=gM8EvlJ90QP0hGoe\u0026q=85\u0026s=ef121cff2efb825b0c2aeec0eeda9a29","dark":"https://mintcdn.com/getgat/gM8EvlJ90QP0hGoe/images/logo-white.png?fit=max\u0026auto=format\u0026n=gM8EvlJ90QP0hGoe\u0026q=85\u0026s=e9253dc69dfaa4e880f9fc73a3b2f128"},"favicon":{"light":"https://mintcdn.com/getgat/gM8EvlJ90QP0hGoe/images/favicon-original.png?fit=max\u0026auto=format\u0026n=gM8EvlJ90QP0hGoe\u0026q=85\u0026s=e11d1a30140cf45739579860f2894872","dark":"https://mintcdn.com/getgat/gM8EvlJ90QP0hGoe/images/favicon-white.png?fit=max\u0026auto=format\u0026n=gM8EvlJ90QP0hGoe\u0026q=85\u0026s=83c5e10aa4521f6555d379ac98b4346b"},"navbar":{"links":[{"href":"https://github.com/getgat-dev/gat","label":"GitHub"}]},"seo":{"metatags":{"og:site_name":"Gat"},"organization":{"id":"https://getgat.dev/#organization","name":"Gat","url":"https://getgat.dev","logo":"https://getgat.dev/images/logo-original.png","sameAs":["https://github.com/getgat-dev/gat"]},"indexing":"navigable"},"integrations":{"gtm":{"tagId":"GTM-NV5TV492"}},"variables":{"colors.dark":"#115E59","colors.light":"#CCFBF1","colors.primary":"#0F766E"},"styling":{"latex":false},"background":{"color":{"light":"#f8fbfb","dark":"#0f1012"}},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"getgat","hasAudioNarration":false,"actualSubdomain":"getgat","customDomains":["getgat.dev"],"gitSource":{"type":"github","owner":"getgat-dev","repo":"gat","deployBranch":"main","contentDirectory":"docs","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":false,"issues":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6af1a5d04fec639ad50e4480","clientVersion":"0.0.4124","searchFilterCounts":[{"language":"default","tag":"Commands","count":18},{"language":"default","tag":"Guides","count":7},{"language":"default","tag":"Concepts","count":5},{"language":"default","tag":"Getting Started","count":3},{"language":"default","tag":"References","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"styles.css","content":"#content-area{padding-left:0!important;margin:auto!important}body:has(#gat-home) #navbar button.text-left>div:last-child{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}@media (min-width: 1280px){div:has(>#content-area):has(>#content-side-layout){gap:0!important}#content-area{max-width:750px!important;min-width:0}}@media (min-width: 1280px) and (max-width: 1439px){#content-side-layout{display:none!important}#content-area{padding-left:0!important}}"}],"page":{"pagePath":"guides/use-gat-mcp","slug":"/guides/use-gat-mcp","pageMetadata":{"title":"Use Gat MCP in tools","description":"Connect your AI assistant to the gat documentation with MCP.","href":"/guides/use-gat-mcp"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Connect your AI assistant to the gat documentation with MCP.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Accordion,Card,CardGroup,CodeBlock,Heading,Info,Step,Steps,Tab,Tabs,Tip,Tooltip}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Tooltip)_missingMdxReference(`Tooltip`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`The gat documentation provides a `,_jsx(Tooltip,{tip:`A protocol that lets AI tools use external information sources. This server provides documentation search; it does not run Gat commands in your repository.`,children:`Model Context Protocol (MCP)`}),` server. Connect\nyour AI assistant to search the docs for help with commands, storage\nconfiguration, and workflows.`]}),`\n`,_jsx(Heading,{level:`2`,id:`connect-your-assistant`,children:`Connect your assistant`}),`\n`,_jsx(_components.p,{children:`Each tool connects to the same remote MCP server:`}),`\n`,_jsx(CodeBlock,{filename:`MCP server URL`,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`https://getgat.dev/mcp`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(Tabs,{sync:false,children:[_jsx(Tab,{title:`Claude`,id:`claude`,children:_jsxs(Steps,{children:[_jsxs(Step,{title:`Add a custom connector`,children:[_jsxs(_components.p,{children:[`Open `,_jsx(_components.strong,{children:`Customize → Connectors`}),` in Claude, then choose `,_jsx(_components.strong,{children:`+ → Add\ncustom connector`}),`. Enter `,_jsx(_components.code,{children:`gat`}),` as the name and\n`,_jsx(_components.code,{children:`https://getgat.dev/mcp`}),` as the remote MCP server URL, then click `,_jsx(_components.strong,{children:`Add`}),`.`]}),_jsxs(_components.p,{children:[`For a managed workspace, an organization owner may need to add the\nconnector. See `,_jsx(_components.a,{href:`https://support.claude.com/en/articles/11175166-get-started-with-custom-connectors-using-remote-mcp`,children:`Claude’s custom connector setup`}),`\nfor account requirements.`]})]}),_jsx(Step,{title:`Enable it in a conversation`,children:_jsxs(_components.p,{children:[`In a chat, open `,_jsx(_components.strong,{children:`+ → Connectors`}),` and enable `,_jsx(_components.code,{children:`gat`}),`. Ask Claude to\nsearch the gat documentation using one of the prompts below.`]})})]})}),_jsxs(Tab,{title:`Claude Code`,id:`claude-code`,children:[_jsxs(Steps,{children:[_jsxs(Step,{title:`Register the server`,children:[_jsx(_components.p,{children:`Run this in your terminal to make the server available across projects:`}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`claude`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` mcp`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` add`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --transport`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` http`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --scope`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` user`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` gat`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://getgat.dev/mcp`})]}),`\n`]})})})]}),_jsx(Step,{title:`Check the connection`,children:_jsxs(_components.p,{children:[`Start Claude Code and run `,_jsx(_components.code,{children:`/mcp`}),` to view the server’s status and tools.\nThen ask it to search the gat docs.`]})})]}),_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`https://code.claude.com/docs/en/mcp`,children:`Claude Code’s MCP documentation`}),`\nfor configuration scopes and server management.`]})]}),_jsxs(Tab,{title:`Codex`,id:`codex`,children:[_jsxs(Steps,{children:[_jsxs(Step,{title:`Register the server`,children:[_jsx(_components.p,{children:`Run this in your terminal:`}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`codex`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` mcp`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` add`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` gat`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://getgat.dev/mcp`})]}),`\n`]})})}),_jsxs(Accordion,{title:`Configure it manually instead`,id:`configure-it-manually-instead`,children:[_jsxs(_components.p,{children:[`Add this entry to `,_jsx(_components.code,{children:`~/.codex/config.toml`}),`:`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`toml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`toml`,children:_jsxs(_components.code,{language:`toml`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`mcp_servers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`gat`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`url`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://getgat.dev/mcp\"`})]}),`\n`]})})})]})]}),_jsx(Step,{title:`Check the connection`,children:_jsxs(_components.p,{children:[`Start a new Codex CLI session and run `,_jsx(_components.code,{children:`/mcp`}),` to see active servers.\nAsk Codex to use `,_jsx(_components.code,{children:`gat`}),` to search the documentation.`]})})]}),_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`https://developers.openai.com/codex/mcp`,children:`Codex’s MCP documentation`}),`\nfor IDE setup and configuration options.`]})]}),_jsxs(Tab,{title:`Cursor`,id:`cursor`,children:[_jsxs(Steps,{children:[_jsxs(Step,{title:`Add the configuration`,children:[_jsxs(_components.p,{children:[`Create or edit `,_jsx(_components.code,{children:`.cursor/mcp.json`}),` in your project. Add `,_jsx(_components.code,{children:`gat`}),` to the\n`,_jsx(_components.code,{children:`mcpServers`}),` object, preserving any existing servers:`]}),_jsx(CodeBlock,{filename:`.cursor/mcp.json`,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mcpServers\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"gat\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://getgat.dev/mcp\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsxs(_components.p,{children:[`To use the server across projects, put the configuration in\n`,_jsx(_components.code,{children:`~/.cursor/mcp.json`}),` instead.`]})]}),_jsx(Step,{title:`Use it in Agent`,children:_jsxs(_components.p,{children:[`Open Cursor’s MCP settings and check that `,_jsx(_components.code,{children:`gat`}),` is available. In an\nAgent conversation, ask it to search the gat documentation and approve\nthe tool call when prompted.`]})})]}),_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`https://cursor.com/docs/mcp`,children:`Cursor’s MCP documentation`}),`\nfor configuration and tool controls.`]})]}),_jsxs(Tab,{title:`VS Code / Copilot`,id:`vs-code-%2F-copilot`,children:[_jsxs(Steps,{children:[_jsxs(Step,{title:`Add the workspace server`,children:[_jsxs(_components.p,{children:[`Create or edit `,_jsx(_components.code,{children:`.vscode/mcp.json`}),` in your project. Add `,_jsx(_components.code,{children:`gat`}),` to the\n`,_jsx(_components.code,{children:`servers`}),` object, preserving any existing servers:`]}),_jsx(CodeBlock,{filename:`.vscode/mcp.json`,numberOfLines:`8`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"servers\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"gat\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"http\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://getgat.dev/mcp\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),_jsx(Step,{title:`Start the server and use it in chat`,children:_jsxs(_components.p,{children:[`Run `,_jsx(_components.strong,{children:`MCP: List Servers`}),` from the Command Palette, select `,_jsx(_components.code,{children:`gat`}),`, and\nstart it. Confirm trust if prompted. Open Copilot Chat in Agent mode\nand ask it to search the gat documentation.`]})})]}),_jsxs(Info,{children:[`For `,_jsx(_components.a,{href:`https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/add-mcp-servers`,children:`Copilot CLI`}),`,\nregister the server with `,_jsx(_components.code,{children:`copilot mcp add --transport http gat https://getgat.dev/mcp`}),`.\nUse `,_jsx(_components.code,{children:`copilot mcp list`}),` to list configured servers.`]}),_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`https://code.visualstudio.com/docs/agent-customization/mcp-servers`,children:`VS Code’s MCP documentation`}),`\nfor server controls and troubleshooting.`]})]}),_jsxs(Tab,{title:`Gemini CLI`,id:`gemini-cli`,children:[_jsxs(Steps,{children:[_jsxs(Step,{title:`Register the server`,children:[_jsx(_components.p,{children:`Run this in your terminal to make the server available across projects:`}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`gemini`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` mcp`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` add`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --transport`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` http`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --scope`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` user`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` gat`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://getgat.dev/mcp`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`--scope project`}),` instead to save it for the current project only.`]})]}),_jsx(Step,{title:`Check the connection`,children:_jsxs(_components.p,{children:[`Run `,_jsx(_components.code,{children:`gemini mcp list`}),` to check the connection, then start Gemini CLI\nand ask it to search the gat documentation.`]})})]}),_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`https://geminicli.com/docs/tools/mcp-server/`,children:`Gemini CLI’s MCP documentation`}),`\nfor configuration and server management.`]})]})]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`For another MCP client, add a remote HTTP server named `,_jsx(_components.code,{children:`gat`}),` with the URL\nabove. The settings format depends on the client.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`ask-about-gat`,children:`Ask about gat`}),`\n`,_jsx(_components.p,{children:`Try asking your assistant:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`“How do I set up an S3 remote with gat?”`}),`\n`,_jsx(_components.li,{children:`“How do I restore large files after switching branches?”`}),`\n`,_jsx(_components.li,{children:`“How do I choose which files to push?”`}),`\n`]}),`\n`,_jsx(_components.p,{children:`Ask it to use the gat documentation and link to the relevant pages so you can\nreview the commands and options.`}),`\n`,_jsx(Heading,{level:`2`,id:`explore-the-documentation`,children:`Explore the documentation`}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`Quickstart`,icon:`rocket`,href:`/quickstart`,children:_jsx(_components.p,{children:`Track, upload, and restore your first file.`})}),_jsx(Card,{title:`Set up a remote`,icon:`cloud`,href:`/set-up-a-remote`,children:_jsx(_components.p,{children:`Connect object storage or a local directory.`})}),_jsx(Card,{title:`Automatic sync`,icon:`arrows-rotate`,href:`/concepts/automatic-sync`,children:_jsx(_components.p,{children:`Restore working files after Git operations.`})}),_jsx(Card,{title:`Path selection`,icon:`filter`,href:`/concepts/path-selection`,children:_jsx(_components.p,{children:`Choose which files to transfer and restore.`})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Use Gat MCP in tools","description":"Connect your AI assistant to the gat documentation with MCP.","href":"/guides/use-gat-mcp"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Connect your assistant","slug":"connect-your-assistant","depth":2,"children":[]},{"title":"Ask about gat","slug":"ask-about-gat","depth":2,"children":[]},{"title":"Explore the documentation","slug":"explore-the-documentation","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"getgat","siteName":"gat","title":"Use Gat MCP in tools - gat","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-11T14:57:32.826Z","originalFileLocation":"guides/use-gat-mcp.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Connect your AI assistant to the gat documentation with MCP.\">\u003cmeta data-mint-head name=\"application-name\" content=\"gat\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/getgat/6KFEIX49Ob2p-OYd/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/getgat/6KFEIX49Ob2p-OYd/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/getgat/6KFEIX49Ob2p-OYd/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/getgat/6KFEIX49Ob2p-OYd/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/getgat/6KFEIX49Ob2p-OYd/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/getgat/6KFEIX49Ob2p-OYd/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/getgat/6KFEIX49Ob2p-OYd/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/getgat/6KFEIX49Ob2p-OYd/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/getgat/6KFEIX49Ob2p-OYd/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Use Gat MCP in tools - gat\">\u003cmeta data-mint-head property=\"og:description\" content=\"Connect your AI assistant to the gat documentation with MCP.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Gat\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://getgat.dev/guides/use-gat-mcp\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://getgat.mintlify.site/_mintlify/api/og/v2?division=Guides\u0026amp;title=Use+Gat+MCP+in+tools\u0026amp;description=Connect+your+AI+assistant+to+the+gat+documentation+with+MCP.\u0026amp;theme=30e390fcb3db426888266f7e\u0026amp;signature=6cd85c2911c359b19eaa9eb7f721a170f6f722d9e9a56751cc8eb748fa5b836f\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Use Gat MCP in tools - gat\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Connect your AI assistant to the gat documentation with MCP.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://getgat.mintlify.site/_mintlify/api/og/v2?division=Guides\u0026amp;title=Use+Gat+MCP+in+tools\u0026amp;description=Connect+your+AI+assistant+to+the+gat+documentation+with+MCP.\u0026amp;theme=30e390fcb3db426888266f7e\u0026amp;signature=6cd85c2911c359b19eaa9eb7f721a170f6f722d9e9a56751cc8eb748fa5b836f\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/getgat/6KFEIX49Ob2p-OYd/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"gat\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0F766E\">\u003clink data-mint-head rel=\"canonical\" href=\"https://getgat.dev/guides/use-gat-mcp\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/guides/use-gat-mcp.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://getgat.dev/#organization\",\"name\":\"Gat\",\"url\":\"https://getgat.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://getgat.dev/images/logo-original.png\"},\"sameAs\":[\"https://github.com/getgat-dev/gat\"]},{\"@type\":\"WebSite\",\"@id\":\"https://getgat.dev#website\",\"name\":\"gat\",\"url\":\"https://getgat.dev\",\"publisher\":{\"@id\":\"https://getgat.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://getgat.dev/guides/use-gat-mcp#webpage\",\"url\":\"https://getgat.dev/guides/use-gat-mcp\",\"name\":\"Use Gat MCP in tools\",\"description\":\"Connect your AI assistant to the gat documentation with MCP.\",\"dateModified\":\"2026-09-11T14:57:32.826Z\",\"isPartOf\":{\"@id\":\"https://getgat.dev#website\"},\"breadcrumb\":{\"@id\":\"https://getgat.dev/guides/use-gat-mcp#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://getgat.dev/guides/use-gat-mcp#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"gat\",\"item\":\"https://getgat.dev\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Use Gat MCP in tools\",\"item\":\"https://getgat.dev/guides/use-gat-mcp\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://getgat.dev/guides/use-gat-mcp#article\",\"headline\":\"Use Gat MCP in tools\",\"name\":\"Use Gat MCP in tools\",\"description\":\"Connect your AI assistant to the gat documentation with MCP.\",\"url\":\"https://getgat.dev/guides/use-gat-mcp\",\"mainEntityOfPage\":{\"@id\":\"https://getgat.dev/guides/use-gat-mcp#webpage\"},\"dateModified\":\"2026-09-11T14:57:32.826Z\",\"publisher\":{\"@id\":\"https://getgat.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://getgat.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"gat\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Gat\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/guides/use-gat-mcp.md","siteName":"gat","nav":{"global":null,"groups":[{"group":"Getting Started","pages":[{"title":"Installation","href":"/installation"},{"title":"Quickstart","href":"/quickstart"},{"title":"Set up a remote","href":"/set-up-a-remote"}]},{"group":"Concepts","icon":"file-text","pages":[{"title":"How Gat works","href":"/concepts/how-gat-works"},{"title":"Automatic sync","href":"/concepts/automatic-sync"},{"title":"Path selection","href":"/concepts/path-selection"},{"title":"History selection","href":"/concepts/history-selection"},{"title":"Config inheritance","description":"Share configuration with your team and override it locally without copying settings.","href":"/concepts/config-inheritance"}]},{"group":"Guides","icon":"graduation-cap","pages":[{"title":"Use Gat MCP in tools","href":"/guides/use-gat-mcp"},{"title":"Branching and merging","description":"Publish large-file changes and resolve conflicts with Git.","href":"/guides/branching-and-merging"},{"title":"Consuming Gat assets","href":"/guides/consuming-gat-assets"},{"title":"Using multiple remotes","href":"/guides/using-multiple-remotes"},{"title":"Improving performance","href":"/guides/improving-performance"},{"title":"Migrating from Git LFS","href":"/guides/migrating-from-git-lfs"},{"title":"Migrating from DVC","href":"/guides/migrating-from-dvc"}]},{"group":"References","icon":"book-open","pages":[{"title":"Configuration","href":"/references/configuration"},{"title":"Remote providers","href":"/references/remote-providers"},{"title":"Feature lifecycle","href":"/references/feature-lifecycle"}]},{"group":"Commands","icon":"square-terminal","pages":[{"title":"gat add","href":"/commands/add"},{"title":"gat config","href":"/commands/config"},{"title":"gat diff","href":"/commands/diff"},{"title":"gat fetch","href":"/commands/fetch"},{"title":"gat gc","tag":"Experimental","href":"/commands/gc"},{"title":"gat init","href":"/commands/init"},{"title":"gat ls-files","href":"/commands/ls-files"},{"title":"gat mount","tag":"Experimental","href":"/commands/mount"},{"title":"gat mv","href":"/commands/mv"},{"title":"gat pull","href":"/commands/pull"},{"title":"gat push","href":"/commands/push"},{"title":"gat remote","href":"/commands/remote"},{"title":"gat rm","href":"/commands/rm"},{"title":"gat route","tag":"Experimental","href":"/commands/route"},{"title":"gat selection","tag":"Experimental","href":"/commands/selection"},{"title":"gat status","href":"/commands/status"},{"title":"gat sync","href":"/commands/sync"},{"title":"gat system","tag":"Experimental","href":"/commands/system"}]}]},"basePath":"","title":"Use Gat MCP in tools - gat","buildId":"dpl_8hoxaqFTU7hTr6A2fUraxAyjuiZo","deploymentId":"dpl_8hoxaqFTU7hTr6A2fUraxAyjuiZo","dynamics":[],"chunks":[]}