7 Commits

Author SHA1 Message Date
Shutong Wu 9db9068dff fix: improve asset search in lookup with term extraction
Previous: used full query as search pattern (e.g., *MeshRenderer 2D
lights URP*) — matched nothing. Now extracts individual terms, strips
stopwords, infers filter_type from keywords (shader→Shader, etc.),
runs multiple focused searches in parallel. Deduplicates results.
2026-03-16 02:15:04 -04:00
Shutong Wu d745c10acf feat: auto-search project assets for shader/material/texture queries
lookup now detects asset-related keywords (shader, material, texture,
sprite, lit, urp, etc.) and automatically includes manage_asset search
alongside doc queries. Runs in parallel, fails silently if no Unity
connection.
2026-03-16 01:56:17 -04:00
Shutong Wu f2c14e4279 fix: use comma-separated string for batch lookup queries
MCP clients serialize list params as strings. Changed queries
parameter from list[str] to comma-separated string for compatibility.
2026-03-16 01:23:17 -04:00
Shutong Wu 266be75449 feat: add lookup action to unity_docs for parallel doc search
Searches ScriptReference, Manual, and package docs concurrently
via asyncio.gather. Returns all hits with source labels.
5 new tests, 1007 total passing.
2026-03-16 01:13:04 -04:00
Shutong Wu 2ba16fb4d9 feat: add get_manual and get_package_doc actions to unity_docs
- get_manual: fetch Unity Manual pages by slug with version fallback
- get_package_doc: fetch package docs with redirect tracking (URP etc.)
- _ManualPageParser for article-style HTML (h1 title, h2/h3 sections)
- _fetch_url_full returns final URL after redirects
- 12 new tests, 1002 total passing
2026-03-16 01:08:43 -04:00
Shutong Wu 6c364be95e fix: update HTML parser for modern Unity docs format
Unity ScriptReference now uses h3 (not h2) for section titles,
"signature-CS sig-block" divs (not <pre> in signature),
"name lbl"/"desc" td classes (not "name-collumn"/"desc-collumn").
Parser now supports both old and new formats. 5 new tests added.
2026-03-16 00:42:13 -04:00
Shutong Wu e5b48f268c feat: add unity_docs Python-only doc fetcher MCP tool
Fetches + parses Unity ScriptReference HTML from docs.unity3d.com.
Version-aware URL construction, method/property URL fallback,
stdlib html.parser, 28 tests covering extraction and error handling.
2026-03-16 00:14:50 -04:00