Skip to content
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

feat: Jan Tool Use - MCP frontend implementation #4860

Merged
merged 7 commits into from
Apr 6, 2025

Conversation

louis-menlo
Copy link
Contributor

@louis-menlo louis-menlo commented Mar 30, 2025

Implement Jan Tool Use UI

Summary

This PR introduces tool usage in Jan's frontend, allowing chat/completions requests to include tools. The assistant can now output tool call instructions and follow up with appropriate requests.

Changes

  • Include tools in chat/completions requests
  • Group tool use messages with assistant messages
  • Available tools information
  • Add a shortcut to quickly access the MCP servers config file

Next Steps

  • Improve UI/UX for tool use messages
  • Implement shortcut navigation for MCP server configuration

Testing

  1. Start Jan and open the chat interface.
  2. Trigger a request that requires tool usage (e.g., a query that invokes a specific tool).
  3. Verify that the tool call is executed correctly and follow-up requests are made.

Notes

  • The UI for tool use grouping is still a work in progress.
  • Navigation shortcut implementation is pending.

Thoughts

  • Should we deprecate chat/completions entities and use the OpenAI client SDK directly / or Vercel AI SDK?

Screenshots

CleanShot 2025-03-30 at 17 14 51
CleanShot 2025-03-30 at 17 24 19

mcp_config.json

Issues

#4824

@github-actions github-actions bot added the type: feature request A new feature label Mar 30, 2025
@louis-menlo louis-menlo force-pushed the feat/mcp-jan-frontend branch from a1dd056 to 6e7d086 Compare March 30, 2025 15:57
@louis-menlo louis-menlo force-pushed the feat/mcp-jan-frontend branch from 6e7d086 to 56b5d50 Compare March 30, 2025 17:24
@louis-menlo louis-menlo force-pushed the feat/mcp-jan-backend branch from 279546b to e8d9911 Compare March 31, 2025 04:45
@louis-menlo louis-menlo force-pushed the feat/mcp-jan-frontend branch from 56b5d50 to 5524622 Compare March 31, 2025 04:45
Base automatically changed from feat/mcp-jan-backend to feat/tauri-build-option March 31, 2025 12:40
@louis-menlo louis-menlo force-pushed the feat/mcp-jan-frontend branch from 5524622 to 8530820 Compare March 31, 2025 12:43
@louis-menlo
Copy link
Contributor Author

This PR is getting big - Merge back to the root PR, upcoming updates on new PRs

@louis-menlo louis-menlo marked this pull request as ready for review April 6, 2025 19:23
@louis-menlo louis-menlo merged commit 7e2498c into feat/tauri-build-option Apr 6, 2025
1 check passed
@louis-menlo louis-menlo deleted the feat/mcp-jan-frontend branch April 6, 2025 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant