> ## 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.

# ChatGPT

> 通过一条配置提示词将 Glasser 连接到 ChatGPT。

在 Chat 或 Work 中将 Glasser 作为插件使用。下方截图展示的是 ChatGPT 桌面应用。点击截图可放大查看。

**1. 请 ChatGPT 配置 Glasser**

打开 ChatGPT，粘贴：

```text wrap theme={null}
set up https://glasser.ai/SKILL.md
```

ChatGPT 会读取 Skill 并引导你连接 Glasser。无需安装 Glasser CLI。如果 Glasser 已连接，直接进行下方的余额检查。

**2. 添加 Glasser**

在 ChatGPT 桌面应用的左侧栏打开 **Plugins**，然后选择 **Add → Create MCP App**。

将 **Name** 设为 `glasser`，在 **Connection** 下选择 **Server URL**，然后输入：

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

将 **Authentication** 设为 **OAuth**。阅读连接提示，勾选 **I understand and want to continue**，然后选择 **Create**。描述为选填项。

![ChatGPT 侧栏，箭头指向 Plugins](https://mintcdn.com/glasser/-KfaP2PjV80e7WYV/images/setup/chatgpt-plugins.png?fit=max\&auto=format\&n=-KfaP2PjV80e7WYV\&q=85\&s=7f7dbadd60e7fa5f3f3ee1c0d39ad181)

在侧栏打开 Plugins。

![ChatGPT Plugins 页面，箭头指向 Add 和 Create MCP App](https://mintcdn.com/glasser/-KfaP2PjV80e7WYV/images/setup/chatgpt-create-mcp-app.png?fit=max\&auto=format\&n=-KfaP2PjV80e7WYV\&q=85\&s=701df51abbb0ef349e5f7f6bfff659f0)

选择 Add → Create MCP App。

![ChatGPT 新建插件表单，包含 glasser 名称、服务器 URL、OAuth 认证、确认框及 Create 按钮](https://mintcdn.com/glasser/-KfaP2PjV80e7WYV/images/setup/chatgpt-server-details.webp?fit=max\&auto=format\&n=-KfaP2PjV80e7WYV\&q=85\&s=92cac93e9a0cbc66277b83e2127e270a)

填写连接信息，然后选择 Create。

**3. 连接 Glasser 工作空间**

选择 **Continue to glasser**。登录后选择 Glasser 工作空间，再点击 **Allow**。如有需要，先创建账号和工作空间。无需粘贴 Glasser API Key。

![ChatGPT 连接 glasser 对话框，箭头指向 Continue to glasser](https://mintcdn.com/glasser/-KfaP2PjV80e7WYV/images/setup/chatgpt-continue.png?fit=max\&auto=format\&n=-KfaP2PjV80e7WYV\&q=85\&s=0767e5a493f7bd655f4294d2e09e5f4c)

选择 Continue to glasser。

![Glasser 为 ChatGPT 提供的授权页，已选择工作空间，并显示 Allow 按钮](https://mintcdn.com/glasser/-KfaP2PjV80e7WYV/images/setup/chatgpt-allow.png?fit=max\&auto=format\&n=-KfaP2PjV80e7WYV\&q=85\&s=68f44f57524fb4cf179296a56ca98fd0)

选择工作空间，然后点击 Allow。

**4. 检查连接**

返回 ChatGPT。在 **Installed** 下打开 `glasser` 旁的 **…** 菜单，选择 **Try now**。选择 **Chat** 或 **Work**，确认输入框中已选中 `glasser`。如果未显示，输入 `@` 并选择 **glasser**。

发送以下免费余额查询提示词：

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

![ChatGPT 中已安装的 glasser 插件，箭头指向菜单和 Try now](https://mintcdn.com/glasser/-KfaP2PjV80e7WYV/images/setup/chatgpt-try-now.png?fit=max\&auto=format\&n=-KfaP2PjV80e7WYV\&q=85\&s=c404ff975eb1e7c21878494fd0e8e69a)

打开 glasser 菜单，选择 Try now。

![ChatGPT 输入框，已选中 glasser，并填写免费余额查询提示词](https://mintcdn.com/glasser/-KfaP2PjV80e7WYV/images/setup/chatgpt-balance.png?fit=max\&auto=format\&n=-KfaP2PjV80e7WYV\&q=85\&s=6dfd7356fa2efd572eac6d22b21af8c9)

选中 glasser，然后发送余额查询提示词。

ChatGPT 应调用 Glasser 的 `balance` 工具并返回余额。此检查免费；余额为零也表示连接正常。付费 Run 前，请在 [Glasser 控制台](https://app.glasser.ai?locale=zh-CN)充值。

如果没有 **Create MCP App**，请检查账号和工作空间是否允许自定义 MCP 服务器。使用受管理工作空间时，请询问管理员。

## 尝试首次请求

```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.
```

批准后，ChatGPT 即可获取数据，并报告结果和费用。

> [!TIP]
>
> 需要 SEO 检查？[Glasser SEO Audit](https://glasser.ai/docs/zh/plugins/seo-audit.md) 插件可直接用于 ChatGPT 和 Codex，无需进行此配置。

当前菜单及可用性见 OpenAI 的[连接指南](https://developers.openai.com/plugins/deploy/connect-chatgpt) 和[插件指南](https://learn.chatgpt.com/docs/plugins)。


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