{"id":49767041,"url":"https://github.com/retospect/patentorney-mcp","last_synced_at":"2026-05-11T10:57:30.792Z","repository":{"id":349588134,"uuid":"1203003897","full_name":"retospect/patentorney-mcp","owner":"retospect","description":"MCP server for managing patent application drafts","archived":false,"fork":false,"pushed_at":"2026-05-08T11:12:00.000Z","size":382,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-11T10:56:56.896Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/retospect.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-06T16:15:06.000Z","updated_at":"2026-05-08T11:11:57.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/retospect/patentorney-mcp","commit_stats":null,"previous_names":["retospect/patentorney-mcp"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/retospect/patentorney-mcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/retospect%2Fpatentorney-mcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/retospect%2Fpatentorney-mcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/retospect%2Fpatentorney-mcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/retospect%2Fpatentorney-mcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/retospect","download_url":"https://codeload.github.com/retospect/patentorney-mcp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/retospect%2Fpatentorney-mcp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32891966,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"online","status_checked_at":"2026-05-11T02:00:05.975Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-05-11T10:57:30.039Z","updated_at":"2026-05-11T10:57:30.787Z","avatar_url":"https://github.com/retospect.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# patentorney-mcp\n\nAn MCP server for managing patent application drafts. Built with [FastMCP](https://github.com/jlowin/fastmcp) and designed for use with AI coding assistants (Windsurf, Claude Desktop, etc.).\n\n## Installation\n\n```bash\npip install patentorney-mcp\n```\n\nOr with `uvx` (no install needed):\n\n```bash\nuvx patentorney-mcp\n```\n\n## MCP Client Configuration\n\nFor Windsurf / Claude Desktop, add to your MCP config:\n\n```json\n{\n  \"mcpServers\": {\n    \"patentorney-mcp\": {\n      \"command\": \"uvx\",\n      \"args\": [\"patentorney-mcp\"]\n    }\n  }\n}\n```\n\nOn first use, call `set_root(path='/absolute/path/to/project')` to point the server at the directory containing `patent.yaml`. All other tools will prompt for this if it hasn't been set.\n\n## Tools (8)\n\n| Tool | Purpose |\n|------|---------|\n| `set_root(path)` | Point at a patent project directory. **Must be called first.** |\n| `guide(topic?)` | Usage guides. No args → index. |\n| `claim(action, ...)` | Claims: add\\|get\\|update\\|remove\\|move\\|rename\\|tree |\n| `figure(action, ...)` | Figures: add\\|get\\|update\\|remove\\|move\\|rename\\|list |\n| `numeral(action, ...)` | Numerals: add\\|get\\|update\\|remove\\|lookup\\|rename\\|renumber\\|list |\n| `prior_art(action, ...)` | Prior art \u0026 IDS: add\\|get\\|update\\|remove\\|list\\|ids_add\\|ids_list\\|ids_check |\n| `glossary(action, ...)` | Glossary: add\\|get\\|update\\|remove\\|list |\n| `export(target, ...)` | Status, validation \u0026 export: status\\|check\\|claims\\|drawings_description\\|claims_latex\\|drawings_latex\\|latex |\n\nAny tool called before `set_root()` returns an error with a hint to call it. All errors include LLM-actionable hints.\n\n## Architecture\n\n- **`patent.yaml`** — single source of truth for structured data (claims, numerals, figures, glossary, prior art)\n- **`sections/*.tex`** — prose sections edited directly; `claims.tex` and `drawings-description.tex` are generated\n- **Stable slug IDs** — all entities use kebab-case slugs; presentation numbers computed from list order\n- **Dual addressing** — tools accept slug or current number (e.g., `claim(\"get\", id=\"3\")` or `claim(\"get\", id=\"mof-synthesis-method\")`)\n- **File locking** — `fcntl.flock` for safe concurrent access from multiple server instances\n- **Structured claims** — preamble + transitional + elements (each with numeral associations)\n\n## Project Layout\n\n```\nmy-patent/\n├── patent.yaml                         # structured data (MCP-managed)\n├── sections/\n│   ├── field.tex                       # prose (edit in IDE)\n│   ├── background.tex                  # prose\n│   ├── detailed-description.tex        # prose\n│   ├── abstract.tex                    # prose\n│   ├── claims.tex                      # GENERATED\n│   └── drawings-description.tex        # GENERATED\n├── figures/\n│   └── *.pdf\n├── main.tex                            # document root\n└── tome/                               # prior art library (optional)\n```\n\n## Testing\n\n```bash\nuv run pytest\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fretospect%2Fpatentorney-mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fretospect%2Fpatentorney-mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fretospect%2Fpatentorney-mcp/lists"}