这是indexloc提供的服务,不要输入任何密码
Skip to content

Add MCP integration and commands #18

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

Closed

Conversation

jasonkneen
Copy link

@jasonkneen jasonkneen commented Jul 21, 2025

Introduces Model Context Protocol (MCP) integration with configuration file support, new CLI commands for managing MCP servers, and updates to the agent to dynamically load and execute MCP tools. Updates documentation to describe MCP setup, configuration scopes, and usage. Adds example MCP config files and enhances UI/help output for MCP status and tools.

What does this PR do?

Describe your changes here.

Fixes #

Checklist

  • I tested my changes
  • I reviewed my own code

@jasonkneen jasonkneen mentioned this pull request Jul 21, 2025
@jasonkneen jasonkneen force-pushed the feature-pr-17-mcp-support branch 2 times, most recently from ff7a403 to 3841dd3 Compare July 21, 2025 20:22

export function MarkdownRenderer({ content }: { content: string }) {
return <Markdown>{content}</Markdown>;
// Simple text renderer to avoid ink-markdown compatibility issues
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of curiosity, what compatibility issues were there? Markdown would be nice down the road

…tion

add schema validation for resources, prompts, and roots
update MCP service to include serverId for default resources
add new MCP commands for resources, prompts, and roots
implement MCP server transport for stdio communication
update UI components to show additional MCP status information
add interactive commands for MCP features
document MCP features in MCP_FEATURES.md
@jasonkneen jasonkneen force-pushed the feature-pr-17-mcp-support branch from 3841dd3 to 3bcb04f Compare July 22, 2025 00:17
- Add prompts field to MCPServerStatus interface
- Add prompts management to MCPManager and MCPClient
- Update UI components to display prompt counts
- Implement error handling for prompt operations
- Validate command existence before spawning stdio transport
- Add detailed timeout error messages with actual timeout values
- Improve connection logging with success/error emojis
- Add test script for MCP connectivity testing
- Disable mcp-hooks by default in config
add tools capability to MCP interface and implement tool listing and calling functionality
add bash script to validate MCP server startup
update stdio transport to handle tools requests and return proper capabilities
@homanp
Copy link
Contributor

homanp commented Jul 22, 2025

Hey @jasonkneen mind taking a look at the conflicts?

@jasonkneen
Copy link
Author

Done!

@jasonkneen
Copy link
Author

bug -- fixing

@jasonkneen
Copy link
Author

This has now been resolved @homanp

Copy link
Contributor

@homanp homanp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work, there are a lot files here that shouldn't be in this pr, please remove them.
Also it would be cool to have slash commands /mcp where it list popular mcp tools like github, linear, jira etc. and trigger auth etc.

wdyt?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove

@jasonkneen jasonkneen force-pushed the feature-pr-17-mcp-support branch from 69b33fb to e6e64ab Compare July 25, 2025 02:51
@homanp
Copy link
Contributor

homanp commented Jul 25, 2025

Great, I will do some cleaning up and testing and then merge, appreciate the effort!

@homanp
Copy link
Contributor

homanp commented Jul 25, 2025

Big thanks for this, I made some changes and pushed in another branch. Closing this!

@homanp homanp closed this Jul 25, 2025
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.

4 participants