leafwright

Render HTML, URLs, and templates to PDF. AI drafts templates and fixes them from logs.

我该使用它吗

质量与安全性

B
描述质量
90%
模式完整度
50%
命名质量
80%
投毒风险
100%
权限匹配度
100%
协议合规性
100%

发现(1)

  • LOWTool 'leafwright_logout' description lacks action verb在 leafwright_logout 中

基于对工具定义和协议合规性的自动分析。

上下文开销

~640token 数(工具定义)
~1.9 KB典型响应大小
对注意力有中等影响(占 128k 上下文窗口的 0.50%)

这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。

安装

一键安装

将以下内容添加到你的 `claude_desktop_config.json` 文件中:

{
  "mcpServers": {
    "leafwright": {
      "command": "npx",
      "args": [
        "@leafwright/mcp"
      ]
    }
  }
}

可运行的软件包

npm@leafwright/mcp0.2.4stdio

远程端点

https://leafwright.co/mcpstreamable-http

它能做什么

工具清单

工具(3)

🟢 只读🟡 写入🔴 删除⚪ 未知
⚪leafwright_login(client_name)

Start a browser login flow for Leafwright MCP. Open the returned URL, choose an organization and project, then call leafwright_auth_status.

输入模式

{
  "type": "object",
  "properties": {
    "client_name": {
      "description": "Optional client name shown in Leafwright.",
      "type": "string"
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}

输出模式

{
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "const": "pending"
    },
    "verification_url": {
      "type": "string"
    },
    "user_code": {
      "type": "string"
    },
    "expires_at": {
      "type": "string"
    },
    "next_step": {
      "type": "string"
    }
  },
  "required": [
    "status",
    "verification_url",
    "user_code",
    "expires_at",
    "next_step"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🟢leafwright_auth_status

Check whether Leafwright MCP is authenticated. Completes a pending browser login if approved.

输入模式

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#"
}

输出模式

{
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "connected",
        "not_authenticated",
        "pending"
      ]
    },
    "token_source": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "active_project_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "token": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "userId": {
          "type": "string"
        },
        "orgId": {
          "type": "string"
        },
        "defaultProjectId": {
          "type": "string"
        },
        "tokenPreview": {
          "type": "string"
        },
        "permissions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "expiresAt": {
          "type": "string"
        },
        "revokedAt": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "lastUsedAt": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "createdAt": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "userId",
        "orgId",
        "defaultProjectId",
        "tokenPreview",
        "permissions",
        "expiresAt",
        "revokedAt",
        "lastUsedAt",
        "createdAt"
      ],
      "additionalProperties": false
    },
    "next_step": {
      "type": "string"
    },
    "user_code": {
      "type": "string"
    },
    "expires_at": {
      "type": "string"
    }
  },
  "required": [
    "status"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}
🔴leafwright_logout

Revoke the stored Leafwright MCP token and clear local auth state.

输入模式

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#"
}

输出模式

{
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "const": "logged_out"
    }
  },
  "required": [
    "status"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

社区

评价此服务器

证据

最近观测

已验证未记录版本3 个工具
已验证未记录版本3 个工具