MCP 服务器

leafwright

co.leafwright/leafwright
开发者工具 公开且可连接 MCP 2025-11-25

此 MCP 可以做什么

Provides authentication controls for the Leafwright service, which renders HTML, URLs, and templates to PDF.

leafwright_auth_status
Leafwright auth status
Check whether Leafwright MCP is authenticated. Completes a pending browser login if approved. Pass the device_code returned by leafwright_login when the client has no local storage, which is the case over HTTP.
可访问外部资源
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'device_code': {'type': 'string', 'description': 'The device_code from leafwright_login. Required when the client stores no local auth state.'}}}
输出模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['status'], 'properties': {'token': {'type': 'object', 'required': ['id', 'userId', 'orgId', 'defaultProjectId', 'tokenPreview', 'permissions', 'expiresAt', 'revokedAt', 'lastUsedAt', 'createdAt'], 'properties': {'id': {'type': 'string'}, 'orgId': {'type': 'string'}, 'userId': {'type': 'string'}, 'createdAt': {'type': 'string'}, 'expiresAt': {'type': 'string'}, 'revokedAt': {'anyOf': [{'type': 'string'}, {'type': 'null'}]}, 'lastUsedAt': {'anyOf': [{'type': 'string'}, {'type': 'null'}]}, 'permissions': {'type': 'array', 'items': {'type': 'string'}}, 'tokenPreview': {'type': 'string'}, 'defaultProjectId': {'type': 'string'}}, 'additionalProperties': False}, 'status': {'enum': ['connected', 'not_authenticated', 'pending'], 'type': 'string'}, 'next_step': {'type': 'string'}, 'user_code': {'type': 'string'}, 'expires_at': {'type': 'string'}, 'token_source': {'anyOf': [{'type': 'string'}, {'type': 'null'}]}, 'active_project_id': {'anyOf': [{'type': 'string'}, {'type': 'null'}]}}, 'additionalProperties': False}
leafwright_login
Log in to Leafwright
Start a browser login flow for Leafwright MCP. Open the returned URL, choose an organization and project, then call leafwright_auth_status.
可访问外部资源
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'client_name': {'type': 'string', 'description': 'Optional client name shown in Leafwright.'}}}
输出模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['status', 'verification_url', 'user_code', 'device_code', 'expires_at', 'next_step'], 'properties': {'status': {'type': 'string', 'const': 'pending'}, 'next_step': {'type': 'string'}, 'user_code': {'type': 'string'}, 'expires_at': {'type': 'string'}, 'device_code': {'type': 'string'}, 'verification_url': {'type': 'string'}}, 'additionalProperties': False}
leafwright_logout
Log out of Leafwright
Revoke the stored Leafwright MCP token and clear local auth state.
可能执行破坏性操作 可访问外部资源 幂等
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {}}
输出模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['status'], 'properties': {'status': {'type': 'string', 'const': 'logged_out'}}, 'additionalProperties': False}
已更改
leafwright_auth_status
2026年9月29日 03:01
已更改
leafwright_login
2026年9月29日 03:01
已添加
leafwright_logout
2026年9月17日 07:58
已添加
leafwright_auth_status
2026年9月17日 07:58
已添加
leafwright_login
2026年9月17日 07:58