feat(chat): auto-create agent on connection install with passport card UI#2857
Open
feat(chat): auto-create agent on connection install with passport card UI#2857
Conversation
…d UI When a user installs a new MCP connection, automatically open Decopilot chat to create a specialized agent for that connection. Display the created agent as a stylized "passport card" in the chat with 3D tilt effects, holographic gradients, and guilloche patterns. Includes fixes for race condition in app context lifecycle, explicit handling of denied tool calls, and input sanitization for prompt injection mitigation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
🧪 BenchmarkShould we run the Virtual MCP strategy benchmark for this PR? React with 👍 to run the benchmark.
Benchmark will run on the next push after you react. |
Contributor
Release OptionsSuggested: Minor ( React with an emoji to override the release type:
Current version:
|
DuckDBEngine.isAvailable() only checked if the module could be imported, not if an instance could actually be created. In CI environments with constrained thread limits, DuckDB loads but fails with "Number of threads must be positive!" — causing unhandled rejections that leak into other test shards. Now isAvailable() creates and tears down a trial instance, so createMonitoringEngine falls back to NoopEngine when DuckDB can't actually run. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Fix type error where `instance.connect()` was not awaited in `isAvailable()`. Also update pipeline.integration.test.ts to use `DuckDBEngine.isAvailable()` instead of a bare require check, so the test correctly skips in CI where DuckDB loads but cannot instantiate. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
What is this contribution about?
When a user installs a new MCP connection, automatically opens Decopilot chat and triggers creation of a specialized agent for that connection. The newly created agent is displayed in the chat as a stylized "passport card" with 3D tilt effects, holographic gradients, guilloche patterns, and a certification stamp.
Key changes:
connections.tsx): On successful connection install, injects app context with agent-creation instructions into Decopilot and fires a new chat threadagent-passport-card.tsx): New component renderingCOLLECTION_VIRTUAL_MCP_CREATEresults as a passport-styled card with interactive hover effectsassistant.tsx): RoutesCOLLECTION_VIRTUAL_MCP_CREATEtool calls to the passport card rendererScreenshots/Demonstration
How to Test
bun run devReview Checklist
Summary by cubic
Automatically creates a specialized agent when a new MCP connection is installed and opens Decopilot chat to show it as a passport-style card. Also hardens DuckDB availability checks and test skips to stabilize CI monitoring.
New Features
AgentPassportCard(3D tilt, holographic gradients, guilloche, certification stamp) and a “See agent” link.COLLECTION_VIRTUAL_MCP_CREATEtool calls to the passport card renderer; shows avatar, name, description, and linked connections.Bug Fixes
DuckDBEngine.isAvailable()now instantiates, connects, and disconnects via@duckdb/node-api, and tests use this check to skip in CI; falls back when unavailable.Written for commit 3907563. Summary will update on new commits.