Skip to content

Commit 03e69f0

Browse files
1.0.4
1 parent 27d8a0e commit 03e69f0

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@programcomputer/nasa-mcp-server",
3-
"version": "1.0.2",
3+
"version": "1.0.4",
44
"description": "Model Context Protocol (MCP) server for NASA APIs",
55
"main": "dist/index.js",
66
"files": [

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ async function startServer() {
340340
{
341341
name: "NASA MCP Server",
342342
description: "Model Context Protocol server for NASA APIs",
343-
version: "1.0.2"
343+
version: "1.0.4"
344344
},
345345
{
346346
capabilities: {

src/tests/direct-api-test.ts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ dotenv.config();
77
// Get API key
88
const NASA_API_KEY = process.env.NASA_API_KEY || 'DEMO_KEY';
99

10+
// Track failed API calls
11+
const failedCalls: string[] = [];
12+
1013
/**
1114
* Test function for direct NASA API calls
1215
*/
@@ -31,6 +34,8 @@ async function testNasaEndpoint(name: string, url: string, params: Record<string
3134
console.error(`Status: ${error.response.status}`);
3235
console.error(`Data:`, error.response.data);
3336
}
37+
// Add to failed calls list
38+
failedCalls.push(name);
3439
return null;
3540
}
3641
}
@@ -137,7 +142,17 @@ async function runDirectTests() {
137142
);
138143

139144
console.log("\nAll direct API tests completed!");
145+
146+
// Print summary of failed calls
147+
if (failedCalls.length > 0) {
148+
console.log("\n❌ Failed API calls:");
149+
failedCalls.forEach(name => console.log(`- ${name}`));
150+
} else {
151+
console.log("\n✅ All API calls were successful!");
152+
}
140153
}
141154

142155
// Run the tests
143-
runDirectTests();
156+
runDirectTests().catch(err => {
157+
console.error("Unhandled error:", err);
158+
});

0 commit comments

Comments
 (0)