From 91b142fb6c322c9d875296d4a178840106e6dc68 Mon Sep 17 00:00:00 2001 From: Lei Xu Date: Tue, 8 Apr 2025 11:25:23 +0000 Subject: [PATCH] refactor: simplify request handler type in POST /download route --- server/src/routes/mcp.ts | 2 +- ...ff94-1f03-4d1f-b5cc-a41d464f575e_test_results.json | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/server/src/routes/mcp.ts b/server/src/routes/mcp.ts index dee7d9e..ad08bec 100644 --- a/server/src/routes/mcp.ts +++ b/server/src/routes/mcp.ts @@ -20,7 +20,7 @@ router.get('/servers', async (_req, res) => { }); // POST /download - Get server data with README content -router.post('/download', async (req: Request, res: Response) => { +router.post('/download', async (req, res) => { try { // Validate request body const { mcpId } = req.body; diff --git a/server/tests/results/0a0cff94-1f03-4d1f-b5cc-a41d464f575e_test_results.json b/server/tests/results/0a0cff94-1f03-4d1f-b5cc-a41d464f575e_test_results.json index 2ab70b2..5e34a70 100644 --- a/server/tests/results/0a0cff94-1f03-4d1f-b5cc-a41d464f575e_test_results.json +++ b/server/tests/results/0a0cff94-1f03-4d1f-b5cc-a41d464f575e_test_results.json @@ -8,17 +8,16 @@ "extractedInfo": { "name": "AWS Knowledge Base Retrieval MCP Server", "description": "An MCP server implementation for retrieving information from the AWS Knowledge Base using the Bedrock Agent Runtime.", - "Installation_instructions": "You can install the server using Docker or NPX. For Docker, build the image using the provided Dockerfile. For NPX, use the command 'npx -y @modelcontextprotocol/server-aws-kb-retrieval'. Ensure AWS credentials are configured either via IAM Access Keys or AWS SSO.", - "Usage_instructions": "Use the 'retrieve_from_aws_kb' tool to perform retrieval operations. Inputs include 'query', 'knowledgeBaseId', and optionally 'n' for the number of results. The response includes raw context and structured RAG sources with metadata.", + "Installation_instructions": "To install, follow the configuration steps for AWS credentials (either IAM Access Keys or AWS SSO) and set up the environment variables as described. Use Docker or NPX commands to run the server, or build it from a local repository.", + "Usage_instructions": "Use the `retrieve_from_aws_kb` tool to perform retrieval operations. Provide a query, Knowledge Base ID, and optionally the number of results to retrieve. The response includes raw context and structured RAG sources with metadata.", "features": [ "RAG (Retrieval-Augmented Generation): Retrieve context from the AWS Knowledge Base based on a query and a Knowledge Base ID.", "Supports multiple results retrieval: Option to retrieve a customizable number of results." ], "prerequisites": [ - "AWS access key ID, secret access key, and region from the AWS Management Console.", - "AWS CLI configured with SSO profile if using AWS SSO.", - "Docker installed if using Docker for installation.", - "Node.js installed if using NPX or running from a local repository." + "AWS access key ID, secret access key, and region (for IAM Access Keys).", + "AWS SSO profile configuration (for AWS SSO).", + "Docker or NPX installed (depending on the chosen installation method)." ] } } \ No newline at end of file