Skip to content

Commit db672ad

Browse files
authored
Merge pull request #44 from mcp-agents-ai/feat/leixu/mcp_download_api
refactor: simplify request handler type in POST /download route
2 parents cef8a12 + 91b142f commit db672ad

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

server/src/routes/mcp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ router.get('/servers', async (_req, res) => {
2020
});
2121

2222
// POST /download - Get server data with README content
23-
router.post('/download', async (req: Request, res: Response) => {
23+
router.post('/download', async (req, res) => {
2424
try {
2525
// Validate request body
2626
const { mcpId } = req.body;

server/tests/results/0a0cff94-1f03-4d1f-b5cc-a41d464f575e_test_results.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,16 @@
88
"extractedInfo": {
99
"name": "AWS Knowledge Base Retrieval MCP Server",
1010
"description": "An MCP server implementation for retrieving information from the AWS Knowledge Base using the Bedrock Agent Runtime.",
11-
"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.",
12-
"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.",
11+
"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.",
12+
"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.",
1313
"features": [
1414
"RAG (Retrieval-Augmented Generation): Retrieve context from the AWS Knowledge Base based on a query and a Knowledge Base ID.",
1515
"Supports multiple results retrieval: Option to retrieve a customizable number of results."
1616
],
1717
"prerequisites": [
18-
"AWS access key ID, secret access key, and region from the AWS Management Console.",
19-
"AWS CLI configured with SSO profile if using AWS SSO.",
20-
"Docker installed if using Docker for installation.",
21-
"Node.js installed if using NPX or running from a local repository."
18+
"AWS access key ID, secret access key, and region (for IAM Access Keys).",
19+
"AWS SSO profile configuration (for AWS SSO).",
20+
"Docker or NPX installed (depending on the chosen installation method)."
2221
]
2322
}
2423
}

0 commit comments

Comments
 (0)