asset-aware-mcp
v1.5.1Citation-ready PDF and DOCX workflows that export reusable agent assets and Foam/LightRAG wikis over MCP
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
parse_pdf_structure
Create a background job using the configured structured PDF extractor.
| Parameter | Type | Description |
|---|---|---|
pdf_path * | string | |
async_mode | boolean | |
deskew | boolean | |
extract_figures | boolean | |
marker_max_pages_per_chunk | integer | |
ocr_enabled | boolean | |
ocr_language | string | |
output_dir | ||
page_ranges | ||
rotate_pages | boolean |
find_evidence_spans
Search citation-ready evidence spans with exact locator metadata. Returns span-level AssetRef JSON that can be passed to table_cite.
| Parameter | Type | Description |
|---|---|---|
doc_id * | string | |
limit | integer | |
query | string | |
span_id | string | |
span_kinds |
verify_citation_ref
Verify a span-level AssetRef against the persisted citation index.
| Parameter | Type | Description |
|---|---|---|
ref * | object |
citation_bundle
Export citation-ready evidence spans as a verified bundle. Each entry carries AssetRef, exact quote/hash, locator metadata, context, conservative CRAAP scaffold, optional verification status, and Foam anchor metadata. Use output_format="foam" for a Foam-compatible evidence pack. Pass wiki_root to write the pack and optionally update an index note.
| Parameter | Type | Description |
|---|---|---|
doc_id * | string | |
citation_contract | ||
citation_key | string | |
citation_metadata | ||
include_verification | boolean | |
index_path | string | |
limit | integer | |
output_format | string | |
output_path | string | |
overwrite | boolean | |
query | string | |
span_id | string | |
span_kinds | ||
update_index | boolean | |
wiki_root | string |
ingest_documents
Process PDF files and create Document Manifests. ETL Pipeline: 1. Extract text (to markdown) and images 2. Generate structured Document Manifest 3. Index in LightRAG (if enabled) Args: file_paths: List of absolute paths to PDF files async_mode: Kept for backwards compatibility. PDF ingestion is routed to a background job from the MCP tool layer to keep stdio clients responsive. use_marker: Backwards-compatible flag that requests the configured structured extractor. The active packaged s…
| Parameter | Type | Description |
|---|---|---|
file_paths * | array | |
async_mode | boolean | |
deskew | boolean | |
extract_figures | boolean | |
index_knowledge_graph | boolean | |
marker_max_pages_per_chunk | integer | |
ocr_enabled | boolean | |
ocr_language | string | |
page_ranges | ||
rotate_pages | boolean | |
use_marker | boolean |
list_documents
List all processed documents with summaries. Returns: List of documents with doc_id, title, and asset counts
fetch_document_asset
Fetch specific content from a document with precision. Asset Types: - "table": Returns table as markdown (with page number) - "figure": Returns image as base64 with page number for verification - "section": Returns section text content - "full_text": Returns entire document as markdown Args: doc_id: Document identifier asset_type: One of "table", "figure", "section", "full_text" asset_id: Asset ID from manifest (e.g., "tab_1", "fig_1_1", "sec_methods") Use "full" for full_text type max_size: Maximum image dimensio…
| Parameter | Type | Description |
|---|---|---|
asset_type * | string | |
doc_id * | string | |
asset_id | string | |
max_chars | ||
max_size |
document
Document operations including versioned native file assets. Operation -> required parameters: - ``auto``: exactly one of ``file_paths`` (ingest) or ``doc_id`` (readiness). - ``ingest`` / ``import``: ``file_paths``. - ``preflight``: ``pdf_path`` only; ``file_paths`` is rejected. - ``inspect`` / ``prepare_ai`` / audit and retrieval operations: ``doc_id``. - ``export_assets`` / ``agent_assets``: ``doc_id``; ``output_dir`` is optional. - ``native``: ``native_request`` with its own op (contract/schema/register/create/ list/inspect/read_cell/read_docx/read_docx_blo…
document_asset
Consolidated document asset and section entrypoint.
| Parameter | Type | Description |
|---|---|---|
op * | string | |
asset_id | string | |
asset_type | ||
block_types | ||
citation_key | string | |
doc_id | ||
fuzzy | boolean | |
include_children | boolean | |
index_path | string | |
limit | ||
max_chars | ||
max_depth | ||
max_size | ||
output_dir | string | |
overwrite | boolean | |
path | ||
query | ||
response_format | string | |
update_index | boolean | |
wiki_root | string |
evidence
Evidence operations; contract describes citation formats, bundle applies them. citation_contract accepts a preset selector or named-field inline/reference templates; citation_metadata supplies bibliographic fields, never locators. csl_contract returns the complete hash-paged CSL document schema. render_citations accepts citation_document for document-context APA/Chicago/ Vancouver processing; read every text page at one text_sha256. Optional wiki_root exports an immutable citation snapshot with exact native sources. CSL text_limit is 1..8000 characters; stop paging…
| Parameter | Type | Description |
|---|---|---|
op * | string | |
block_types | ||
citation_contract | ||
citation_document | ||
citation_key | string | |
citation_metadata | ||
doc_id | ||
expected_text_sha256 | ||
index_path | string | |
limit | integer | |
output_format | string | |
output_path | string | |
overwrite | boolean | |
query | string | |
ref | ||
render_size | integer | |
span_id | string | |
span_kinds | ||
text_limit | integer | |
text_offset | integer | |
update_index | boolean | |
wiki_root | string |
convert_document
Consolidated document conversion entrypoint. Dispatches to the existing conversion tools so each source family keeps its established output-path containment policy.
| Parameter | Type | Description |
|---|---|---|
source * | string | |
target_format * | string | |
async_mode | boolean | |
md_text | ||
mode | string | |
output_path | ||
source_format | string |
ingest_docx
攝入 .docx / .doc 文件,轉換為 DFM (Docx-Flavored Markdown) 格式。 同一份來源檔若已攝入過,會直接回傳既有文件狀態(保留所有已儲存/已 commit 的編輯與目前 revision),不會重新解析;只有 reset=True 才會明確捨棄所有編輯、 從來源檔重建(有其他 agent 持有有效租約時拒絕,並先備份)。 將 docx 解析為中間表示 (IR),再轉換為可在 VS Code 中編輯的 DFM 格式。 支援複雜元素:合併表格、圖表、頁首頁尾、巨集、目錄等。 **支援舊版 .doc…
| Parameter | Type | Description |
|---|---|---|
file_path * | string | |
reset | boolean |
get_docx_content
取得 docx 文件的可編輯 DFM 內容。 若指定 block_id,只回傳該區塊的內容;否則回傳完整 DFM。 Args: doc_id: 文件 ID(由 ingest_docx 產生) block_id: 可選,特定區塊 ID(如 p001, t001, h001) Returns: DFM 內容或特定區塊資訊
| Parameter | Type | Description |
|---|---|---|
doc_id * | string | |
block_id | ||
max_chars |
save_docx
將編輯後的內容存回 .docx 檔案。 支援兩種模式: - DFM 模式(預設):傳入 dfm_content(.dfm 格式全文) - MD 模式(from_md=True):從磁碟讀取 content.md + format.yaml 回寫流程: 1. 解析 DFM/MD → 提取修改,套用到目前 IR(ir.json) 2. 與 ingest 時的不可變基準(baseline_ir.json)比對,取得「自 ingest 以來」所有變更區塊(累積回寫) 3. 以 original.docx 為底,只改寫這些區塊;未編輯區塊與其他 package parts 保持位元組不變 4. Post-…
| Parameter | Type | Description |
|---|---|---|
doc_id * | string | |
dfm_content | ||
force | boolean | |
from_md | boolean | |
output_path | ||
revision_author | string | |
revision_base | string | |
track_changes | boolean |
docx
Consolidated DOCX/DFM entrypoint. The legacy DOCX tools remain registered and keep their original parameters and output formats. This wrapper adds an operation-based facade. Operation -> parameters: - ``ingest``: file_path. An already ingested file returns its existing state (edits kept, current revision); reset=true discards every edit. - ``get``: doc_id (block_id, max_chars optional). - ``save``: doc_id, dfm_content (or from_md), output_path, force, track_changes, revision_author (default "Asset-Aware MCP"), revision_base. A DFM based on an ol…
| Parameter | Type | Description |
|---|---|---|
op * | string | |
block_id | ||
block_ids | ||
dfm_content | ||
doc_id | ||
edits | ||
file_path | ||
force | boolean | |
from_md | boolean | |
holder | ||
keep_lease | boolean | |
lease_id | ||
lease_token | ||
max_chars | ||
output_path | ||
request_id | ||
reset | boolean | |
revision_author | ||
revision_base | string | |
strict | boolean | |
track_changes | boolean | |
ttl_seconds | ||
wait | boolean |
docx_table_edit_plan
Plan a DOCX table write-back before applying structural changes. The current DFM bridge is safest for same-shape cell text updates. This plan separates safe cell updates from row/column/header structural changes so the caller can review risk before `docx_table_from_context`.
| Parameter | Type | Description |
|---|---|---|
block_id * | string | |
doc_id * | string | |
table_id | ||
target_columns | ||
target_rows |
docx_table
Consolidated DOCX table bridge entrypoint. Existing docx_table_* tools remain available for clients that rely on their names or generated allow-lists.
| Parameter | Type | Description |
|---|---|---|
op * | string | |
block_id | ||
doc_id | ||
register | boolean | |
save_dfm | boolean | |
table_id | ||
target_columns | ||
target_rows |
get_job_status
Get the status of an ETL job. Use this to check progress of document ingestion started with `ingest_documents`. Args: job_id: Job ID returned from `ingest_documents` Returns: Job status including progress, phase, and result (if completed) Example: get_job_status("job_20251226_143000_abc12345")
| Parameter | Type | Description |
|---|---|---|
job_id * | string |
list_jobs
List ETL jobs. Args: active_only: If True, only show pending/processing jobs Returns: List of jobs with status and progress
| Parameter | Type | Description |
|---|---|---|
active_only | boolean |
job
Consolidated job entrypoint over get/list/cancel. Existing job tools stay registered for backwards compatibility.
| Parameter | Type | Description |
|---|---|---|
op * | string | |
active_only | boolean | |
job_id |
knowledge
Consolidated knowledge-graph entrypoint. Existing consult/export tools remain registered and keep their separate contracts for clients that prefer explicit tool names.
| Parameter | Type | Description |
|---|---|---|
op * | string | |
doc_ids | ||
evidence_limit | integer | |
format | string | |
include_references | boolean | |
limit | integer | |
mode | string | |
query | ||
response_mode | string | |
user_prompt | ||
verify_references | boolean |
etl_profile
Consolidated ETL profile entrypoint. Existing profile tools stay registered for backwards compatibility.
| Parameter | Type | Description |
|---|---|---|
op * | string | |
activate | boolean | |
doc_id | ||
json_path | ||
name | ||
pdf_path | ||
sample_pages | integer | |
sample_text | string |
section
Consolidated section navigation entrypoint.
| Parameter | Type | Description |
|---|---|---|
doc_id * | string | |
op * | string | |
block_types | ||
format | string | |
fuzzy | boolean | |
include_children | boolean | |
limit | ||
max_chars | ||
max_depth | ||
path | string | |
query | string | |
section_id | string |
plan_table
📋 表格規劃工具:Schema 設計、模板查詢、模板建表。 Operations: - **schema**: 根據問題自動規劃表格結構 - **templates**: 列出內建表格模板 - **from_template**: 從模板快速建立表格 Args: operation: 操作類型 question: [schema] 使用者問題 doc_ids: [schema] 相關文件 ID hints: [schema] 結構提示 template_name: [from_template] 模板名稱 title_override: [from_template] 自訂標題 Examples: plan_table("schema", question="比較三種藥物副作用…
| Parameter | Type | Description |
|---|---|---|
operation * | string | |
doc_ids | ||
hints | ||
question | string | |
template_name | string | |
title_override | string |
table_manage
📊 表格管理工具:建立、刪除、列表、預覽、渲染、Schema 演進。 Operations: - **create**: 建立新表格 - **delete**: 刪除表格 - **list**: 列出所有表格 - **preview**: Markdown 預覽 - **resume**: 恢復工作(Token-efficient) - **render**: 渲染為 Excel/Markdown - **add_column**: 新增欄位 - **remove_column**: 移除欄位 - **rename_column**: 重新命名欄位 Args: operation: 操作類型 intent: [create] comparison / citation / summary title: [create] 表格標題…
| Parameter | Type | Description |
|---|---|---|
operation * | string | |
artifact_only | boolean | |
column_name | string | |
column_type | string | |
columns | ||
default_value | ||
enum_values | ||
filename | string | |
format | string | |
intent | ||
limit | integer | |
new_name | string | |
offset | integer | |
required | boolean | |
source_description | string | |
table_id | string | |
title | string |
table_data
📝 表格資料操作:新增/取得/更新/刪除 列 & 儲存格。 Operations: - **add_rows**: 批次新增資料列 - **get_row**: 取得單列(含引用) - **update_row**: 整列更新 - **delete_row**: 刪除列 - **get_cell**: 取得單格(含引用) - **update_cell**: 更新單格 - **clear_cell**: 清除單格 Args: operation: 操作類型 table_id: 表格 ID rows: [add_rows] 資料列列表 row: [update_row] 新的列資料 row_index: [get/update/delete_row, cell ops] 列索引 (0-based)…
| Parameter | Type | Description |
|---|---|---|
operation * | string | |
table_id * | string | |
column_name | string | |
filters | ||
include_coverage | boolean | |
limit | integer | |
offset | integer | |
row | ||
row_id | string | |
row_index | integer | |
rows | ||
search | string | |
selected_columns | ||
value |
table_cite
📎 表格引用管理:為儲存格附加、查詢、移除來源引用。 引用是「平行附加層」,不改變表格資料結構。 每個引用用 AssetRef 指向具體來源(PDF section、URL、使用者輸入等)。 Operations: - **add**: 新增引用到儲存格 - **get**: 查詢引用摘要(cell / row / table);完整引用用 read - **read**: 完整 cell/value/citation JSON 分頁,不截斷 canonical quote/locator - **remove**: 移除引用 - **cell_history**: 查看儲存格變更歷史 Args: operation: 操作類åž…
| Parameter | Type | Description |
|---|---|---|
operation * | string | |
table_id * | string | |
citation_sha256 | string | |
column_name | string | |
confidence | ||
limit | integer | |
notes | string | |
offset | integer | |
ref_index | ||
refs | ||
row_id | string | |
row_index | integer | |
text_limit | integer | |
text_offset | integer |
table_history
📜 表格歷史與統計:變更紀錄、Token 估算。 Operations: - **changes**: 查看表格變更歷史 - **tokens**: 估算 Token 消耗 Args: operation: 操作類型 table_id: 表格 ID [changes, tokens] limit: [changes] 最近 N 筆 draft_id: [tokens] 草稿 ID(可選) text: [tokens] 任意文字(可選) Examples: table_history("changes", "tbl_xxx") table_history("tokens", "tbl_xxx")
| Parameter | Type | Description |
|---|---|---|
operation * | string | |
draft_id | string | |
limit | integer | |
table_id | string | |
text | string |
table_draft
📝 草稿工作流:建立、更新、新增資料、恢復、提交。 草稿會自動保存,即使對話中斷也能恢復。 適合長時間的表格建立流程。 Operations: - **create**: 建立草稿 - **update**: 更新草稿 - **add_rows**: 批次新增資料到草稿 - **resume**: 恢復草稿(Token-efficient) - **commit**: 草稿轉正式表格 - **list**: 列出草稿 - **delete**: 刪除草稿 Args: operation: 操作類型 draft_id: [大部分操作] 草稿 ID title: [create/update] 標題…
| Parameter | Type | Description |
|---|---|---|
operation * | string | |
draft_id | string | |
extraction_plan | ||
intent | ||
notes | string | |
proposed_columns | ||
rows | ||
source_doc_ids | ||
source_sections | ||
title | string |
discover_sources
🔍 資料來源探索:跨文件搜尋可用於表格的資料來源。 整合 Section、Figure、Table、Knowledge Graph 多個資料庫, 返回統一的 AssetRef 格式結果。短 evidence span 會保持 canonical;過長 span 僅回傳 discovery-only ``span_preview``,完整可驗證 AssetRef 必須從 persisted citation / agent-asset bundle 取得。 Args: query: 搜尋關鍵字 doc_ids: 限定搜尋的文件(不指定則搜尋所有文件) include_kg: 是否包含知識圖譜搜尋 limit: 每類來源的最大結果數…
| Parameter | Type | Description |
|---|---|---|
query * | string | |
doc_ids | ||
include_kg | boolean | |
limit | integer |