{"$schema":"https://wellknown.network/schemas/agent-record-v1.json","schemaVersion":"1","id":"ag_ns92c9xhzu3d","handle":"iflow-mcp-pwno-io-treesitter-mcp","url":"https://wellknown.network/agents/iflow-mcp-pwno-io-treesitter-mcp","links":{"self":"https://wellknown.network/agents/iflow-mcp-pwno-io-treesitter-mcp/record.json","html":"https://wellknown.network/agents/iflow-mcp-pwno-io-treesitter-mcp","markdown":"https://wellknown.network/agents/iflow-mcp-pwno-io-treesitter-mcp/record.md","api":"https://wellknown.network/api/v1/agents/iflow-mcp-pwno-io-treesitter-mcp","status":"https://wellknown.network/api/v1/agents/iflow-mcp-pwno-io-treesitter-mcp/status","claim":"https://wellknown.network/agents/iflow-mcp-pwno-io-treesitter-mcp/claim","claimApi":"https://wellknown.network/api/v1/claims","claimDescriptor":"https://wellknown.network/agents/iflow-mcp-pwno-io-treesitter-mcp/claim.json","badge":"https://wellknown.network/agents/iflow-mcp-pwno-io-treesitter-mcp/badge.svg","openapi":"https://wellknown.network/openapi.json","history":"https://wellknown.network/api/v1/agents/iflow-mcp-pwno-io-treesitter-mcp/history","tools":"https://wellknown.network/api/v1/agents/iflow-mcp-pwno-io-treesitter-mcp/tools"},"ard":{"identifier":"urn:air::server:iflow-mcp-pwno-io-treesitter-mcp","type":"application/mcp-server-card+json"},"kind":"mcp_server","declared":{"name":"iflow-mcp_pwno-io_treesitter-mcp","summary":"MCP server for code analysis using Tree-sitter","description":"# Tree-sitter MCP Server & CLI\n\nAn MCP server and CLI that uses Tree-sitter to parse and analyze code.\n\n## What it does\n\n- Parse files and get their AST\n- Extract functions and variables\n- Build call graphs\n- Find where functions/variables are used\n- Run custom Tree-sitter queries\n- List imports/includes\n- Extract source code for specific line/column ranges\n- Use as a standalone CLI or as an MCP server for Claude Desktop\n\n## Install\n\nRequires Python 3.10+.\n\n```bash\n# Install directly\nuv pip install treesitter-mcp\n\n# Or install a specific version\nuv pip install treesitter-mcp==2.1\n\n# Or clone and install\ngit clone https://github.com/pwno-io/treesitter-mcp.git\ncd treesitter-mcp\nuv pip install -e .\n```\n\nThis installs both `treesitter-mcp` and `ts-cli` entry points.\n\nOr run without installing:\n```bash\nuvx treesitter-mcp\n```\n\n## Running\n\n### As an MCP server (default)\nFor use with Claude Desktop or other MCP clients:\n```bash\ntreesitter-mcp\n```\n\nSee `docs/MCP_USAGE.md` for how to configure.\n\n### Standalone CLI (ts-cli)\nRun analysis directly from the terminal:\n```bash\nts-cli path/to/file.py\nts-cli path/to/file.py --ast --max-depth 2\nts-cli path/to/file.py --find-function main --include-source\nts-cli --supported-languages\n```\n\nUse `--output-file` to write results to JSON files instead of stdout.\n\n### HTTP mode\nFor testing or manual use:\n```bash\ntreesitter-mcp --http --port 8000 --host 127.0.0.1\n```\n\n### Limiting tools\nOnly expose certain tools with `--tools`:\n```bash\ntreesitter-mcp --http --port 8000 --tools treesitter_analyze_file,treesitter_get_ast\n```\n\nOr via URL query param: `http://127.0.0.1:8000?tools=treesitter_analyze_file,treesitter_get_ast`\n\n Tools available:\n - `treesitter_analyze_file` - Basic analysis\n - `treesitter_get_ast` - Full AST\n - `treesitter_get_call_graph` - Function calls\n - `treesitter_find_function` - Find function definitions\n - `treesitter_find_variable` - Find variables\n - `treesitter_get_source_for_range` - Extract source code for a range\n - `…","publisher":{"name":"pwno-io","url":null},"homepage":"https://github.com/pwno-io/treesitter-mcp","repository":"https://github.com/pwno-io/treesitter-mcp","version":"2.1","license":null,"protocols":["mcp"],"tags":["ast","cli","code-analysis","mcp","tree-sitter"],"pricing":null,"endpoints":[{"url":"pypi:iflow-mcp_pwno-io_treesitter-mcp","type":"package_pypi","auth":null,"probeable":false}],"skills":null,"tools":null,"extra":null,"attribution":{"kind":"pypi","name":"pypi","repoUrl":"pypi","summary":"pypi","version":"pypi","description":"pypi","homepageUrl":"pypi","publisherName":"pypi"}},"derived":{"capabilities":[{"slug":"dev.terminal","name":"Terminal & Shell","confidence":0.779,"provenance":"derived"},{"slug":"dev.version-control","name":"Version Control","confidence":0.745,"provenance":"derived"}],"categories":["dev"],"language":"en"},"observed":{"status":"unknown","statusReason":"Distributed as a package to run locally; no network endpoint to check.","lastOkAt":null,"lastProbedAt":null,"statusComputedAt":null,"reliability30d":null,"latestObservations":[],"tools":null,"package":{"name":"iflow-mcp_pwno-io_treesitter-mcp","registry":"pypi","observedAt":"2026-10-28T06:24:17.925Z","publishedAt":"2026-01-19T09:55:12.211684Z","latestVersion":"2.1"},"toolSurface":null,"endpointFacts":[]},"verification":{"claimed":false,"claimedAt":null,"proofs":[]},"provenance":{"sources":[{"source":"pypi","key":"iflow-mcp_pwno-io_treesitter-mcp","url":"https://pypi.org/project/iflow-mcp_pwno-io_treesitter-mcp/","firstSeenAt":"2026-09-09T20:25:14.789Z","fetchedAt":"2026-10-28T06:22:44.436Z","normalizedAt":"2026-10-28T06:22:44.436Z"}]},"firstSeenAt":"2026-09-09T20:25:14.789Z","updatedAt":"2026-10-28T06:24:17.925Z"}