# Lysis (Techway) — how to use (mcp.ai)

Reporting and queries over Lysis (Techway), a Brazilian legal ERP: case lookup (number/folder/party), case timelines/updates, the 'to-do' calendar (hearings, deadlines, tasks) and people records — ideal for the firm's weekly report. Auth via Lysis login + password (a dedicated user is recommended). Internal app API; no official public API.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_lysis?ms=1785379140000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `lysis_list`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/lysis`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/lysis/_endpoints`

## Example prompts
- "Build the weekly report: open cases and their new timeline entries"
- "What appointments and deadlines do I have this week in Lysis?"
- "Find the case in folder 123 and show its detail and timeline"

## More
- Page: https://mcp.ai/lysis
- Agent spec (llms.txt): https://mcp.ai/lysis/llms.txt
- Postman collection: https://mcp.ai/lysis/postman.json
