rfhub-mcp 0.4.0 → 0.6.0

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/README.md CHANGED
@@ -9,3 +9,14 @@ An [MCP (Model Context Protocol)](https://modelcontextprotocol.io/) server for R
9
9
  ```bash
10
10
  npx rfhub-mcp
11
11
  ```
12
+
13
+ ```json
14
+ {
15
+ "mcpServers": {
16
+ "rfhub-mcp": {
17
+ "command": "npx",
18
+ "args": ["-y", "rfhub-mcp"]
19
+ }
20
+ }
21
+ }
22
+ ```
package/dist/server.js CHANGED
@@ -5,21 +5,21 @@ import ArfcnCalculator4G from "./tools/arfcn-calculator-4g.js";
5
5
  import ArfcnCalculator5G from "./tools/arfcn-calculator-5g.js";
6
6
  import ArfcnCalculatorNTN from "./tools/arfcn-calculator-ntn.js";
7
7
  const mcpServer = new McpServer({
8
- name: "rfhub-mcp",
9
- version: "0.4.0",
10
- title: "RFHUB MCP Server",
11
- description: "RFHUB MCP Server",
12
- websiteUrl: "https://rfhub.cn/mcp-server",
8
+ name: "rfhub-mcp",
9
+ version: "0.6.0",
10
+ title: "RFHUB MCP Server",
11
+ description: "RFHUB MCP Server",
12
+ websiteUrl: "https://rfhub.cn/mcp-server",
13
13
  });
14
14
  new ArfcnCalculator4G(mcpServer).registerAllTools();
15
15
  new ArfcnCalculator5G(mcpServer).registerAllTools();
16
16
  new ArfcnCalculatorNTN(mcpServer).registerAllTools();
17
17
  async function main() {
18
- const transport = new StdioServerTransport();
19
- await mcpServer.connect(transport);
20
- console.log("MCP server is running...");
18
+ const transport = new StdioServerTransport();
19
+ await mcpServer.connect(transport);
20
+ console.log("MCP server is running...");
21
21
  }
22
22
  main().catch((error) => {
23
- console.error("Server error:", error);
24
- process.exit(1);
23
+ console.error("Server error:", error);
24
+ process.exit(1);
25
25
  });
@@ -4,7 +4,7 @@ import { mcpExResponse } from "../utils/response.js";
4
4
  export default class ArfcnCalculator4G {
5
5
  mcpServer;
6
6
  constructor(mcpServer) {
7
- mcpServer = mcpServer;
7
+ this.mcpServer = mcpServer;
8
8
  }
9
9
  registerAllTools = () => {
10
10
  this.registerComputeTool();
@@ -4,7 +4,7 @@ import { mcpExResponse } from "../utils/response.js";
4
4
  export default class ArfcnCalculator5G {
5
5
  mcpServer;
6
6
  constructor(mcpServer) {
7
- mcpServer = mcpServer;
7
+ this.mcpServer = mcpServer;
8
8
  }
9
9
  registerAllTools = () => {
10
10
  this.registerComputeTool();
@@ -4,7 +4,7 @@ import { mcpExResponse } from "../utils/response.js";
4
4
  export default class ArfcnCalculatorNTN {
5
5
  mcpServer;
6
6
  constructor(mcpServer) {
7
- mcpServer = mcpServer;
7
+ this.mcpServer = mcpServer;
8
8
  }
9
9
  registerAllTools = () => {
10
10
  this.registerComputeTool();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rfhub-mcp",
3
- "version": "0.4.0",
3
+ "version": "0.6.0",
4
4
  "description": "",
5
5
  "main": "dist/server.js",
6
6
  "type": "module",