feat: add public feature request chat app#2405
Open
viktormarinho wants to merge 1 commit intomainfrom
Open
Conversation
Contributor
There was a problem hiding this comment.
1 issue found across 15 files
Prompt for AI agents (all issues)
Check if these issues are valid — if so, understand the root cause of each and fix them.
<file name="apps/feature-request/app/api/chat/route.ts">
<violation number="1" location="apps/feature-request/app/api/chat/route.ts:43">
P2: Validate that `messages` is an array before spreading it. As written, a malformed or missing `messages` field will throw and return a 500 instead of a client error.</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
| role: "system", | ||
| parts: [{ type: "text", text: SYSTEM_PROMPT }], | ||
| }, | ||
| ...messages, |
Contributor
There was a problem hiding this comment.
P2: Validate that messages is an array before spreading it. As written, a malformed or missing messages field will throw and return a 500 instead of a client error.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At apps/feature-request/app/api/chat/route.ts, line 43:
<comment>Validate that `messages` is an array before spreading it. As written, a malformed or missing `messages` field will throw and return a 500 instead of a client error.</comment>
<file context>
@@ -0,0 +1,78 @@
+ role: "system",
+ parts: [{ type: "text", text: SYSTEM_PROMPT }],
+ },
+ ...messages,
+ ],
+ model: {
</file context>
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
Adds a new Next.js app at
apps/feature-request/— a public-facing chat page where users can propose features for MCP Mesh. An AI "tech lead" persona reads the codebase via MCP tools, asks clarifying product/UX questions, builds a structured plan, and creates a GitHub issue.apps/mesh/— this is a standalone consumer of Mesh's existing decopilot streaming API, authenticated via API key@deco/uidesign systemHow it works
Key files
app/api/chat/route.tsapp/page.tsxlib/system-prompt.tsmiddleware.tscomponents/chat-messages.tsxConfiguration
All config via env vars (
.env.localfor dev, Vercel dashboard for prod):Required MCP tools (GitHub MCP server)
The virtual MCP agent needs a GitHub MCP connection with toolsets:
repos,issues,context,git— specifically:get_file_contents,search_code,get_repository_tree,list_commits,search_issues,list_issues,issue_write,get_me.Test plan
.env.localbun run dev(Mesh on :3000) andcd apps/feature-request && bun run dev(on :3003)localhost:3003, describe a feature, verify the AI reads code and asks clarifying questionsnext buildto confirm production build succeedsMade with Cursor
Summary by cubic
Add a standalone Next.js app at apps/feature-request for public feature requests via chat; a virtual tech lead reads the codebase with MCP tools, asks clarifying questions, drafts a plan, and can create a GitHub issue. It proxies Mesh’s decopilot stream with an API key and does not change apps/mesh.
New Features
Migration
Written for commit 7416268. Summary will update on new commits.