asset-aware-mcp

v1.5.1
asset-aware-mcp Checked 1 day ago Published 7 days ago

Citation-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.

ParameterTypeDescription
pdf_path *string
async_modeboolean
deskewboolean
extract_figuresboolean
marker_max_pages_per_chunkinteger
ocr_enabledboolean
ocr_languagestring
output_dir
page_ranges
rotate_pagesboolean

find_evidence_spans

Search citation-ready evidence spans with exact locator metadata. Returns span-level AssetRef JSON that can be passed to table_cite.

ParameterTypeDescription
doc_id *string
limitinteger
querystring
span_idstring
span_kinds

verify_citation_ref

Verify a span-level AssetRef against the persisted citation index.

ParameterTypeDescription
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.

ParameterTypeDescription
doc_id *string
citation_contract
citation_keystring
citation_metadata
include_verificationboolean
index_pathstring
limitinteger
output_formatstring
output_pathstring
overwriteboolean
querystring
span_idstring
span_kinds
update_indexboolean
wiki_rootstring

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…

ParameterTypeDescription
file_paths *array
async_modeboolean
deskewboolean
extract_figuresboolean
index_knowledge_graphboolean
marker_max_pages_per_chunkinteger
ocr_enabledboolean
ocr_languagestring
page_ranges
rotate_pagesboolean
use_markerboolean

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…

ParameterTypeDescription
asset_type *string
doc_id *string
asset_idstring
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.

ParameterTypeDescription
op *string
asset_idstring
asset_type
block_types
citation_keystring
doc_id
fuzzyboolean
include_childrenboolean
index_pathstring
limit
max_chars
max_depth
max_size
output_dirstring
overwriteboolean
path
query
response_formatstring
update_indexboolean
wiki_rootstring

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…

ParameterTypeDescription
op *string
block_types
citation_contract
citation_document
citation_keystring
citation_metadata
doc_id
expected_text_sha256
index_pathstring
limitinteger
output_formatstring
output_pathstring
overwriteboolean
querystring
ref
render_sizeinteger
span_idstring
span_kinds
text_limitinteger
text_offsetinteger
update_indexboolean
wiki_rootstring

convert_document

Consolidated document conversion entrypoint. Dispatches to the existing conversion tools so each source family keeps its established output-path containment policy.

ParameterTypeDescription
source *string
target_format *string
async_modeboolean
md_text
modestring
output_path
source_formatstring

ingest_docx

攝入 .docx / .doc 文件,轉換為 DFM (Docx-Flavored Markdown) 格式。 同一份來源檔若已攝入過,會直接回傳既有文件狀態(保留所有已儲存/已 commit 的編輯與目前 revision),不會重新解析;只有 reset=True 才會明確捨棄所有編輯、 從來源檔重建(有其他 agent 持有有效租約時拒絕,並先備份)。 將 docx 解析為中間表示 (IR),再轉換為可在 VS Code 中編輯的 DFM 格式。 支援複雜元素:合併表格、圖表、頁首頁尾、巨集、目錄等。 **支援舊版 .doc…

ParameterTypeDescription
file_path *string
resetboolean

get_docx_content

取得 docx 文件的可編輯 DFM 內容。 若指定 block_id,只回傳該區塊的內容;否則回傳完整 DFM。 Args: doc_id: 文件 ID(由 ingest_docx 產生) block_id: 可選,特定區塊 ID(如 p001, t001, h001) Returns: DFM 內容或特定區塊資訊

ParameterTypeDescription
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-…

ParameterTypeDescription
doc_id *string
dfm_content
forceboolean
from_mdboolean
output_path
revision_authorstring
revision_basestring
track_changesboolean

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…

ParameterTypeDescription
op *string
block_id
block_ids
dfm_content
doc_id
edits
file_path
forceboolean
from_mdboolean
holder
keep_leaseboolean
lease_id
lease_token
max_chars
output_path
request_id
resetboolean
revision_author
revision_basestring
strictboolean
track_changesboolean
ttl_seconds
waitboolean

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`.

ParameterTypeDescription
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.

ParameterTypeDescription
op *string
block_id
doc_id
registerboolean
save_dfmboolean
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")

ParameterTypeDescription
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

ParameterTypeDescription
active_onlyboolean

job

Consolidated job entrypoint over get/list/cancel. Existing job tools stay registered for backwards compatibility.

ParameterTypeDescription
op *string
active_onlyboolean
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.

ParameterTypeDescription
op *string
doc_ids
evidence_limitinteger
formatstring
include_referencesboolean
limitinteger
modestring
query
response_modestring
user_prompt
verify_referencesboolean

etl_profile

Consolidated ETL profile entrypoint. Existing profile tools stay registered for backwards compatibility.

ParameterTypeDescription
op *string
activateboolean
doc_id
json_path
name
pdf_path
sample_pagesinteger
sample_textstring

section

Consolidated section navigation entrypoint.

ParameterTypeDescription
doc_id *string
op *string
block_types
formatstring
fuzzyboolean
include_childrenboolean
limit
max_chars
max_depth
pathstring
querystring
section_idstring

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="比較三種藥物副作用…

ParameterTypeDescription
operation *string
doc_ids
hints
questionstring
template_namestring
title_overridestring

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] 表格標題…

ParameterTypeDescription
operation *string
artifact_onlyboolean
column_namestring
column_typestring
columns
default_value
enum_values
filenamestring
formatstring
intent
limitinteger
new_namestring
offsetinteger
requiredboolean
source_descriptionstring
table_idstring
titlestring

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)…

ParameterTypeDescription
operation *string
table_id *string
column_namestring
filters
include_coverageboolean
limitinteger
offsetinteger
row
row_idstring
row_indexinteger
rows
searchstring
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: 操作類åž…

ParameterTypeDescription
operation *string
table_id *string
citation_sha256string
column_namestring
confidence
limitinteger
notesstring
offsetinteger
ref_index
refs
row_idstring
row_indexinteger
text_limitinteger
text_offsetinteger

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")

ParameterTypeDescription
operation *string
draft_idstring
limitinteger
table_idstring
textstring

table_draft

📝 草稿工作流:建立、更新、新增資料、恢復、提交。 草稿會自動保存,即使對話中斷也能恢復。 適合長時間的表格建立流程。 Operations: - **create**: 建立草稿 - **update**: 更新草稿 - **add_rows**: 批次新增資料到草稿 - **resume**: 恢復草稿(Token-efficient) - **commit**: 草稿轉正式表格 - **list**: 列出草稿 - **delete**: 刪除草稿 Args: operation: 操作類型 draft_id: [大部分操作] 草稿 ID title: [create/update] 標題…

ParameterTypeDescription
operation *string
draft_idstring
extraction_plan
intent
notesstring
proposed_columns
rows
source_doc_ids
source_sections
titlestring

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: 每類來源的最大結果數…

ParameterTypeDescription
query *string
doc_ids
include_kgboolean
limitinteger