About MCP
MCP is an MCP server published by cjlawson02 in the Science category: a TypeScript library for WPILib's NT4.1 spec. Conduid read 13 tools from its source: nt_connect, nt_connection_info, nt_disconnect, nt_get, nt_get_decoded, nt_get_multiple and 7 more. No package is published for it, so it installs from a source checkout.
The repository has 28 stars and 9 forks, is licensed MIT, and its last commit was on 1 Dec 2026. The latest release is @ntcore-ts/mcp-v1.0.0 (13 Sep 2026). It follows @ntcore-ts/react-v1.0.0 (13 Sep 2026), and the 5 most recent releases go back to 3.1.2 (10 Feb 2025). It passes all 5 static checks Conduid ran on the repository. Its topics include dashboard, first-robotics-competition, networktables, ntcore and pubsub.
Install
git clone https://github.com/cjlawson02/ntcore-tsTools (13)
nt_connectConnect to an NT4 server. Provide either team (mDNS/team IP) OR host (e.g. localhost for sim). Default port 5810. Starts topic inventory. Prefer this before list/get/subscribe.| Parameter | Type | Description |
|---|---|---|
| host | string | Hostname or IP (e.g. localhost, 127.0.0.1). Mutually exclusive with team |
| platform | string | Address resolution when using team (default roborio) |
| port | number | NT4 port (default 5810) |
| team | number | FRC team number (mutually exclusive with host) |
| timeout_ms | number | Connection wait timeout in ms (default 10000) |
nt_connection_infoReturn connected/connecting flags, endpoint, RTT, and write-gate status. Read-only.nt_disconnectClose the NT connection and clear the topic inventory cache.nt_getRead one topic value. Best for scalars/arrays/json. For struct:/proto: topics prefer nt_get_decoded. Topic must be known via nt_list_topics. Read-only.| Parameter | Type | Description |
|---|---|---|
| topic * | string | Full topic name, e.g. /MyTable/Gyro |
nt_get_decodedDecode a struct: or proto: topic into a JSON object using @ntcore-ts/client. Prefer this over nt_get for Pose2d and other structured types. Optional type_hint like struct:Pose2d. Read-only.| Parameter | Type | Description |
|---|---|---|
| topic * | string | Full topic name |
| type_hint | string | Override wire type, e.g. struct:Pose2d or proto:Pose2d |
nt_get_multipleBatch nt_get for up to 50 topics. Read-only.| Parameter | Type | Description |
|---|---|---|
| topics * | array | Topic names to read |
nt_guideCall this first if unfamiliar. Explains workflow, tool choice (nt_get vs nt_get_decoded vs nt_subscribe), write-gate status, and safety rules. Read-only.nt_list_struct_typesList built-in WPILib geometry struct types and any discovered from /.schema/struct:* or live topics. Read-only.nt_list_topicsList announced topics from the inventory cache (name, type, properties). Filter with prefix (e.g. /MyTable/). Call nt_connect first. Prefer over guessing topic names. Read-only.| Parameter | Type | Description |
|---|---|---|
| limit | number | Max topics to return (default 500) |
| prefix | string | Only topics starting with this prefix |
nt_setPublish a value to one topic. Fails if write gate is off, topic is outside NT_WRITE_ALLOWLIST, or types mismatch. Prefer expected_type when known. Destructive — can affect robot behavior if code is listening. Cannot enable/disable via FMS/DS.| Parameter | Type | Description |
|---|---|---|
| expected_type | string | NT type string, e.g. double or struct:Pose2d |
| topic * | string | Full topic name |
| value * | any | Value to publish (JSON-compatible for scalars/structs) |
nt_set_multipleBatch nt_set. Same write-gate and allowlist rules. Destructive.| Parameter | Type | Description |
|---|---|---|
| updates | array |
nt_set_write_modeSession write gate. Enabling REQUIRES confirm=true. Also enabled when NT_ALLOW_WRITES=1 at process start. Does not bypass path allowlist. Destructive.| Parameter | Type | Description |
|---|---|---|
| confirm | boolean | Must be true when enabling writes |
| enabled * | boolean | true to allow nt_set / nt_set_multiple |
nt_subscribeSample topic updates under prefixes for duration_seconds. Use format=summary for min/max/mean/last/rate (preferred evidence). format=samples returns capped point lists. Prefer over repeated nt_get for dynamics. Read-only.| Parameter | Type | Description |
|---|---|---|
| change_epsilon | number | Epsilon for change_only numerics (default 1e-9) |
| change_only | boolean | Skip numeric changes at or below change_epsilon |
| duration_seconds | number | How long to sample (default 2, max 30) |
| format | string | summary (default) or samples |
| prefixes * | array | Topic prefixes to sample (e.g. ["/MyTable/"]) |
| sample_interval_ms | number | Min ms between stored samples per topic (0 = every change) |
Security checks
- ✓README presentThe repository's README runs to about 495 words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedA lockfile pins dependency versions.
- ✓No dynamic code executionScanned 75 source files and found no eval, dynamic Function or shell execution.
1 check has not been run yet.
Releases
README
The repository's README runs to about 495 words, fetched a month ago. The original in the repository is authoritative.
Read full README