Skip to content

fw_ast_parse MCP tool

Parse a source file using Fw’s Fat-LTO Rust Tree-sitter C ABI across 12 grammars (rust, typescript, tsx, javascript, python, c, cpp, java, kotlin, go, json, bash).

{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fw_ast_parse",
"arguments": {
"lang": "<lang>",
"file": "<file>"
}
}
}
Name Type Required Description
lang string yes Grammar name (rust, typescript, tsx, python, c, cpp, java, json, bash).
file string yes Relative or absolute path to source file.
{
"type": "object",
"properties": {
"lang": {
"type": "string",
"description": "Grammar name (rust, typescript, tsx, python, c, cpp, java, json, bash)."
},
"file": {
"type": "string",
"description": "Relative or absolute path to source file."
}
},
"required": [
"lang",
"file"
]
}

Part of the fw MCP server. See the tool list and the agents guide.