Skip to content

Commit 8464605

Browse files
add required field
1 parent 7953191 commit 8464605

File tree

2 files changed

+35
-15
lines changed

2 files changed

+35
-15
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.6",
3+
"version": "1.0.7",
44
"description": "Model Context Protocol (MCP) server for NASA APIs",
55
"main": "dist/index.js",
66
"files": [

src/index.ts

Lines changed: 34 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ async function startServer() {
393393
{
394394
name: "NASA MCP Server",
395395
description: "Model Context Protocol server for NASA APIs",
396-
version: "1.0.6"
396+
version: "1.0.7"
397397
},
398398
{
399399
capabilities: {
@@ -508,6 +508,16 @@ async function startServer() {
508508
name: "JPL CAD",
509509
id: "jpl/cad",
510510
description: "Asteroid and comet close approaches to the planets in the past and future"
511+
},
512+
{
513+
name: "JPL Sentry",
514+
id: "jpl/sentry",
515+
description: "JPL Sentry - NEO Earth impact risk assessment data"
516+
},
517+
{
518+
name: "JPL Horizons",
519+
id: "jpl/horizons",
520+
description: "JPL Horizons - Solar system objects ephemeris data"
511521
}
512522
]
513523
};
@@ -685,7 +695,8 @@ async function startServer() {
685695
type: "boolean",
686696
description: "Return URL of thumbnail for video content"
687697
}
688-
}
698+
},
699+
required: ["date"]
689700
}
690701
},
691702
{
@@ -706,7 +717,8 @@ async function startServer() {
706717
type: "string",
707718
description: "ID of a specific asteroid"
708719
}
709-
}
720+
},
721+
required: ["start_date", "end_date"]
710722
}
711723
},
712724
{
@@ -774,7 +786,8 @@ async function startServer() {
774786
type: "string",
775787
description: "Field to sort results by"
776788
}
777-
}
789+
},
790+
required: ["keyword"]
778791
}
779792
},
780793
{
@@ -795,7 +808,8 @@ async function startServer() {
795808
type: "number",
796809
description: "Number of days of data to retrieve"
797810
}
798-
}
811+
},
812+
required: ["latitude", "longitude"]
799813
}
800814
},
801815
{
@@ -824,7 +838,8 @@ async function startServer() {
824838
type: "number",
825839
description: "Page number for pagination"
826840
}
827-
}
841+
},
842+
required: ["q"]
828843
}
829844
},
830845
{
@@ -853,7 +868,8 @@ async function startServer() {
853868
type: "number",
854869
description: "Maximum number of results"
855870
}
856-
}
871+
},
872+
required: ["table"]
857873
}
858874
},
859875
{
@@ -874,7 +890,8 @@ async function startServer() {
874890
type: "string",
875891
description: "End date (YYYY-MM-DD)"
876892
}
877-
}
893+
},
894+
required: ["type"]
878895
}
879896
},
880897
{
@@ -903,7 +920,8 @@ async function startServer() {
903920
type: "number",
904921
description: "Page number for pagination"
905922
}
906-
}
923+
},
924+
required: ["rover"]
907925
}
908926
},
909927
{
@@ -969,7 +987,8 @@ async function startServer() {
969987
type: "string",
970988
description: "Response format (json, csv, etc.)"
971989
}
972-
}
990+
},
991+
required: ["parameters", "community", "longitude", "latitude", "start", "end"]
973992
}
974993
},
975994
{
@@ -986,7 +1005,8 @@ async function startServer() {
9861005
type: "boolean",
9871006
description: "Include close approach data"
9881007
}
989-
}
1008+
},
1009+
required: ["sstr"]
9901010
}
9911011
},
9921012
{
@@ -1297,7 +1317,7 @@ async function startServer() {
12971317
// Mars Rover Handler
12981318
server.setRequestHandler(
12991319
z.object({
1300-
method: z.literal("nasa/mars_rover"),
1320+
method: z.literal("nasa/mars-rover"),
13011321
params: z.object({
13021322
rover: z.enum(['curiosity', 'opportunity', 'perseverance', 'spirit']),
13031323
sol: z.number().int().nonnegative().optional(),
@@ -1307,7 +1327,7 @@ async function startServer() {
13071327
}).optional()
13081328
}),
13091329
async (request) => {
1310-
return await handleToolCall("nasa/mars_rover", request.params || {});
1330+
return await handleToolCall("nasa/mars-rover", request.params || {});
13111331
}
13121332
);
13131333

@@ -1830,7 +1850,7 @@ export function registerMcpTools() {
18301850
level: "info",
18311851
data: `MCP NASA Mars Rover called with args: ${JSON.stringify(args)}`,
18321852
});
1833-
return await handleToolCall('nasa/mars_rover', args);
1853+
return await handleToolCall('nasa/mars-rover', args);
18341854
});
18351855

18361856
registerGlobalTool('mcp__nasaeonet', async (args: Record<string, any>) => {

0 commit comments

Comments
 (0)