Spaces:
Paused
Paused
reportflow-mcp bot commited on
Commit ·
be9d890
1
Parent(s): 0c18195
Sync Space from reportflow-mcp@78a5a5e
Browse files
README.md
CHANGED
|
@@ -8,6 +8,13 @@ sdk_version: 5.50.0
|
|
| 8 |
python_version: "3.12"
|
| 9 |
app_file: app.py
|
| 10 |
pinned: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
---
|
| 12 |
|
| 13 |
<!-- Source of truth: hf/ in re-port-flow/reportflow-mcp.
|
|
@@ -16,10 +23,12 @@ pinned: false
|
|
| 16 |
# Re:port Flow
|
| 17 |
|
| 18 |
This Space is the [reportflow](https://huggingface.co/reportflow) organization
|
| 19 |
-
card and a public-template browser
|
| 20 |
-
no API keys. After you sign in on the
|
| 21 |
-
**your** designs and render a filled document.
|
| 22 |
-
product MCP
|
|
|
|
|
|
|
| 23 |
|
| 24 |
Business PDFs — invoices, quotations, delivery notes, statements — generated
|
| 25 |
from reusable templates, by an AI agent, in one turn.
|
|
@@ -61,8 +70,21 @@ config nests under a `config` key rather than taking flat arguments.
|
|
| 61 |
|
| 62 |
## This Space as a Hub MCP server
|
| 63 |
|
| 64 |
-
|
| 65 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
|
| 67 |
`https://reportflow-readme.hf.space/gradio_api/mcp/`
|
| 68 |
|
|
|
|
| 8 |
python_version: "3.12"
|
| 9 |
app_file: app.py
|
| 10 |
pinned: false
|
| 11 |
+
short_description: Invoice/請求書 templates. Hub MCP is read-only.
|
| 12 |
+
tags:
|
| 13 |
+
- mcp-server
|
| 14 |
+
- invoice
|
| 15 |
+
- quotation
|
| 16 |
+
- pdf
|
| 17 |
+
- business
|
| 18 |
---
|
| 19 |
|
| 20 |
<!-- Source of truth: hf/ in re-port-flow/reportflow-mcp.
|
|
|
|
| 23 |
# Re:port Flow
|
| 24 |
|
| 25 |
This Space is the [reportflow](https://huggingface.co/reportflow) organization
|
| 26 |
+
card and a public-template browser (invoices, quotations, 請求書, 見積書).
|
| 27 |
+
Hub MCP tools stay read-only and store no API keys. After you sign in on the
|
| 28 |
+
App tab, the accordion can list **your** designs and render a filled document.
|
| 29 |
+
Agents that should fill a PDF still use the **product** MCP and the
|
| 30 |
+
[Agent Skill](https://github.com/re-port-flow/reportflow-mcp/blob/main/skills/re-port-flow/SKILL.md)
|
| 31 |
+
— not this Space's three Hub tools.
|
| 32 |
|
| 33 |
Business PDFs — invoices, quotations, delivery notes, statements — generated
|
| 34 |
from reusable templates, by an AI agent, in one turn.
|
|
|
|
| 70 |
|
| 71 |
## This Space as a Hub MCP server
|
| 72 |
|
| 73 |
+
The Hub catalog of MCP tools is **Gradio Spaces that show an MCP badge**.
|
| 74 |
+
It does not list `https://mcp.re-port-flow.com/mcp`. That product endpoint
|
| 75 |
+
is added as a custom connector (or a header on `MCPClient`), not via the
|
| 76 |
+
badge.
|
| 77 |
+
|
| 78 |
+
Official add path ([Spaces as MCP servers](https://huggingface.co/docs/hub/spaces-mcp-servers)):
|
| 79 |
+
|
| 80 |
+
1. Open this Space (`reportflow/README`) and use the grey **MCP** badge, or
|
| 81 |
+
browse MCP-compatible Spaces.
|
| 82 |
+
2. Choose **Add to MCP tools** and confirm.
|
| 83 |
+
3. The Space appears under **Hub MCP settings** → **Spaces Tools**
|
| 84 |
+
(`https://huggingface.co/settings/mcp`). A Hugging Face token with
|
| 85 |
+
**READ** permission is required to call Hub MCP tools.
|
| 86 |
+
|
| 87 |
+
Gradio is launched with `mcp_server=True`. The same schema is also at:
|
| 88 |
|
| 89 |
`https://reportflow-readme.hf.space/gradio_api/mcp/`
|
| 90 |
|
app.py
CHANGED
|
@@ -155,9 +155,9 @@ def search_gallery_templates(
|
|
| 155 |
category: str = "",
|
| 156 |
sort: str = "popular",
|
| 157 |
) -> str:
|
| 158 |
-
"""Search
|
| 159 |
|
| 160 |
-
Does not copy a template or render a filled
|
| 161 |
must sign up and use the product MCP server in the returned mcpUrl.
|
| 162 |
|
| 163 |
Args:
|
|
@@ -178,10 +178,10 @@ def search_gallery_templates(
|
|
| 178 |
|
| 179 |
|
| 180 |
def get_gallery_template(slug: str) -> str:
|
| 181 |
-
"""Get one public template by slug (read-only
|
| 182 |
|
| 183 |
The slug is not a workspace designId. This Space never copies a template
|
| 184 |
-
or renders a filled
|
| 185 |
|
| 186 |
Args:
|
| 187 |
slug: Template slug from search_gallery_templates.
|
|
@@ -197,10 +197,10 @@ def get_gallery_template(slug: str) -> str:
|
|
| 197 |
|
| 198 |
|
| 199 |
def get_register_url() -> str:
|
| 200 |
-
"""Return the
|
| 201 |
|
| 202 |
-
Use this when the user wants
|
| 203 |
-
|
| 204 |
"""
|
| 205 |
return json.dumps(mcp_register(), ensure_ascii=False)
|
| 206 |
|
|
|
|
| 155 |
category: str = "",
|
| 156 |
sort: str = "popular",
|
| 157 |
) -> str:
|
| 158 |
+
"""Search public invoice / quotation / 請求書 / 見積 templates (read-only).
|
| 159 |
|
| 160 |
+
Does not copy a template or render a filled PDF. For those, the caller
|
| 161 |
must sign up and use the product MCP server in the returned mcpUrl.
|
| 162 |
|
| 163 |
Args:
|
|
|
|
| 178 |
|
| 179 |
|
| 180 |
def get_gallery_template(slug: str) -> str:
|
| 181 |
+
"""Get one public invoice/quotation/請求書 template by slug (read-only).
|
| 182 |
|
| 183 |
The slug is not a workspace designId. This Space never copies a template
|
| 184 |
+
or renders a filled PDF.
|
| 185 |
|
| 186 |
Args:
|
| 187 |
slug: Template slug from search_gallery_templates.
|
|
|
|
| 197 |
|
| 198 |
|
| 199 |
def get_register_url() -> str:
|
| 200 |
+
"""Return the signup URL and the product MCP that generates invoice PDFs.
|
| 201 |
|
| 202 |
+
Use this when the user wants a filled 請求書 or other business PDF.
|
| 203 |
+
This Space's Hub tools cannot generate.
|
| 204 |
"""
|
| 205 |
return json.dumps(mcp_register(), ensure_ascii=False)
|
| 206 |
|