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).
Call it
Section titled “Call it”{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "fw_ast_parse", "arguments": { "lang": "<lang>", "file": "<file>" } }}Parameters
Section titled “Parameters”| 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. |
Input schema
Section titled “Input schema”{ "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" ]}Server
Section titled “Server”Part of the fw MCP server. See the tool list and the agents guide.