Interacting with the local Claude agent today, I've learned that it doesn't fully comprehend local computer filepaths, as it seems aware only if its internal mounted storage. The MCP script appears to be effectively mounting this storage for internal consumption in the SLM (Small Language Model).
Here's how Claude explains the filepath issue:
"Read the Relax NG schema file from the absolute path
That path isn't accessible from within my container. The issue is that my bash_tool runs inside a Linux container that doesn't have direct access to your macOS filesystem at /Users/....
For the digitxml-mcp to work effectively with schemas, you'd likely need to:
Mount the schemas directory into the container so it's accessible (similar to how the data directory is presumably mounted)
Add MCP functions specifically for schema operations, such as:
read_schema() - to read and display schema files
validate_against_schema() - to validate the current document
list_schema_constraints() - to extract constraints from a schema
Would you be able to either:
Share the contents of the recipe.rnc file directly in the chat, or
Mount the schemas directory in a way that's accessible to the digitxml-mcp tool?
This would help identify what additional MCP tooling would be most useful for working with Relax NG schemas!"
Since it's a little stymied here, we should revise the MCP to mount paths to schemas and prompt it to apply jingtrang or saxon tools (which should work) to validate XML and also read and "contemplate" schemas.
Interacting with the local Claude agent today, I've learned that it doesn't fully comprehend local computer filepaths, as it seems aware only if its internal mounted storage. The MCP script appears to be effectively mounting this storage for internal consumption in the SLM (Small Language Model).
Here's how Claude explains the filepath issue:
"Read the Relax NG schema file from the absolute path
That path isn't accessible from within my container. The issue is that my bash_tool runs inside a Linux container that doesn't have direct access to your macOS filesystem at /Users/....
For the digitxml-mcp to work effectively with schemas, you'd likely need to:
Mount the schemas directory into the container so it's accessible (similar to how the data directory is presumably mounted)
Add MCP functions specifically for schema operations, such as:
read_schema() - to read and display schema files
validate_against_schema() - to validate the current document
list_schema_constraints() - to extract constraints from a schema
Would you be able to either:
Share the contents of the recipe.rnc file directly in the chat, or
Mount the schemas directory in a way that's accessible to the digitxml-mcp tool?
This would help identify what additional MCP tooling would be most useful for working with Relax NG schemas!"
Since it's a little stymied here, we should revise the MCP to mount paths to schemas and prompt it to apply jingtrang or saxon tools (which should work) to validate XML and also read and "contemplate" schemas.