PageSourceSearch

https://la.ksivision.com/docs/assets/js/9dea173a.5ba7118f.js

js ksivision.com collected 2026-10-05 05:06:23 UTC 10,222 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkksi_docs=self.webpackChunkksi_docs||[]).push([[7490],{4827:(e,i,n)=>{n.r(i),n.d(i,{assets:()=>a,contentTitle:()=>c,default:()=>h,frontMatter:()=>r,metadata:()=>t,toc:()=>l});const t=JSON.parse('{"id":"guides/technical_guides/mcp-connection/gemini-antigravity","title":"Connecting MCP - Gemini / Antigravity","description":"This guide details the steps required to integrate and authenticate the KSI Vision Model Context Protocol (MCP) server in your development environment using Google Antigravity.","source":"@site/docs/guides/technical_guides/mcp-connection/gemini-antigravity.md","sourceDirName":"guides/technical_guides/mcp-connection","slug":"/guides/technical_guides/mcp-connection/gemini-antigravity","permalink":"/docs/guides/technical_guides/mcp-connection/gemini-antigravity","draft":false,"unlisted":false,"tags":[],"version":"current","sidebarPosition":2,"frontMatter":{"title":"Connecting MCP - Gemini / Antigravity","sidebar_label":"Gemini / Antigravity","sidebar_position":2},"sidebar":"tutorialSidebar","previous":{"title":"Generic","permalink":"/docs/guides/technical_guides/mcp-connection/generic"},"next":{"title":"Claude","permalink":"/docs/guides/technical_guides/mcp-connection/claude"}}');var s=n(4848),o=n(8453);const r={title:"Connecting MCP - Gemini / Antigravity",sidebar_label:"Gemini / Antigravity",sidebar_position:2},c="Setup Guide: KSI Vision MCP Server in Google Antigravity",a={},l=[{value:"1. Prerequisites",id:"1-prerequisites",level:2},{value:"2. Configuration in Antigravity 2.0 (Desktop App)",id:"2-configuration-in-antigravity-20-desktop-app",level:2},{value:"Step 2.1: Access the Configuration File",id:"step-21-access-the-configuration-file",level:3},{value:"Step 2.2: Add the KSI Vision Server",id:"step-22-add-the-ksi-vision-server",level:3},{value:"Step 2.3: Authentication",id:"step-23-authentication",level:3},{value:"3. Configuration in Antigravity CLI (<code>agy</code>)",id:"3-configuration-in-antigravity-cli-agy",level:2},{value:"Step 3.1: Configure the Configuration File",id:"step-31-configure-the-configuration-file",level:3},{value:"Step 3.2: Start and Authenticate in the Terminal",id:"step-32-start-and-authenticate-in-the-terminal",level:3},{value:"4. Verification",id:"4-verification",level:2}];function d(e){const i={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",hr:"hr",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,o.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.header,{children:(0,s.jsx)(i.h1,{id:"setup-guide-ksi-vision-mcp-server-in-google-antigravity",children:"Setup Guide: KSI Vision MCP Server in Google Antigravity"})}),"\n",(0,s.jsxs)(i.p,{children:["This guide details the steps required to integrate and authenticate the KSI Vision ",(0,s.jsx)(i.strong,{children:"Model Context Protocol (MCP)"})," server in your development environment using ",(0,s.jsx)(i.strong,{children:"Google Antigravity"}),"."]}),"\n",(0,s.jsx)(i.p,{children:"The integration allows your AI assistant to securely access KSI Vision's physical space analytics and people counting tools using OAuth authentication."}),"\n",(0,s.jsx)(i.hr,{}),"\n",(0,s.jsx)(i.h2,{id:"1-prerequisites",children:"1. Prerequisites"}),"\n",(0,s.jsx)(i.p,{children:"Before starting, make sure you have:"}),"\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsxs)(i.li,{children:["A ",(0,s.jsx)(i.strong,{children:"KSI Vision"})," account with access to create API Tokens (if you do not have access, request it at ",(0,s.jsx)(i.a,{href:"mailto:[email protected]",children:"[email protected]"})," or ",(0,s.jsx)(i.a,{href:"mailto:[email protected]",children:"[email protected]"}),")."]}),"\n",(0,s.jsxs)(i.li,{children:[(0,s.jsx)(i.strong,{children:"Google Antigravity"})," installed (either the CLI version ",(0,s.jsx)(i.code,{children:"agy"})," or the Desktop App Antigravity 2.0)."]}),"\n"]}),"\n",(0,s.jsx)(i.hr,{}),"\n",(0,s.jsx)(i.h2,{id:"2-configuration-in-antigravity-20-desktop-app",children:"2. Configuration in Antigravity 2.0 (
1Desktop App)"}),"\n",(0,s.jsx)(i.p,{children:"To use the MCP server inside the desktop visual application, follow these steps:"}),"\n",(0,s.jsx)(i.h3,{id:"step-21-access-the-configuration-file",children:"Step 2.1: Access the Configuration File"}),"\n",(0,s.jsxs)(i.ol,{children:["\n",(0,s.jsxs)(i.li,{children:["Open the ",(0,s.jsx)(i.strong,{children:"Antigravity 2.0"})," desktop app."]}),"\n",(0,s.jsxs)(i.li,{children:["In the left panel of the assistant, click on the ",(0,s.jsx)(i.strong,{children:(0,s.jsx)(i.code,{children:"..."})})," options menu (located in the top-right corner of the panel)."]}),"\n",(0,s.jsxs)(i.li,{children:["Select ",(0,s.jsx)(i.strong,{children:"Manage MCP Servers"}),"."]}),"\n",(0,s.jsxs)(i.li,{children:["Click on the ",(0,s.jsx)(i.strong,{children:"View raw config"})," button. This will open the global ",(0,s.jsx)(i.code,{children:"mcp_config.json"})," configuration file in your default editor."]}),"\n"]}),"\n",(0,s.jsx)(i.admonition,{type:"note",children:(0,s.jsxs)(i.p,{children:["The physical path of this file on your machine is:\n",(0,s.jsx)(i.code,{children:"C:\\Users\\<Your-Username>\\.gemini\\config\\mcp_config.json"})]})}),"\n",(0,s.jsx)(i.h3,{id:"step-22-add-the-ksi-vision-server",children:"Step 2.2: Add the KSI Vision Server"}),"\n",(0,s.jsxs)(i.p,{children:["Paste the following configuration block inside the ",(0,s.jsx)(i.code,{children:'"mcpServers"'})," object of the JSON file:"]}),"\n",(0,s.jsx)(i.pre,{children:(0,s.jsx)(i.code,{className:"language-json",children:'{\n  "mcpServers": {\n    "ksivision": {\n      "serverUrl": "https://mcp.ksivision.com/api/mcp",\n      "oauth": {}\n    }\n  }\n}\n'})}),"\n",(0,s.jsx)(i.p,{children:(0,s.jsxs)(i.em,{children:["If you already have other servers configured, simply add the ",(0,s.jsx)(i.code,{children:'"ksivision"'})," key to the existing ",(0,s.jsx)(i.code,{children:'"mcpServers"'})," object."]})}),"\n",(0,s.jsx)(i.h3,{id:"step-23-authentication",children:"Step 2.3: Authentication"}),"\n",(0,s.jsxs)(i.ol,{children:["\n",(0,s.jsx)(i.li,{children:"Save your changes and close the editor."}),"\n",(0,s.jsxs)(i.li,{children:["In the desktop app's configuration window, you will see a new row for the ",(0,s.jsx)(i.strong,{children:"ksivision"})," server."]}),"\n",(0,s.jsxs)(i.li,{children:["Click the ",(0,s.jsx)(i.strong,{children:"Authenticate"})," button next to the server."]}),"\n",(0,s.jsx)(i.li,{children:"A tab will open in your web browser. Log in with your KSI Vision credentials and authorize access."}),"\n",(0,s.jsxs)(i.li,{children:["Once completed, the server status will change to ",(0,s.jsx)(i.strong,{children:"Connected"}),"."]}),"\n"]}),"\n",(0,s.jsx)(i.hr,{}),"\n",(0,s.jsxs)(i.h2,{id:"3-configuration-in-antigravity-cli-agy",children:["3. Configuration in Antigravity CLI (",(0,s.jsx)(i.code,{children:"agy"}),")"]}),"\n",(0,s.jsxs)(i.p,{children:["If you use the terminal-based workflow via the ",(0,s.jsx)(i.code,{children:"agy"})," command, perform the following steps:"]}),"\n",(0,s.jsx)(i.h3,{id:"step-31-configure-the-configuration-file",children:"Step 3.1: Configure the Configuration File"}),"\n",(0,s.jsx)(i.p,{children:"Make sure to add the server in the command-line specific configuration file:"}),"\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsxs)(i.li,{children:[(0,s.jsx)(i.strong,{children:"File path:"})," ",(0,s.jsx)(i.code,{children:"C:\\Users\\<Your-Username>\\.gemini\\antigravity-cli\\mcp_config.json"})]}),"\n",(0,s.jsxs)(i.li,{children:[(0,s.jsx)(i.strong,{children:"Content to add:"}),"\n",(0,s.jsx)(i.pre,{children:(0,s.jsx)(i.code,{className:"language-json",children:'{\n  "mcpServers": {\n    "ksivision": {\n      "serverUrl": "https://mcp.ksivision.com/api/mcp",\n      "oauth": {}\n    }\n  }\n}\n'})}),"\n"]}),"\n"]}),"\n",(0,s.jsx)(i.h3,{id:"step-32-start-and-authenticate-in-the-terminal",children:"Step 3.2: Start and Authenticate in the Terminal"}),"\n",(0,s.jsxs)(i.ol,{children:["\n",(0,s.jsxs)(i.li,{children:["Start your Antigravity CLI session by typing ",(0,s.jsx)(i.code,{children:"agy"})," in your terminal."]}),"\n",(0,s.jsxs)(i.li,{children:["To verify that the server is configured, run the following command:","\n",(0,s.jsx)(i.pre,{children:(0,s.jsx)(i.co
1de,{className:"language-bash",children:"/mcp\n"})}),"\n"]}),"\n",(0,s.jsxs)(i.li,{children:["The CLI's interactive interface will show the ",(0,s.jsx)(i.strong,{children:"ksivision"})," server and prompt you to press ",(0,s.jsx)(i.code,{children:"Enter"})," to open the OAuth authentication in your web browser."]}),"\n",(0,s.jsx)(i.li,{children:"Complete the authentication in the browser and copy the verification code back to the terminal if prompted."}),"\n"]}),"\n",(0,s.jsx)(i.hr,{}),"\n",(0,s.jsx)(i.h2,{id:"4-verification",children:"4. Verification"}),"\n",(0,s.jsx)(i.p,{children:"Once connected, you can query Antigravity directly about KSI Vision data. For example, try sending the following prompt:"}),"\n",(0,s.jsxs)(i.blockquote,{children:["\n",(0,s.jsx)(i.p,{children:(0,s.jsx)(i.em,{children:'"What are the current traffic and occupancy metrics in our registered stores on KSI Vision?"'})}),"\n"]}),"\n",(0,s.jsx)(i.p,{children:"The assistant will transparently use the MCP tools under your authenticated identity to retrieve information from the KSI Vision sandbox."}),"\n",(0,s.jsx)(i.admonition,{type:"important",children:(0,s.jsx)(i.p,{children:"OAuth access tokens will be automatically refreshed and securely stored in your operating system's keyring, so you will not need to repeatedly authenticate in daily use."})})]})}function h(e={}){const{wrapper:i}={...(0,o.R)(),...e.components};return i?(0,s.jsx)(i,{...e,children:(0,s.jsx)(d,{...e})}):d(e)}},8453:(e,i,n)=>{n.d(i,{R:()=>r,x:()=>c});var t=n(6540);const s={},o=t.createContext(s);function r(e){const i=t.useContext(o);return t.useMemo(function(){return"function"==typeof e?e(i):{...i,...e}},[i,e])}function c(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:r(e.components),t.createElement(o.Provider,{value:i},e.children)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.