-
Notifications
You must be signed in to change notification settings - Fork 614
[BUG]: JSON parse error when adding MCP server - missing response validation in admin.js #2562
Copy link
Copy link
Labels
MUSTP1: Non-negotiable, critical requirements without which the product is non-functional or unsafeP1: Non-negotiable, critical requirements without which the product is non-functional or unsafebugSomething isn't workingSomething isn't workingfrontendFrontend development (HTML, CSS, JavaScript)Frontend development (HTML, CSS, JavaScript)icaICA related issuesICA related issuesjavascriptJavascript or typescriptJavascript or typescriptuiUser InterfaceUser Interface
Milestone
Description
🐞 Bug Summary
Briefly describe the issue or unexpected behavior.
After entering the required inputs like, mcp server URL(https://api.githubcopilot.com/mcp/), name etc. when
click on 'Add Gateway' is giving error "JSON.parse: unexpected character at line 1 column 1 of the JSON data"
🧩 Affected Component
Select the area of the project impacted:
-
mcpgateway- API - Other (explain below)
Unable to use the tools as part of the new mcp server added for the agentic app created in studio.
🔁 Steps to Reproduce
- Open context forge via Agentic Studio
- Go to first tab - mcp servers
- Add mcp server name, mcp server URL, description, visibility (public), transport type (Streamable http), auth type - non
- Click 'Add Gateway' - giving error "JSON.parse: unexpected character at line 1 column 1 of the JSON data"
🤔 Expected Behavior
MCP Server added successfully or give a proper validation message if any of the input is invalid or missing.
📓 Logs / Error Output
Paste any relevant stack traces or logs here.
🧠 Environment Info
You can retrieve most of this from the /version endpoint.
| Key | Value |
|---|---|
| Version or commit | e.g. v0.9.0 or main@a1b2c3d |
| Runtime | e.g. Python 3.11, Gunicorn |
| Platform / OS | e.g. Ubuntu 22.04, macOS |
| Container | e.g. Docker, Podman, none |
🧩 Additional Context (optional)
Add any configuration details, flags, or related issues.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
MUSTP1: Non-negotiable, critical requirements without which the product is non-functional or unsafeP1: Non-negotiable, critical requirements without which the product is non-functional or unsafebugSomething isn't workingSomething isn't workingfrontendFrontend development (HTML, CSS, JavaScript)Frontend development (HTML, CSS, JavaScript)icaICA related issuesICA related issuesjavascriptJavascript or typescriptJavascript or typescriptuiUser InterfaceUser Interface