chore: add MCP integration and refactor documentation into modular how-to guides
- Moved GraphQL query samples into a new `docs/queries` directory for better organization. - Added new queries and mutations, including `createHost.graphql` and `GetApiVersion.graphql`. - Introduced `mcp-config.yaml` and updated `docker-compose.yml` for MCP integration. - Updated IntelliJ `.idea/workspace.xml` settings to reflect project changes. - Added new how-to guides (`docs/howtos`) for permissions, tags, MCP integration, and schema usage. - Enhanced tests by updating file paths and improving sample data locations. - Refined permissions and host group structures in `zabbix-hostgroups.ts` and `resolvers.ts`.
This commit is contained in:
parent
2a82fe6cf2
commit
4ec61ffba1
33 changed files with 439 additions and 165 deletions
21
docs/queries/sample_all_devices_query.graphql
Normal file
21
docs/queries/sample_all_devices_query.graphql
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
### Query
|
||||
Use this query to list all devices (hosts with device type and state).
|
||||
|
||||
```graphql
|
||||
query AllDevices($name_pattern: String, $with_items: Boolean) {
|
||||
allDevices(name_pattern: $name_pattern, with_items: $with_items) {
|
||||
hostid
|
||||
host
|
||||
name
|
||||
deviceType
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Variables
|
||||
```json
|
||||
{
|
||||
"name_pattern": "%",
|
||||
"with_items": true
|
||||
}
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue