{
  "markdown": "# Freelaw Studio Agent Plugin\n\nPublic package to connect agents to Freelaw Studio via the public API and\nremote MCP. Built for clients, integrators, and legal teams. No admin\ncapabilities.\n\nOfficial xAI marketplace listing: open\n[this compare](https://github.com/xai-org/plugin-marketplace/compare/main...Freelaw-S-A:feat/add-freelaw-studio?expand=1)\n(the GitHub App token used in automation cannot create PRs on `xai-org`).\n\nUntil that lands, Grok Build can still install from this repo:\n\n```bash\ngrok plugin marketplace add https://github.com/Freelaw-S-A/freelaw-studio-agent-plugin.git\ngrok plugin install freelaw-studio --trust\n```\n\n## What is in this repository\n\n- `plugins/freelaw-studio/`: portable [Agent Plugins](https://agent-plugins.org/) package with skills, commands, MCP config, LICENSE, and Grok/Claude/Codex/Gemini manifests.\n- `gemini-extension.json` and `GEMINI.md` at the repo root: Gemini CLI install.\n- `.grok-plugin/marketplace.json`: local marketplace for Grok Build.\n- `docs/api.md`: HTTP contract, auth, live action discovery.\n- `docs/mcp.md`: Streamable HTTP connection and credential rules.\n- `docs/agent.md`: expected agent behavior (permissions, idempotency, polling).\n- `docs/resources.md`: canonical URLs for OpenAPI, manifest, `llms.txt`, go-live.\n\n## Install\n\n### Grok Build\n\n```bash\ngrok plugin marketplace add https://github.com/Freelaw-S-A/freelaw-studio-agent-plugin.git\ngrok plugin install freelaw-studio\n```\n\nIn Grok (chat), add a custom connector at\n`https://app.freelaw.ai/api/agent/mcp` with no Authorization header.\n\n### Gemini CLI\n\n```bash\ngemini extensions install https://github.com/Freelaw-S-A/freelaw-studio-agent-plugin\n```\n\nGitHub install reads `gemini-extension.json` at the repo root.\n\n### Codex\n\n```bash\ncodex plugin marketplace add https://github.com/Freelaw-S-A/freelaw-studio-agent-plugin.git\ncodex plugin add freelaw-studio@freelaw-studio\n```\n\nThe same directory can be pointed at by any Agent Plugins-compatible host.\nInstall, auth, and permissions stay host-managed.\n\n### Manual\n\nClone the repo and point the host at `plugins/freelaw-studio/`. Do not copy\ntokens into the checkout or the plugin config file.\n\n## First connection\n\n1. Read [`docs/agent.md`](docs/agent.md) and the [public docs](https://freelaw.ai/developers).\n2. Configure remote MCP. Grok/Claude/Codex use [`.mcp.json`](plugins/freelaw-studio/.mcp.json) (`type: http`). Agent Plugins / Cursor use [`mcp.json`](plugins/freelaw-studio/mcp.json) (`type: streamable-http`). Same server.\n3. Complete OAuth 2.1 + PKCE on the host. Never paste `flk_`, cookies, or refresh tokens into chat.\n4. Run `/conectar` once to validate the connection. Do not ritual-call `office.permissions.describe` on every user question; prefer `office.dailySummary.get` for \"o que tenho hoje\".\n5. Smoke-test and keep `X-Correlation-ID` without storing sensitive data.\n\nThe MCP file deliberately has no `X-API-Key`. The host must supply the\ncredential through OAuth or a secret store. The key must never enter a prompt,\ncommit, or log.\n\n## Skills and commands\n\nSkills: `studio` (router), `delegacoes`, `peticoes`, `processos`, `clientes`, `prazos`, `publicacoes`, `documentos`.\n\nCommands: `/conectar`, `/permissoes`, `/os`, `/peticao`, `/prazos`, `/intimacoes`.\n\n## Product boundary\n\nThis package only reaches the public Freelaw Studio surface at\n`app.freelaw.ai/api/agent/*`. It does not provide admin, internal operations,\nor data outside the authenticated office.\n\nLicense: MIT.\n",
  "bytes": 3477,
  "sha": "13ad4fa4359dd4f29170e2e86363d0e4aad3efe041d72fac1b8c1c51a521334c",
  "repo_slug": "freelaw-s-a/freelaw-studio-agent-plugin",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/plg_freelaw_s_a_freelaw_studio_agent_plugin_537b22de/readme"
}