feat(mcp): add prompts, resources, and LobeHub badge - #5
Merged
Merged
Conversation
…ace compliance - Add 3 MCP prompts leveraging runtime state: shuttle_overview, safe_command_check, node_context - Add 6 MCP resources exposing live data: nodes, node detail, security rules, sessions, pool status, command logs - Add LogRepo.list_by_node() for per-node command history queries - Add LobeHub MCP badge to README.md and README_CN.md - Shorten Docs badge text, reorder badges (MCP first) Made-with: Cursor
…d logs resources
- Rewrite prompts to leverage live system state (nodes, sessions,
security rules, connection pool) instead of static templates
- Add safe_command_check prompt for pre-execution security assessment
- Add shuttle://pool-status and shuttle://logs/{node}/recent resources
- Include connection pool state in node detail resource
- Bump version to 0.3.1
Made-with: Cursor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add 3 MCP Prompts powered by live runtime state:
shuttle_overview— full environment snapshot (nodes, sessions, security rules, pool)safe_command_check— pre-execution security rule assessmentnode_context— complete operational context for a specific node (config, session, rules, command history)Add 6 MCP Resources exposing structured context data:
shuttle://nodes— all configured nodesshuttle://nodes/{name}— node detail with connection pool stateshuttle://security-rules— rules grouped by levelshuttle://sessions— active sessions with cwd and bypass stateshuttle://pool-status— connection pool health and configshuttle://logs/{node}/recent— recent command history per nodeAdd LobeHub MCP Badge to README for marketplace ownership claim
Add
LogRepo.list_by_node()for per-node command history queriesBump version to 0.3.1
Motivation
Meet LobeHub MCP Marketplace quality standards:
Test plan
pytest -x -q)Made with Cursor