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

# Cursor

> 将 Glasser 添加到 Cursor，并连接账号。

通过远程 MCP 连接在 Cursor 中启用 Glasser。如需使用 Skill 和 CLI，请阅读 [Cursor Skill 指南](https://glasser.ai/docs/zh/setup-skill/cursor.md)。

**1. 添加服务器配置**

打开或创建 `~/.cursor/mcp.json`，以便在本机各项目中使用 Glasser。在 `mcpServers` 中添加 `glasser`，保留已有服务器：

```json theme={null}
{
  "mcpServers": {
    "glasser": {
      "url": "https://api.glasser.ai/mcp"
    }
  }
}
```

如仅需在一个项目中使用，改用项目内的 `.cursor/mcp.json`。

**2. 启用 Glasser 并登录**

在 Cursor 侧栏打开 **Customize**，在 MCP 服务器列表中找到 Glasser。启用后按提示认证。

在浏览器中登录 Glasser，选择工作空间，然后点击 **Allow**。如有需要，先创建账号和工作空间。返回 Cursor，确认 Glasser 工具可用。如果新配置尚未生效，请重新加载 Cursor。

**3. 检查连接**

在新对话中发送：

```text wrap theme={null}
Suggest one small task I can try with Glasser. Check my available balance and mention any first-run reward returned. Explain what the task will do, then wait for me to choose it before a paid Run.
```

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

Agent 应推荐一个小任务，并说明余额响应中返回的奖励。奖励金额和截止时间取决于账号；如果响应未返回奖励，Agent 只报告余额。详见[首次任务与奖励](https://glasser.ai/docs/zh/mcp-server.md#first-task-and-rewards)。

## 尝试首次请求

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

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

配置文件位置和当前客户端设置见 [Cursor MCP 文档](https://cursor.com/docs/mcp)。


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