aqc-mcp 1.2.3 → 1.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import { startSseAndStreamableHttpMcpServer } from 'mcp-http-server';
4
4
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
5
5
  import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
6
6
  import { listTools } from './tools/index.js';
7
- const VERSION = '1.2.2';
7
+ const VERSION = '1.2.5';
8
8
  async function createMcpServer() {
9
9
  const server = new McpServer({
10
10
  name: 'astroquery-mcp',
@@ -22,11 +22,11 @@ program
22
22
  .description('MCP server for astroquery-cli')
23
23
  .version(VERSION)
24
24
  .option('--port <port>', 'HTTP server port')
25
- .option('--host <host>', 'HTTP server host', 'localhost')
25
+ .option('--host <host>', 'HTTP server host')
26
26
  .action(async (options) => {
27
27
  try {
28
28
  const server = await createMcpServer();
29
- if (options.port) {
29
+ if (options.port || options.host) {
30
30
  // HTTP mode with SSE support
31
31
  await startSseAndStreamableHttpMcpServer({
32
32
  host: options.host,
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,kCAAkC,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,MAAM,OAAO,GAAG,OAAO,CAAC;AAExB,KAAK,UAAU,eAAe;IAC5B,MAAM,MAAM,GAAG,IAAI,SAAS,CAC1B;QACE,IAAI,EAAE,gBAAgB;QACtB,OAAO,EAAE,OAAO;KACjB,EACD;QACE,YAA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AC;YACN,aAAa;YACb,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAC;YAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;YAChC,OAAO,CAAC,KAAK,CAAC,wCAAwC,CAAC,CAAC;QAC1D,CAAC;IACH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;QACrC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC,CAAC,CAAC;AAEL,OAAO,CAAC,KAAK,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aqc-mcp",
3
- "version": "1.2.3",
3
+ "version": "1.2.5",
4
4
  "description": "MCP server for astroquery-cli with HTTP and SSE support",
5
5
  "keywords": [
6
6
  "mcp",
@@ -36,7 +36,7 @@
36
36
  "watch": "tsc --watch"
37
37
  },
38
38
  "dependencies": {
39
- "@modelcontextprotocol/sdk": "^1.0.4",
39
+ "@modelcontextprotocol/sdk": "^1.27.1",
40
40
  "commander": "^14.0.3",
41
41
  "cors": "^2.8.5",
42
42
  "express": "^4.18.2",
package/src/index.ts CHANGED
@@ -5,7 +5,7 @@ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
5
5
  import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
6
6
  import { listTools } from './tools/index.js';
7
7
 
8
- const VERSION = '1.2.2';
8
+ const VERSION = '1.2.5';
9
9
 
10
10
  async function createMcpServer() {
11
11
  const server = new McpServer(
@@ -30,12 +30,12 @@ program
30
30
  .description('MCP server for astroquery-cli')
31
31
  .version(VERSION)
32
32
  .option('--port <port>', 'HTTP server port')
33
- .option('--host <host>', 'HTTP server host', 'localhost')
33
+ .option('--host <host>', 'HTTP server host')
34
34
  .action(async (options) => {
35
35
  try {
36
36
  const server = await createMcpServer();
37
37
 
38
- if (options.port) {
38
+ if (options.port || options.host) {
39
39
  // HTTP mode with SSE support
40
40
  await startSseAndStreamableHttpMcpServer({
41
41
  host: options.host,