-
Notifications
You must be signed in to change notification settings - Fork 35
Add ability to run mcp server from ai-assistant plugin #385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ashu8912
wants to merge
30
commits into
main
Choose a base branch
from
add-mcp-server
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
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
aa9aa8e
to
3bd4cbb
Compare
10b04e6
to
1b93e58
Compare
2620b42
to
fe38c68
Compare
1ac2a45
to
c81b4a7
Compare
Signed-off-by: Ashu Ghildiyal <[email protected]> Signed-off-by: ashu8912 <[email protected]>
Signed-off-by: Ashu Ghildiyal <[email protected]> Signed-off-by: ashu8912 <[email protected]>
Signed-off-by: Ashu Ghildiyal <[email protected]> Signed-off-by: ashu8912 <[email protected]>
Signed-off-by: Ashu Ghildiyal <[email protected]> Signed-off-by: ashu8912 <[email protected]>
Signed-off-by: Ashu Ghildiyal <[email protected]> Signed-off-by: ashu8912 <[email protected]>
- Add MCPOutputFormatter for AI-powered formatting of MCP tool outputs - Add MCPOutputDisplay component for rendering formatted MCP results - Add MCPFormattedMessage component for displaying MCP messages in chat - Support multiple output types: table, metrics, list, graph, text, error - Include insights, warnings, and actionable items in formatted output - Add comprehensive argument processing and validation Signed-off-by: ashu8912 <[email protected]>
- Add PromptWidthContext to eliminate prop drilling for width state - Add PromptWidthProvider wrapper in AIPanelComponent - Enable components to access prompt width through usePromptWidth hook - Improve state management across the component hierarchy Signed-off-by: ashu8912 <[email protected]>
- Add InlineToolConfirmation component for embedded tool approval UI - Add InlineToolApprovalManager for managing tool confirmation state - Extend ToolApprovalDialog with inline approval capabilities - Add support for tool confirmation in Prompt interface - Enable seamless tool approval workflow within chat interface Signed-off-by: ashu8912 <[email protected]>
- Add ToolsDialog component for displaying and managing AI tools - Provide interface for viewing tool configurations and capabilities - Export ToolsDialog in assistant components index Signed-off-by: ashu8912 <[email protected]>
…gration - Add originalArgs storage in tool response metadata for retry capability - Integrate MCPOutputFormatter for AI-powered output formatting - Improve MCP tool argument mapping and validation - Add comprehensive error handling and formatting for tool failures - Include originalArgs in all formatted outputs (success, error, fallback) - Enable tool retry functionality through stored execution arguments Signed-off-by: ashu8912 <[email protected]>
- Add MCPFormattedMessage integration to ContentRenderer - Add onRetryTool prop propagation through component hierarchy - Integrate prompt width context usage in components - Add MCP tool retry functionality to chat interface - Update TextStreamContainer and AIChatContent with retry support Signed-off-by: ashu8912 <[email protected]>
- Add handleRetryTool function for re-executing failed tools - Integrate inline tool approval manager for seamless confirmations - Add comprehensive tool response processing and error handling - Implement suggestion parsing and display from AI responses - Add retry capability propagation to chat components - Improve user experience with better tool interaction workflow Signed-off-by: ashu8912 <[email protected]>
- Add comprehensive tool response processing and validation - Implement intelligent message preparation for tool contexts - Add specialized system prompts for tool response handling - Improve tool call alignment validation and error handling - Add content size management to prevent memory issues - Enhance user context building with conversation history and tool results - Support multiple provider compatibility (Azure, Anthropic, etc.) Signed-off-by: ashu8912 <[email protected]>
- Add MCPConfigEditorDialog with Monaco Editor integration - Provide syntax highlighting and auto-formatting for JSON configurations - Include tabbed interface with Configuration Editor and Schema Documentation - Add real-time validation with clear error messages - Support for environment variables in server configuration - Include comprehensive schema documentation with field descriptions - Add Load Example and Reset functionality for easy configuration management Signed-off-by: ashu8912 <[email protected]>
- Replace plain textarea with professional editor dialog - Add MCPServer interface support for environment variables - Update example configuration with modern MCP server setups - Add configuration summary with server count and status display - Integrate MCPConfigEditorDialog for better user experience - Show detailed server list with enabled/disabled status - Remove complex JSON validation in favor of editor dialog approach Signed-off-by: ashu8912 <[email protected]>
- Add isElectron utility function for environment detection - Enhance ToolConfigManager with configuration validation - Update AIInputSection with improved tool integration - Add electron client improvements for MCP communication - Include helper functions for better component integration Signed-off-by: ashu8912 <[email protected]>
Signed-off-by: ashu8912 <[email protected]>
Signed-off-by: ashu8912 <[email protected]>
Signed-off-by: ashu8912 <[email protected]>
Signed-off-by: ashu8912 <[email protected]>
The "white-space: pre-wrap" left lots of spacing around the text. Signed-off-by: Joaquim Rocha <[email protected]> Signed-off-by: ashu8912 <[email protected]>
Signed-off-by: Joaquim Rocha <[email protected]> Signed-off-by: ashu8912 <[email protected]>
So we don't show very long descriptions in the tools dialog. Signed-off-by: Joaquim Rocha <[email protected]> Signed-off-by: ashu8912 <[email protected]>
Signed-off-by: Joaquim Rocha <[email protected]> Signed-off-by: ashu8912 <[email protected]>
Signed-off-by: Joaquim Rocha <[email protected]> Signed-off-by: ashu8912 <[email protected]>
Signed-off-by: Joaquim Rocha <[email protected]> Signed-off-by: ashu8912 <[email protected]>
Signed-off-by: ashu8912 <[email protected]>
Signed-off-by: ashu8912 <[email protected]>
c81b4a7
to
628ad14
Compare
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.
No description provided.