mirror of
https://github.com/jmagar/unraid-mcp.git
synced 2026-03-02 00:04:45 -08:00
fix: adapt for supported GraphQL schema on 6.12.13
This commit is contained in:
@@ -541,8 +541,6 @@ Possible error states for configuration
|
||||
- Fields (3):
|
||||
- `api`: `String`
|
||||
- Unraid API version
|
||||
- `kernel`: `String`
|
||||
- Kernel version
|
||||
- `unraid`: `String`
|
||||
- Unraid version
|
||||
|
||||
@@ -1021,8 +1019,6 @@ The `ID` scalar type represents a unique identifier, often used to refetch an ob
|
||||
- `hostname`: `String`
|
||||
- Hostname
|
||||
- `id`: `PrefixedID!`
|
||||
- `kernel`: `String`
|
||||
- Kernel version
|
||||
- `logofile`: `String`
|
||||
- OS logo name
|
||||
- `platform`: `String`
|
||||
@@ -1426,8 +1422,6 @@ System metrics including CPU and memory utilization
|
||||
- Node.js version
|
||||
- `npm`: `String`
|
||||
- npm version
|
||||
- `openssl`: `String`
|
||||
- OpenSSL version
|
||||
- `php`: `String`
|
||||
- PHP version
|
||||
- `pm2`: `String`
|
||||
|
||||
@@ -27,7 +27,7 @@ Every query type identified across all research documents, with their fields and
|
||||
|
||||
| Query | Fields | Current MCP Coverage |
|
||||
|-------|--------|---------------------|
|
||||
| `info` | `time`, `baseboard { manufacturer, model, version, serial }`, `cpu { manufacturer, brand, vendor, family, model, stepping, revision, voltage, speed, speedmin, speedmax, threads, cores, processors, socket, cache, flags }`, `devices`, `display`, `machineId`, `memory { max, total, free, used, active, available, buffcache, swaptotal, swapused, swapfree, layout[] }`, `os { platform, distro, release, codename, kernel, arch, hostname, codepage, logofile, serial, build, uptime }`, `system { manufacturer, model, version, serial, uuid }`, `versions { kernel, docker, unraid, node }`, `apps { installed, started }` | **YES** - `get_system_info()` |
|
||||
| `info` | `time`, `baseboard { manufacturer, model, version, serial }`, `cpu { manufacturer, brand, vendor, family, model, stepping, revision, voltage, speed, speedmin, speedmax, threads, cores, processors, socket, cache, flags }`, `devices`, `display`, `machineId`, `memory { max, total, free, used, active, available, buffcache, swaptotal, swapused, swapfree, layout[] }`, `os { platform, distro, release, codename, arch, hostname, logofile, serial, build, uptime }`, `system { manufacturer, model, version, serial, uuid }`, `versions { docker, unraid, node }` | **YES** - `get_system_info()` |
|
||||
| `vars` | `id`, `version`, `name`, `timeZone`, `comment`, `security`, `workgroup`, `domain`, `useNtp`, `ntpServer1-4`, `useSsl`, `port`, `portssl`, `useTelnet`, `useSsh`, `portssh`, `startPage`, `startArray`, `spindownDelay`, `defaultFormat`, `defaultFsType`, `shutdownTimeout`, `shareDisk`, `shareUser`, `shareSmbEnabled`, `shareNfsEnabled`, `shareAfpEnabled`, `shareCacheEnabled`, `shareMoverSchedule`, `shareMoverLogging`, `safeMode`, `configValid`, `configError`, `deviceCount`, `flashGuid`, `flashProduct`, `flashVendor`, `regState`, `regTo`, `mdState`, `mdNumDisks`, `mdNumDisabled`, `mdNumInvalid`, `mdNumMissing`, `mdResync`, `mdResyncAction`, `fsState`, `fsProgress`, `fsCopyPrcnt`, `shareCount`, `shareSmbCount`, `shareNfsCount`, `csrfToken`, `maxArraysz`, `maxCachesz` | **YES** - `get_unraid_variables()` |
|
||||
| `online` | `Boolean` | **NO** |
|
||||
| `owner` | Server owner information | **NO** |
|
||||
@@ -378,15 +378,14 @@ GRAPHQL_PUBSUB_CHANNEL {
|
||||
| `ContainerHostConfig` | JSON host configuration | |
|
||||
| `VmDomain` | `uuid/id`, `name`, `state` | Implements Node |
|
||||
| `Vms` | `id`, `domain[]` | |
|
||||
| `Info` | `time`, `baseboard`, `cpu`, `devices`, `display`, `machineId`, `memory`, `os`, `system`, `versions`, `apps` | Implements Node |
|
||||
| `Info` | `time`, `baseboard`, `cpu`, `devices`, `display`, `machineId`, `memory`, `os`, `system`, `versions` | Implements Node |
|
||||
| `InfoCpu` | `manufacturer`, `brand`, `vendor`, `family`, `model`, `stepping`, `revision`, `voltage`, `speed`, `speedmin`, `speedmax`, `threads`, `cores`, `processors`, `socket`, `cache`, `flags` | |
|
||||
| `InfoMemory` | `max`, `total`, `free`, `used`, `active`, `available`, `buffcache`, `swaptotal`, `swapused`, `swapfree`, `layout[]` | |
|
||||
| `MemoryLayout` | `bank`, `type`, `clockSpeed`, `manufacturer` | Missing `size` field (known bug) |
|
||||
| `Os` | `platform`, `distro`, `release`, `codename`, `kernel`, `arch`, `hostname`, `codepage`, `logofile`, `serial`, `build`, `uptime` | |
|
||||
| `Os` | `platform`, `distro`, `release`, `codename`, `arch`, `hostname`, `logofile`, `serial`, `build`, `uptime` | |
|
||||
| `Baseboard` | `manufacturer`, `model`, `version`, `serial` | |
|
||||
| `SystemInfo` | `manufacturer`, `model`, `version`, `serial`, `uuid` | |
|
||||
| `Versions` | `kernel`, `docker`, `unraid`, `node` | |
|
||||
| `InfoApps` | `installed`, `started` | |
|
||||
| `Versions` | `docker`, `unraid`, `node` | |
|
||||
| `Network` | `iface`, `ifaceName`, `ipv4`, `ipv6`, `mac`, `internal`, `operstate`, `type`, `duplex`, `mtu`, `speed`, `carrierChanges`, `id`, `accessUrls[]` | Implements Node |
|
||||
| `AccessUrl` | `type`, `name`, `ipv4`, `ipv6` | |
|
||||
| `Share` | `name`, `free`, `used`, `size`, `include[]`, `exclude[]`, `cache`, `nameOrig`, `comment`, `allocator`, `splitLevel`, `floor`, `cow`, `color`, `luksStatus` | |
|
||||
|
||||
@@ -120,7 +120,7 @@ Learn More about the Unraid API
|
||||
|
||||
* Linux Kernel 6.12.54-Unraid
|
||||
* Samba 4.23.2
|
||||
* Updated versions of openssl, mesa, kernel-firmware, git, exfatprogs, and more
|
||||
* Updated versions of mesa, kernel-firmware, git, exfatprogs, and more
|
||||
|
||||
**Plugin Compatibility Notice**
|
||||
-------------------------------
|
||||
|
||||
@@ -892,7 +892,6 @@ type DockerNetwork {
|
||||
|
||||
```graphql
|
||||
type Info implements Node {
|
||||
apps: InfoApps
|
||||
baseboard: Baseboard
|
||||
cpu: InfoCpu
|
||||
devices: Devices
|
||||
@@ -945,10 +944,8 @@ type Os {
|
||||
distro: String
|
||||
release: String
|
||||
codename: String
|
||||
kernel: String
|
||||
arch: String
|
||||
hostname: String
|
||||
codepage: String
|
||||
logofile: String
|
||||
serial: String
|
||||
build: String
|
||||
|
||||
@@ -220,13 +220,12 @@ Then access at `http://YOUR_SERVER_IP/graphql` to explore the schema via Apollo
|
||||
```graphql
|
||||
query {
|
||||
info {
|
||||
os { platform distro release uptime hostname arch kernel }
|
||||
os { platform distro release uptime hostname arch }
|
||||
cpu { manufacturer brand cores threads }
|
||||
memory { layout { bank type clockSpeed manufacturer } }
|
||||
baseboard { manufacturer model version serial }
|
||||
system { manufacturer model version serial uuid }
|
||||
versions { kernel docker unraid node }
|
||||
apps { installed started }
|
||||
versions { docker unraid node }
|
||||
machineId
|
||||
time
|
||||
}
|
||||
|
||||
@@ -468,7 +468,6 @@ type Config implements Node {
|
||||
|
||||
type CoreVersions {
|
||||
api: String
|
||||
kernel: String
|
||||
unraid: String
|
||||
}
|
||||
|
||||
@@ -478,7 +477,6 @@ type PackageVersions {
|
||||
nginx: String
|
||||
node: String
|
||||
npm: String
|
||||
openssl: String
|
||||
php: String
|
||||
pm2: String
|
||||
}
|
||||
@@ -487,33 +485,6 @@ type InfoVersions implements Node {
|
||||
id: PrefixedID!
|
||||
core: CoreVersions!
|
||||
packages: PackageVersions
|
||||
# Flattened fields used by the MCP tool queries (may exist in live API)
|
||||
kernel: String
|
||||
openssl: String
|
||||
systemOpenssl: String
|
||||
systemOpensslLib: String
|
||||
node: String
|
||||
v8: String
|
||||
npm: String
|
||||
yarn: String
|
||||
pm2: String
|
||||
gulp: String
|
||||
grunt: String
|
||||
git: String
|
||||
tsc: String
|
||||
mysql: String
|
||||
redis: String
|
||||
mongodb: String
|
||||
apache: String
|
||||
nginx: String
|
||||
php: String
|
||||
docker: String
|
||||
postfix: String
|
||||
postgresql: String
|
||||
perl: String
|
||||
python: String
|
||||
gcc: String
|
||||
unraid: String
|
||||
}
|
||||
|
||||
type InfoOs implements Node {
|
||||
@@ -522,7 +493,6 @@ type InfoOs implements Node {
|
||||
distro: String
|
||||
release: String
|
||||
codename: String
|
||||
kernel: String
|
||||
arch: String
|
||||
hostname: String
|
||||
logofile: String
|
||||
@@ -532,7 +502,6 @@ type InfoOs implements Node {
|
||||
fqdn: String
|
||||
servicepack: String
|
||||
uefi: Boolean
|
||||
codepage: String
|
||||
}
|
||||
|
||||
type InfoCpu implements Node {
|
||||
@@ -714,11 +683,6 @@ type InfoDisplay implements Node {
|
||||
wwn: Boolean!
|
||||
}
|
||||
|
||||
type Apps {
|
||||
installed: Int
|
||||
started: Int
|
||||
}
|
||||
|
||||
type Info implements Node {
|
||||
id: PrefixedID!
|
||||
os: InfoOs!
|
||||
@@ -729,7 +693,6 @@ type Info implements Node {
|
||||
versions: InfoVersions!
|
||||
devices: InfoDevices!
|
||||
display: InfoDisplay!
|
||||
apps: Apps
|
||||
machineId: ID
|
||||
time: DateTime!
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user