Skip to content

feat(mcp): enhance bit_component_details with URL, location status, and improved dependencies#9740

Merged
davidfirst merged 3 commits into
masterfrom
feat/enhance-component-details-api
Jun 6, 2025
Merged

feat(mcp): enhance bit_component_details with URL, location status, and improved dependencies#9740
davidfirst merged 3 commits into
masterfrom
feat/enhance-component-details-api

Conversation

@davidfirst
Copy link
Copy Markdown
Member

@davidfirst davidfirst commented Jun 6, 2025

This PR enhances the getCompDetails MCP tool with several improvements:

Changes Made

1. Added Component URL

  • Components now include a url field pointing to the component's web page
  • Uses ComponentUrl.toUrl() to generate the URL without version

2. Component Location Status

  • Added componentLocation field that indicates where the component exists:
    • "exists locally in the workspace at '{path}'" for local components
    • "installed as a package" for components installed via package manager
    • "a remote component" for components only available remotely

3. Improved Dependencies Format

  • Enhanced dependency information to include lifecycle, type, source, and component ID
  • Format: {package}@{version} (lifecycle: {lifecycle}, type: {type}, source: {source}, component-id: {id})

@davidfirst davidfirst changed the title feat: enhance component details API with URL, location status, and improved dependencies feat(mcp): enhance bit_component_details, location status, and improved dependencies Jun 6, 2025
@davidfirst davidfirst changed the title feat(mcp): enhance bit_component_details, location status, and improved dependencies feat(mcp): enhance bit_component_details with URL, location status, and improved dependencies Jun 6, 2025
@davidfirst davidfirst enabled auto-merge (squash) June 6, 2025 16:52
@davidfirst davidfirst merged commit 44a6fad into master Jun 6, 2025
10 checks passed
@davidfirst davidfirst deleted the feat/enhance-component-details-api branch June 6, 2025 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants