Context
Currently, MapboxDocumentationResource serves the entire Mapbox documentation as a single resource. Split this into multiple, focused resources for better discoverability and more efficient context usage.
Motivation
Following Google's Developer Knowledge API approach, providing granular access to documentation helps AI assistants:
- Load only relevant documentation sections
- Reduce context window usage
- Discover specific resource types more easily
- Better understand the structure of available information
Proposed Implementation
Split resource://mapbox-documentation into:
-
resource://mapbox-api-reference - API documentation
- REST API endpoints
- Parameters and responses
- Rate limits and authentication
-
resource://mapbox-style-spec - Style specification
- Layer types and properties
- Expression syntax
- Style structure
-
resource://mapbox-sdk-docs - SDK documentation
- Mobile SDKs (iOS, Android)
- Web SDKs (mapbox-gl-js, mapbox-gl-native)
- Other SDKs
-
resource://mapbox-guides - How-to guides
- Tutorials
- Best practices
- Common patterns
-
resource://mapbox-examples - Code examples
- Working code snippets
- Use case demonstrations
Implementation approach:
- Parse llms.txt and categorize content
- Create separate resource classes for each category
- Register all resources in
resourceRegistry.ts
- Keep existing
mapbox-documentation for backward compatibility (deprecated)
Acceptance Criteria
Related
Part of enhanced documentation discovery initiative
Depends on: None (can be done in parallel with #68)
Context
Currently,
MapboxDocumentationResourceserves the entire Mapbox documentation as a single resource. Split this into multiple, focused resources for better discoverability and more efficient context usage.Motivation
Following Google's Developer Knowledge API approach, providing granular access to documentation helps AI assistants:
Proposed Implementation
Split
resource://mapbox-documentationinto:resource://mapbox-api-reference- API documentationresource://mapbox-style-spec- Style specificationresource://mapbox-sdk-docs- SDK documentationresource://mapbox-guides- How-to guidesresource://mapbox-examples- Code examplesImplementation approach:
resourceRegistry.tsmapbox-documentationfor backward compatibility (deprecated)Acceptance Criteria
Related
Part of enhanced documentation discovery initiative
Depends on: None (can be done in parallel with #68)