oxml-mcp

v0.0.16
io.github.sebastienrousseau/oxml-mcp Checked 9 hours ago Published 25 days ago

XML tools for agents: XPath queries, inspection, and schema validation in Rust.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

xml_check

Check whether a document is well-formed, and report the line and column if it is not.

ParameterTypeDescription
xml *stringThe XML document

xml_format

Format an XML document with configurable indentation (spaces) and empty element style, or minify it. Use this to pretty-print or compact XML.

ParameterTypeDescription
xml *stringThe XML document
empty_elementsstring | nullEmpty element style: 'self-closing' (`<a/>`), 'spaced' (`<a />`), or 'expanded' (`<a></a>`). Default is 'self-closing'.
indentinteger | nullSpaces per indentation level (e.g. 2 or 4). Set to 0 or omit to minify without extra whitespace.

xml_inspect

Summarise a document's structure: element counts, depth, the element names present, and the namespaces it uses. Use this to understand a document's shape before querying it.

ParameterTypeDescription
xml *stringThe XML document

xml_query

Evaluate an XPath 1.0 expression against an XML document and return the matching values. Use this instead of reading a large document into context.

ParameterTypeDescription
xml *stringThe XML document
xpath *stringAn XPath 1.0 expression
namespacesobjectNamespace prefixes used in the expression, mapping prefix to URI, e.g. {"m": "urn:example"}. A prefix must be bound here; it is not read from the document. Call xml_inspect to see which namespaces a d…

xml_validate

Validate an XML document against an XML Schema (XSD). Returns every violation with the path to the element it concerns.

ParameterTypeDescription
xml *stringThe XML document
xsd *stringThe XML Schema