Project Setup Guide
This guide will walk you through the process of setting up both the backend and frontend for the project.
Step 1: Setting up the Backend
-
Navigate to the
backenddirectory.cd backend -
Install the required dependencies by running the following command:
npm install -
Create a
.envfile in thebackendfolder and add the following environment variables:PORT=5000 FRONTEND_URL=http://localhost:5173 -
To run the server, use the following command:
npm run devThe server will now be running at
http://localhost:5000.
Step 2: Setting up the Frontend
-
Navigate to the
frontenddirectory.cd frontend -
Install the required dependencies by running:
npm install -
Create a
.envfile in thefrontendfolder and add the following environment variable:VITE_BACKEND_URL=http://localhost:5000 -
To run the client, use the following command:
npm run devThe client will now be running at
http://localhost:5173.
Additional Information
- Ensure that both the backend and frontend are running simultaneously.
- You can test the full application by visiting
http://localhost:5173in your browser after both the backend and frontend servers are up and running.
MCP Server Check API
This is a simple Node.js Express endpoint that checks the availability of an MCP server by querying the https://registry.smithery.ai/servers/{installationCode} endpoint using the installationCode provided in the request body. The server responds with either a success message and server data or an error message if the connection fails.
Endpoint
POST /test-server
Request Body
{
"installationCode": "your-installation-code"
}
Response
{
"success": true,
"message": "MCP Server is reachable",
"data": {
"qualifiedName": "server-qualified-name",
"displayName": "Server Display Name",
"deploymentUrl": "https://deployment-url.com",
"connections": [
{
"type": "http",
"url": "https://connection-url.com",
"configSchema": {}
}
]
}
}
For more information
For more detailed information, visit the Smithery Registry Documentation.
相关推荐
Confidential guide on numerology and astrology, based of GG33 Public information
Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.
Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.
Take an adjectivised noun, and create images making it progressively more adjective!
Reviews
user_ptSqscB9
The mcp-server-tester by Sk-Mahammad-Irfan is an indispensable tool for anyone managing MCP servers. The user-friendly interface and comprehensive testing capabilities make server management much more efficient. Check it out on GitHub for more details.