> ## Documentation Index
> Fetch the complete documentation index at: https://glasser.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# VS Code

> Connect Glasser to GitHub Copilot Chat in VS Code.

Open VS Code with GitHub Copilot Chat available and signed in.

<Steps>
  <Step title="Add the server">
    Open the Command Palette with **Cmd+Shift+P** on macOS or **Ctrl+Shift+P** on Windows or Linux.
    Run **MCP: Add Server**, choose an HTTP server, and enter:

    ```text theme={null}
    https://api.glasser.ai/mcp
    ```

    Name it `glasser`. Choose **Copilot Global** to use it across projects, or `.mcp.json`
    to save it in this workspace. Older versions may offer a user-profile destination instead.
  </Step>

  <Step title="Start Glasser and sign in">
    Run **MCP: List Servers** from the Command Palette, select `glasser`, and start it.
    Review the server trust prompt and follow the browser sign-in prompt.

    Sign in to Glasser, choose your Workspace, and select **Allow**.
    Create an account and Workspace if needed.
  </Step>

  <Step title="Enable the tools in chat">
    Open Copilot Chat in Agent mode. Use **Configure Tools** in the chat input to check that
    Glasser's tools are enabled.
  </Step>

  <Step title="Check the connection">
    In a new conversation, ask:

    ```text wrap theme={null}
    Use Glasser to check my available balance. Do not make any paid Runs.
    ```

    The agent should use Glasser's `balance` tool and return your balance. This check is free;
    a zero balance still means the connection works. If you need funds for a paid Run, add
    them in the [Glasser console](https://app.glasser.ai).
  </Step>
</Steps>

## Try your first request

```text wrap theme={null}
Use Glasser to find recent news about Stripe. Show me the data you can retrieve and the price, then wait for my approval before any paid Run.
```

After you approve, the agent can retrieve the data and report the result and charge.

See the [VS Code MCP documentation](https://code.visualstudio.com/docs/agent-customization/mcp-servers)
for server settings and troubleshooting.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.