Skip to content

[BUG]: JSON parse error when adding MCP server - missing response validation in admin.js #2562

@praveen-vijayan

Description

@praveen-vijayan

🐞 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

  1. Open context forge via Agentic Studio
  2. Go to first tab - mcp servers
  3. Add mcp server name, mcp server URL, description, visibility (public), transport type (Streamable http), auth type - non
  4. 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.
⚠️ Do not paste secrets, credentials, or tokens.


🧠 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.

Metadata

Metadata

Labels

MUSTP1: Non-negotiable, critical requirements without which the product is non-functional or unsafebugSomething isn't workingfrontendFrontend development (HTML, CSS, JavaScript)icaICA related issuesjavascriptJavascript or typescriptuiUser Interface

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions