@openmbee/sysml-mcp-linux-x64 0.12.1 → 0.12.2-nightly.20261110.g6ff0288b83
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 +1 -1
- package/bin/sysml-mcp +2 -2
- package/package.json +1 -1
- package/share/man/man1/sysml-mcp.1 +58 -5
package/README.md
CHANGED
|
@@ -4,4 +4,4 @@ sysml-mcp Model Context Protocol server binary for linux-x64. Installed as an
|
|
|
4
4
|
optional dependency of [`@openmbee/sysml-mcp`](https://www.npmjs.com/package/@openmbee/sysml-mcp);
|
|
5
5
|
there is nothing to import here.
|
|
6
6
|
|
|
7
|
-
SHA-256 of `bin/sysml-mcp`: `
|
|
7
|
+
SHA-256 of `bin/sysml-mcp`: `25946d5b9ac3d722b59f582f1d75335fd1866b23e048fb6d749892e07cfc56c7`
|
package/bin/sysml-mcp
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: package/bin/sysml-mcp
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 66449568 bytes
|
|
4
|
+
sha256: 25946d5b9ac3d722b59f582f1d75335fd1866b23e048fb6d749892e07cfc56c7
|
package/package.json
CHANGED
|
@@ -53,6 +53,10 @@ warn.
|
|
|
53
53
|
.B \-man
|
|
54
54
|
Write this command's manual page, in roff, to stdout and exit
|
|
55
55
|
.TP
|
|
56
|
+
.BI \-max\-body\-bytes " int"
|
|
57
|
+
Largest request body, in bytes, the HTTP transport reads at /mcp; a larger one
|
|
58
|
+
is refused with 413. Default 4194304 (4 MiB). The default is 4194304.
|
|
59
|
+
.TP
|
|
56
60
|
.B \-no\-record\-cache
|
|
57
61
|
Parse every document and hold it loaded, reading no interface record from the
|
|
58
62
|
record cache and writing none; default off, or OPENSYSML_RECORD_CACHE=0
|
|
@@ -82,6 +86,10 @@ Workspace folder whose model documents the server indexes and edits; default
|
|
|
82
86
|
the current directory, which an agent host sets to the project. The default is
|
|
83
87
|
\&..
|
|
84
88
|
.TP
|
|
89
|
+
.BI \-shutdown\-timeout " duration"
|
|
90
|
+
How long a stopping HTTP server waits for its connections to drain after
|
|
91
|
+
closing the sessions, as a Go duration; default 30s. The default is 30s.
|
|
92
|
+
.TP
|
|
85
93
|
.B \-stdio
|
|
86
94
|
Serve over stdin/stdout (the default transport; accepted for hosts that name
|
|
87
95
|
it; not with \-http)
|
|
@@ -139,9 +147,10 @@ the server, which serves that one client and exits when the stream closes.
|
|
|
139
147
|
With \-http the server is started once and serves every client that connects
|
|
140
148
|
to its address over the Streamable HTTP transport, at the path /mcp, until it
|
|
141
149
|
is told to stop with SIGINT or SIGTERM; stopping closes the sessions and waits
|
|
142
|
-
up to 30 seconds for the connections to drain. The
|
|
143
|
-
workspace, one runtime cache and one set of REPL sessions,
|
|
144
|
-
opened by one is the session every other sees under that
|
|
150
|
+
up to \-shutdown\-timeout (30 seconds) for the connections to drain. The
|
|
151
|
+
clients share one workspace, one runtime cache and one set of REPL sessions,
|
|
152
|
+
so a session_* name opened by one is the session every other sees under that
|
|
153
|
+
name.
|
|
145
154
|
.PP
|
|
146
155
|
.RS 2
|
|
147
156
|
.nf
|
|
@@ -181,6 +190,38 @@ origin listed in \-allow\-origin exactly; any other origin is refused with
|
|
|
181
190
|
name rebound to this machine. The wildcard origin is not accepted. A request
|
|
182
191
|
whose MCP\-Protocol\-Version header names a version the server does not speak
|
|
183
192
|
is refused with 400.
|
|
193
|
+
.SH RUNNING AS A SERVICE
|
|
194
|
+
With \-http the server also answers two open endpoints on the same address,
|
|
195
|
+
outside the origin check and the token, for the probes a deployment makes: GET
|
|
196
|
+
/health answers 200 as soon as the address is bound, naming the service and
|
|
197
|
+
its version, and says the process is alive; GET /ready answers 503 while the
|
|
198
|
+
workspace is being indexed and the runtime's standard library prepared, 200
|
|
199
|
+
once a client's first call would be answered in full, and 503 again while a
|
|
200
|
+
stopping server drains. A protocol request arriving before the server is ready
|
|
201
|
+
is answered 503 with Retry\-After rather than served partially. A request body
|
|
202
|
+
over \-max\-body\-bytes is refused with 413.
|
|
203
|
+
.PP
|
|
204
|
+
Every flag is also read from the environment, for a unit file or a container
|
|
205
|
+
that cannot edit a command line: the variable OPENSYSML_MCP_<FLAG> holds the
|
|
206
|
+
flag's value, with the flag's name in upper case and each dash an underscore,
|
|
207
|
+
as OPENSYSML_MCP_LOG_LEVEL for \-log\-level and OPENSYSML_MCP_HTTP for \-http.
|
|
208
|
+
A flag on the command line wins over its variable, a variable set to nothing
|
|
209
|
+
is as good as unset, and a value the flag would refuse is refused the same
|
|
210
|
+
way, with exit status 2. OPENSYSML_MCP_TOKEN is the variable of \-token, read
|
|
211
|
+
as it always was, and OPENSYSML_MCP_TOKEN_FILE that of \-token\-file, each
|
|
212
|
+
consulted only when neither token flag is given.
|
|
213
|
+
.PP
|
|
214
|
+
.RS 2
|
|
215
|
+
.nf
|
|
216
|
+
# Ask whether the process is alive
|
|
217
|
+
curl \-s http://localhost:8765/health
|
|
218
|
+
# 200 once the server is ready for its first call
|
|
219
|
+
curl \-s \-o /dev/null \-w '%{http_code}' http://localhost:8765/ready
|
|
220
|
+
# Configure the transport from the environment
|
|
221
|
+
OPENSYSML_MCP_HTTP=0.0.0.0:8765 \e
|
|
222
|
+
OPENSYSML_MCP_TOKEN_FILE=/run/secrets/mcp.token sysml\-mcp
|
|
223
|
+
.fi
|
|
224
|
+
.RE
|
|
184
225
|
.SH CONFIGURING A HOST
|
|
185
226
|
\-print\-config writes the block a host reads, naming this binary by its
|
|
186
227
|
absolute path so the host finds it wherever it was installed;
|
|
@@ -366,6 +407,10 @@ one row per element (rpc ImportData, sysml \-import, sysml \-import\-as, sysml
|
|
|
366
407
|
runtime: Instantiate a definition or usage and report the object's feature
|
|
367
408
|
values (rpc Instantiate, sysml \-instantiate).
|
|
368
409
|
.TP
|
|
410
|
+
.B instance_paths
|
|
411
|
+
runtime: List every root\-relative usage path that reaches an instantiated
|
|
412
|
+
object (rpc InstancePaths).
|
|
413
|
+
.TP
|
|
369
414
|
.B list_engines
|
|
370
415
|
runtime: List the analysis engines and whether each is ready (rpc ListEngines,
|
|
371
416
|
sysml \-engines, sysml \-probe).
|
|
@@ -408,8 +453,9 @@ runtime: Run an analysis case and report its result (rpc RunAnalysis, sysml
|
|
|
408
453
|
\-analysis, sysml \-engine, sysml \-tool\-dry\-run).
|
|
409
454
|
.TP
|
|
410
455
|
.B run_document_query
|
|
411
|
-
runtime: Run a document query definition
|
|
412
|
-
RunDocumentQuery, sysml \-run\-query
|
|
456
|
+
runtime: Run a document query definition, or a query expression written in
|
|
457
|
+
place, and report its rows (rpc RunDocumentQuery, sysml \-run\-query, sysml
|
|
458
|
+
\-run\-inline\-query).
|
|
413
459
|
.TP
|
|
414
460
|
.B run_runs
|
|
415
461
|
runtime: Run an action or a Monte Carlo case repeatedly and table what the
|
|
@@ -430,6 +476,10 @@ GetServerInfo).
|
|
|
430
476
|
.B symbol
|
|
431
477
|
runtime: Describe one element of a parsed model (rpc GetSymbol).
|
|
432
478
|
.TP
|
|
479
|
+
.B element_properties
|
|
480
|
+
runtime: Read the metamodel properties of one element by their specification
|
|
481
|
+
names (rpc GetElementProperties).
|
|
482
|
+
.TP
|
|
433
483
|
.B validate_instance
|
|
434
484
|
runtime: Validate an instantiated object against its definition, as sysml
|
|
435
485
|
\-validate=<object> does (rpc ValidateInstance).
|
|
@@ -561,6 +611,9 @@ session ended in a protocol error.
|
|
|
561
611
|
.B 2
|
|
562
612
|
The command line could not be acted on.
|
|
563
613
|
.SH ENVIRONMENT
|
|
614
|
+
Each flag above is read from OPENSYSML_MCP_<FLAG> when the command line leaves
|
|
615
|
+
it unset, as the Running as a service section says. The run bounds every
|
|
616
|
+
binary reads are:
|
|
564
617
|
.TP
|
|
565
618
|
.B OPENSYSML_LIBRARY_PATH
|
|
566
619
|
Directory to load the SysML/KerML standard library from, instead of the copy
|