siglent-sdg-mcp 2.0.2 → 2.0.4
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 +10 -4
- package/build/security/scpi-guard.js +4 -2
- package/build/server.d.ts +1 -1
- package/build/server.js +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# siglent-sdg-mcp
|
|
2
2
|
|
|
3
|
+
[](https://github.com/MagnusJohansson/siglent-sdg-mcp/actions/workflows/ci.yml)
|
|
4
|
+
[](https://github.com/MagnusJohansson/siglent-sdg-mcp/actions/workflows/codeql.yml)
|
|
5
|
+
[](https://scorecard.dev/viewer/?uri=github.com/MagnusJohansson/siglent-sdg-mcp)
|
|
6
|
+
[](https://www.npmjs.com/package/siglent-sdg-mcp)
|
|
7
|
+
[](LICENSE)
|
|
8
|
+
|
|
3
9
|
A [Model Context Protocol](https://modelcontextprotocol.io/) (MCP) server that lets AI assistants control Siglent SDG waveform generators over your local network. Connect Claude to your bench and generate, modulate, and configure signals through natural language.
|
|
4
10
|
|
|
5
11
|
## Overview
|
|
@@ -417,11 +423,11 @@ npm run hardware-check -- 192.168.1.126
|
|
|
417
423
|
|
|
418
424
|
Publishing is triggered by **publishing a GitHub Release**, not by pushing a tag:
|
|
419
425
|
|
|
420
|
-
1. Bump `version` in `package.json` and add a
|
|
421
|
-
2. Create a release (draft first) with tag `vX.Y.Z` on `main`, using the changelog section as the release notes.
|
|
422
|
-
3. Publish the release.
|
|
426
|
+
1. Bump `version` in `package.json` and `SERVER_VERSION` in `src/server.ts`, and add a `CHANGELOG.md` section. Merge to `main`.
|
|
427
|
+
2. Create a release (draft first) with tag `vX.Y.Z` on `main`, using the changelog section as the release notes. Tick "pre-release" exactly when the version has a suffix such as `-rc.1`.
|
|
428
|
+
3. Publish the release. The `Release` workflow runs three jobs in order: **verify**, then **npm**, then **docker**.
|
|
423
429
|
|
|
424
|
-
The
|
|
430
|
+
The verify job fails, and nothing is published, if the tag doesn't match the `package.json` version, `SERVER_VERSION` differs from it, `repository.url` doesn't match the repository exactly, the pre-release checkbox doesn't match the version, the tagged commit isn't on `main`, or the build or tests fail. The Docker image is only pushed after the npm publish succeeds. A pre-release publishes to the npm `next` dist-tag and doesn't move the Docker `latest` tag. A draft release publishes nothing.
|
|
425
431
|
|
|
426
432
|
### Docker (local build)
|
|
427
433
|
|
|
@@ -75,9 +75,11 @@ const QUERY_PARAMETER_RULES = [
|
|
|
75
75
|
];
|
|
76
76
|
/**
|
|
77
77
|
* IEEE 488.2 common commands that are pure queries. Others that accept a '?'
|
|
78
|
-
* form (*RST?, *TST?, *CLS?) are actions, or would run a self-test.
|
|
78
|
+
* form (*RST?, *TST?, *CLS?) are actions, or would run a self-test. *ESR? is
|
|
79
|
+
* excluded too: reading the Event Status Register clears it, which a tool
|
|
80
|
+
* marked read-only must not do.
|
|
79
81
|
*/
|
|
80
|
-
const COMMON_QUERIES = new Set(["IDN", "OPC", "
|
|
82
|
+
const COMMON_QUERIES = new Set(["IDN", "OPC", "STB", "ESE", "SRE", "OPT"]);
|
|
81
83
|
export function assertIsQuery(cmd) {
|
|
82
84
|
assertWireSafe(cmd);
|
|
83
85
|
const m = QUERY_PATTERN.exec(cmd.trim());
|
package/build/server.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
2
|
import type { ServerConfig } from "./config.js";
|
|
3
|
-
export declare const SERVER_VERSION = "2.0.
|
|
3
|
+
export declare const SERVER_VERSION = "2.0.4";
|
|
4
4
|
/** Build the MCP server with all tools registered under the given configuration. */
|
|
5
5
|
export declare function createServer(config: ServerConfig): McpServer;
|
package/build/server.js
CHANGED
|
@@ -8,7 +8,7 @@ import { registerBurstTools } from "./tools/burst.js";
|
|
|
8
8
|
import { registerArbitraryTools } from "./tools/arbitrary.js";
|
|
9
9
|
import { registerUtilityTools } from "./tools/utility.js";
|
|
10
10
|
import { registerScpiTools } from "./tools/scpi.js";
|
|
11
|
-
export const SERVER_VERSION = "2.0.
|
|
11
|
+
export const SERVER_VERSION = "2.0.4";
|
|
12
12
|
/** Build the MCP server with all tools registered under the given configuration. */
|
|
13
13
|
export function createServer(config) {
|
|
14
14
|
const server = new McpServer({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "siglent-sdg-mcp",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"description": "MCP server for Siglent SDG waveform generator control via SCPI over TCP sockets",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "build/index.js",
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
"url": "git+https://github.com/MagnusJohansson/siglent-sdg-mcp.git"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
40
|
-
"zod": "^
|
|
39
|
+
"@modelcontextprotocol/sdk": "^1.32.2",
|
|
40
|
+
"zod": "^4.6.7"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/node": "^22.0.0",
|
|
44
44
|
"typescript": "^5.7.0",
|
|
45
|
-
"vitest": "^
|
|
45
|
+
"vitest": "^4.1.12"
|
|
46
46
|
},
|
|
47
47
|
"engines": {
|
|
48
48
|
"node": ">=20"
|