rossum-mcp 0.4.0__py3-none-any.whl → 1.0.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- rossum_mcp/__init__.py +1 -1
- rossum_mcp/tools/annotations.py +11 -1
- rossum_mcp/tools/base.py +33 -0
- rossum_mcp/tools/catalog.py +27 -20
- rossum_mcp/tools/discovery.py +2 -1
- rossum_mcp/tools/email_templates.py +5 -9
- rossum_mcp/tools/hooks.py +15 -11
- rossum_mcp/tools/queues.py +25 -6
- rossum_mcp/tools/rules.py +10 -0
- rossum_mcp/tools/schemas.py +23 -7
- rossum_mcp/tools/workspaces.py +9 -1
- rossum_mcp-1.0.1.dist-info/METADATA +241 -0
- rossum_mcp-1.0.1.dist-info/RECORD +25 -0
- {rossum_mcp-0.4.0.dist-info → rossum_mcp-1.0.1.dist-info}/WHEEL +1 -1
- rossum_mcp-1.0.1.dist-info/licenses/LICENSE +21 -0
- rossum_mcp-0.4.0.dist-info/METADATA +0 -1895
- rossum_mcp-0.4.0.dist-info/RECORD +0 -24
- {rossum_mcp-0.4.0.dist-info → rossum_mcp-1.0.1.dist-info}/entry_points.txt +0 -0
- {rossum_mcp-0.4.0.dist-info → rossum_mcp-1.0.1.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: rossum-mcp
|
|
3
|
+
Version: 1.0.1
|
|
4
|
+
Summary: MCP server for AI-powered Rossum orchestration: document workflows, debug pipelines automatically, and configure intelligent document processing through natural language.
|
|
5
|
+
Author-email: "Dan Stancl (Rossum AI)" <daniel.stancl@gmail.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Keywords: mcp,rossum,document-processing
|
|
8
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
16
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
17
|
+
Requires-Python: >=3.12
|
|
18
|
+
Description-Content-Type: text/markdown
|
|
19
|
+
License-File: LICENSE
|
|
20
|
+
Requires-Dist: fastmcp>=2.0.0
|
|
21
|
+
Requires-Dist: pydantic>2.0.0
|
|
22
|
+
Requires-Dist: rossum-api>=3.8.0
|
|
23
|
+
Provides-Extra: docs
|
|
24
|
+
Requires-Dist: myst-parser>=2.0.0; extra == "docs"
|
|
25
|
+
Requires-Dist: sphinx>=7.0.0; extra == "docs"
|
|
26
|
+
Requires-Dist: sphinx-autodoc-typehints>=1.25.0; extra == "docs"
|
|
27
|
+
Requires-Dist: sphinx-copybutton>=0.5.2; extra == "docs"
|
|
28
|
+
Requires-Dist: sphinx-rtd-theme>=2.0.0; extra == "docs"
|
|
29
|
+
Provides-Extra: tests
|
|
30
|
+
Requires-Dist: coverage>=7.0.0; extra == "tests"
|
|
31
|
+
Requires-Dist: pytest>=7.0.0; extra == "tests"
|
|
32
|
+
Requires-Dist: pytest-asyncio>=0.21.0; extra == "tests"
|
|
33
|
+
Requires-Dist: pytest-cov>=4.0.0; extra == "tests"
|
|
34
|
+
Requires-Dist: redis>=7.0.0; extra == "tests"
|
|
35
|
+
Provides-Extra: all
|
|
36
|
+
Requires-Dist: coverage>=7.0.0; extra == "all"
|
|
37
|
+
Requires-Dist: fastmcp>=2.0.0; extra == "all"
|
|
38
|
+
Requires-Dist: myst-parser>=2.0.0; extra == "all"
|
|
39
|
+
Requires-Dist: pydantic>2.0.0; extra == "all"
|
|
40
|
+
Requires-Dist: pytest>=7.0.0; extra == "all"
|
|
41
|
+
Requires-Dist: pytest-asyncio>=0.21.0; extra == "all"
|
|
42
|
+
Requires-Dist: redis>=7.0.0; extra == "all"
|
|
43
|
+
Requires-Dist: rossum-api>=3.8.0; extra == "all"
|
|
44
|
+
Requires-Dist: sphinx>=7.0.0; extra == "all"
|
|
45
|
+
Requires-Dist: sphinx-autodoc-typehints>=1.25.0; extra == "all"
|
|
46
|
+
Requires-Dist: sphinx-copybutton>=0.5.2; extra == "all"
|
|
47
|
+
Requires-Dist: sphinx-rtd-theme>=2.0.0; extra == "all"
|
|
48
|
+
Dynamic: license-file
|
|
49
|
+
|
|
50
|
+
# Rossum MCP Server
|
|
51
|
+
|
|
52
|
+
<div align="center">
|
|
53
|
+
|
|
54
|
+
**MCP server for AI-powered Rossum document processing. 56 tools for queues, schemas, hooks, engines, and more.**
|
|
55
|
+
|
|
56
|
+
[](https://stancld.github.io/rossum-agents/)
|
|
57
|
+
[](https://pypi.org/project/rossum-mcp/)
|
|
58
|
+
[](https://opensource.org/licenses/MIT)
|
|
59
|
+
[](https://pypi.org/project/rossum-mcp/)
|
|
60
|
+
[](https://codecov.io/gh/stancld/rossum-agents)
|
|
61
|
+
[](#available-tools)
|
|
62
|
+
|
|
63
|
+
[](https://github.com/rossumai/rossum-api)
|
|
64
|
+
[](https://modelcontextprotocol.io/)
|
|
65
|
+
[](https://github.com/astral-sh/ruff)
|
|
66
|
+
[](https://github.com/astral-sh/ty)
|
|
67
|
+
[](https://github.com/astral-sh/uv)
|
|
68
|
+
|
|
69
|
+
</div>
|
|
70
|
+
|
|
71
|
+
> [!NOTE]
|
|
72
|
+
> This is not an official Rossum project. It is a community-developed integration built on top of the Rossum API.
|
|
73
|
+
|
|
74
|
+
> [!NOTE]
|
|
75
|
+
> API is stable starting from 1.0.0. Breaking changes will follow SemVer (released as 2.0.0+).
|
|
76
|
+
|
|
77
|
+
## Quick Start
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
# Set environment variables
|
|
81
|
+
export ROSSUM_API_TOKEN="your-api-token"
|
|
82
|
+
export ROSSUM_API_BASE_URL="https://api.elis.rossum.ai/v1"
|
|
83
|
+
|
|
84
|
+
# Run the MCP server
|
|
85
|
+
uv pip install rossum-mcp
|
|
86
|
+
rossum-mcp
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
Or run from source:
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
git clone https://github.com/stancld/rossum-agents.git
|
|
93
|
+
cd rossum-mcp/rossum-mcp
|
|
94
|
+
uv sync
|
|
95
|
+
python rossum_mcp/server.py
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## Claude Desktop Configuration
|
|
99
|
+
|
|
100
|
+
Configure Claude Desktop (`~/Library/Application Support/Claude/claude_desktop_config.json` on Mac):
|
|
101
|
+
|
|
102
|
+
```json
|
|
103
|
+
{
|
|
104
|
+
"mcpServers": {
|
|
105
|
+
"rossum": {
|
|
106
|
+
"command": "python",
|
|
107
|
+
"args": ["/path/to/rossum-mcp/rossum-mcp/rossum_mcp/server.py"],
|
|
108
|
+
"env": {
|
|
109
|
+
"ROSSUM_API_TOKEN": "your-api-token",
|
|
110
|
+
"ROSSUM_API_BASE_URL": "https://api.elis.rossum.ai/v1",
|
|
111
|
+
"ROSSUM_MCP_MODE": "read-write"
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
## Environment Variables
|
|
119
|
+
|
|
120
|
+
| Variable | Required | Description |
|
|
121
|
+
|----------|----------|-------------|
|
|
122
|
+
| `ROSSUM_API_TOKEN` | Yes | Your Rossum API authentication token |
|
|
123
|
+
| `ROSSUM_API_BASE_URL` | Yes | Base URL for the Rossum API |
|
|
124
|
+
| `ROSSUM_MCP_MODE` | No | `read-write` (default) or `read-only` |
|
|
125
|
+
|
|
126
|
+
### Read-Only Mode
|
|
127
|
+
|
|
128
|
+
Set `ROSSUM_MCP_MODE=read-only` to disable all CREATE, UPDATE, and UPLOAD operations. Only GET and LIST operations will be available.
|
|
129
|
+
|
|
130
|
+
## Available Tools
|
|
131
|
+
|
|
132
|
+
The server provides **56 tools** organized into categories:
|
|
133
|
+
|
|
134
|
+
| Category | Tools | Description |
|
|
135
|
+
|----------|-------|-------------|
|
|
136
|
+
| **Document Processing** | 7 | Upload documents, retrieve/update/confirm/delete annotations |
|
|
137
|
+
| **Queue Management** | 9 | Create, configure, delete, and list queues |
|
|
138
|
+
| **Schema Management** | 8 | Define, modify, and delete field structures |
|
|
139
|
+
| **Engine Management** | 6 | Configure extraction and splitting engines |
|
|
140
|
+
| **Extensions & Rules** | 11 | Webhooks, serverless functions, business rules |
|
|
141
|
+
| **Workspace Management** | 4 | Organize and delete workspaces |
|
|
142
|
+
| **User Management** | 3 | List users and roles |
|
|
143
|
+
| **Relations** | 4 | Annotation and document relations |
|
|
144
|
+
| **Email Templates** | 3 | Automated email responses |
|
|
145
|
+
| **Tool Discovery** | 1 | Dynamic tool loading |
|
|
146
|
+
|
|
147
|
+
<details>
|
|
148
|
+
<summary><strong>Tool List by Category</strong></summary>
|
|
149
|
+
|
|
150
|
+
**Document Processing:**
|
|
151
|
+
`upload_document`, `get_annotation`, `list_annotations`, `start_annotation`, `bulk_update_annotation_fields`, `confirm_annotation`, `delete_annotation`
|
|
152
|
+
|
|
153
|
+
**Queue Management:**
|
|
154
|
+
`get_queue`, `list_queues`, `get_queue_schema`, `get_queue_engine`, `create_queue`, `create_queue_from_template`, `get_queue_template_names`, `update_queue`, `delete_queue`
|
|
155
|
+
|
|
156
|
+
**Schema Management:**
|
|
157
|
+
`get_schema`, `list_schemas`, `create_schema`, `update_schema`, `patch_schema`, `get_schema_tree_structure`, `prune_schema_fields`, `delete_schema`
|
|
158
|
+
|
|
159
|
+
**Engine Management:**
|
|
160
|
+
`get_engine`, `list_engines`, `create_engine`, `update_engine`, `create_engine_field`, `get_engine_fields`
|
|
161
|
+
|
|
162
|
+
**Extensions & Rules:**
|
|
163
|
+
`get_hook`, `list_hooks`, `create_hook`, `update_hook`, `list_hook_templates`, `create_hook_from_template`, `list_hook_logs`, `delete_hook`, `get_rule`, `list_rules`, `delete_rule`
|
|
164
|
+
|
|
165
|
+
**Workspace Management:**
|
|
166
|
+
`get_workspace`, `list_workspaces`, `create_workspace`, `delete_workspace`
|
|
167
|
+
|
|
168
|
+
**User Management:**
|
|
169
|
+
`get_user`, `list_users`, `list_user_roles`
|
|
170
|
+
|
|
171
|
+
**Relations:**
|
|
172
|
+
`get_relation`, `list_relations`, `get_document_relation`, `list_document_relations`
|
|
173
|
+
|
|
174
|
+
**Email Templates:**
|
|
175
|
+
`get_email_template`, `list_email_templates`, `create_email_template`
|
|
176
|
+
|
|
177
|
+
**Tool Discovery:**
|
|
178
|
+
`list_tool_categories`
|
|
179
|
+
|
|
180
|
+
</details>
|
|
181
|
+
|
|
182
|
+
For detailed API documentation with parameters and examples, see [TOOLS.md](TOOLS.md).
|
|
183
|
+
|
|
184
|
+
## Annotation Workflow
|
|
185
|
+
|
|
186
|
+
Documents progress through these states:
|
|
187
|
+
|
|
188
|
+
```
|
|
189
|
+
importing → to_review → reviewing → confirmed → exporting → exported
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
**Key points:**
|
|
193
|
+
- Wait for `to_review` before processing
|
|
194
|
+
- Call `start_annotation` before updating fields
|
|
195
|
+
- Call `confirm_annotation` to finalize
|
|
196
|
+
|
|
197
|
+
## Example Workflows
|
|
198
|
+
|
|
199
|
+
### Upload and Monitor
|
|
200
|
+
|
|
201
|
+
```python
|
|
202
|
+
# 1. Upload document
|
|
203
|
+
upload_document(file_path="/path/to/invoice.pdf", queue_id=12345)
|
|
204
|
+
|
|
205
|
+
# 2. Get annotation ID
|
|
206
|
+
annotations = list_annotations(queue_id=12345)
|
|
207
|
+
|
|
208
|
+
# 3. Check status
|
|
209
|
+
annotation = get_annotation(annotation_id=annotations[0].id)
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
### Update Fields
|
|
213
|
+
|
|
214
|
+
```python
|
|
215
|
+
# 1. Start annotation (moves to 'reviewing')
|
|
216
|
+
start_annotation(annotation_id=12345)
|
|
217
|
+
|
|
218
|
+
# 2. Get content with field IDs
|
|
219
|
+
annotation = get_annotation(annotation_id=12345, sideloads=['content'])
|
|
220
|
+
|
|
221
|
+
# 3. Update fields using datapoint IDs
|
|
222
|
+
bulk_update_annotation_fields(
|
|
223
|
+
annotation_id=12345,
|
|
224
|
+
operations=[{"op": "replace", "id": 67890, "value": {"content": {"value": "INV-001"}}}]
|
|
225
|
+
)
|
|
226
|
+
|
|
227
|
+
# 4. Confirm
|
|
228
|
+
confirm_annotation(annotation_id=12345)
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
## License
|
|
232
|
+
|
|
233
|
+
MIT License - see [LICENSE](LICENSE) file for details.
|
|
234
|
+
|
|
235
|
+
## Resources
|
|
236
|
+
|
|
237
|
+
- [Full Documentation](https://stancld.github.io/rossum-agents/)
|
|
238
|
+
- [Tools Reference](TOOLS.md)
|
|
239
|
+
- [Rossum API Documentation](https://elis.rossum.ai/api/docs/)
|
|
240
|
+
- [Model Context Protocol](https://modelcontextprotocol.io/)
|
|
241
|
+
- [Main Repository](https://github.com/stancld/rossum-agents)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
rossum_mcp/__init__.py,sha256=76_5unf43DE01lMmn6fXhlZawCdTEyjFCe1AnXb4X3s,58
|
|
2
|
+
rossum_mcp/logging_config.py,sha256=OH5G6K4wH_g-m55FdRO1BYXIDtOop-lD9Ps_mTMQ8eY,4792
|
|
3
|
+
rossum_mcp/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
rossum_mcp/server.py,sha256=r9YO5Lt0lZ2iwqCBnMAVE3yhjHXvFlU9sZb4NknjOXQ,1959
|
|
5
|
+
rossum_mcp/tools/__init__.py,sha256=70BqRQUnMqQL30VXO2PRJAIwCYu9JAC9B7nIvw0MvCY,1428
|
|
6
|
+
rossum_mcp/tools/annotations.py,sha256=bzi6AuJDIrKEx-xqjW0WwHSygDTWpVoqAuUTPsTZJeQ,7532
|
|
7
|
+
rossum_mcp/tools/base.py,sha256=b_XIytigoU9p244kA1HhCuqUbah36RFdtQMMxQpDA40,2243
|
|
8
|
+
rossum_mcp/tools/catalog.py,sha256=nCgAJPlWQqI684qGO0iZc-ncw1n0YlJbF3ZeSaU0xSs,8002
|
|
9
|
+
rossum_mcp/tools/discovery.py,sha256=coZyzrEDN5CwaglobFQlSPRql69c6mcqjmNz6tulkBU,1288
|
|
10
|
+
rossum_mcp/tools/document_relations.py,sha256=7-mdRyRXXZRtRsL_ntZpfpWbMVYS5NUKW6yya4AzmNQ,2169
|
|
11
|
+
rossum_mcp/tools/email_templates.py,sha256=euAxDml6LY3BbElCPwHkHkvcyCGz6wjtg4HvgYzcuto,4649
|
|
12
|
+
rossum_mcp/tools/engines.py,sha256=6Q_gmATzb4eOwSjCmbsZAGm9unsogAfi2b-GyZ9Zyhc,6617
|
|
13
|
+
rossum_mcp/tools/hooks.py,sha256=v1yKA8TtWQiZQkY_LYUC5lm8WRX4qMSeIkI2Z8m1OK0,12830
|
|
14
|
+
rossum_mcp/tools/queues.py,sha256=QtGCt6pSMDmARoa9_L1fSzWjeMGFJSQLoW_sgSoBbwA,11063
|
|
15
|
+
rossum_mcp/tools/relations.py,sha256=ko1_v6meM2zCEmnhaDQt-T4uX_XJcRV4-X-Pxsu_prQ,2016
|
|
16
|
+
rossum_mcp/tools/rules.py,sha256=EAAVfdTMuOgvORpXxzgBox-P2MlvL3Vo6CcdDTzqQuM,2052
|
|
17
|
+
rossum_mcp/tools/schemas.py,sha256=9QTV24SaTrzKUPkzYuOjL1b9vmVVPJee-crbWWF7RRo,30230
|
|
18
|
+
rossum_mcp/tools/users.py,sha256=uVojYtUQs4KorQxgmmPRNJtExS4GbzyckZ1W4Y_0Qrk,3047
|
|
19
|
+
rossum_mcp/tools/workspaces.py,sha256=miV8XeJxdWQctx6RuYJXmnbNmNDL0SKcG-Senq6cWk0,3338
|
|
20
|
+
rossum_mcp-1.0.1.dist-info/licenses/LICENSE,sha256=5nqARgtmPvoIU-1o1az3i8Qi2WOHYIn03vD6haewvEI,1087
|
|
21
|
+
rossum_mcp-1.0.1.dist-info/METADATA,sha256=y1IqueqUlCsxaQcZ5BkB9gQKl-bMPhR6RSVAQGtlcCk,8991
|
|
22
|
+
rossum_mcp-1.0.1.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
23
|
+
rossum_mcp-1.0.1.dist-info/entry_points.txt,sha256=eth2XELk0QGw9-_H3QL8PQ0OE-RDfzipbSvRy0EUc2c,54
|
|
24
|
+
rossum_mcp-1.0.1.dist-info/top_level.txt,sha256=cziqyWFE89hFhCfsq60Fk6JcwslNtgP01WHIJ5plMEM,11
|
|
25
|
+
rossum_mcp-1.0.1.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Rossum MCP Server Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|