@nextoolsolutions/mcp-glpi-core 1.3.1 → 1.3.2
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/CHANGELOG.md +7 -0
- package/dist/policy.d.ts +2 -2
- package/dist/policy.js +3 -3
- package/dist/server-policy.d.ts +1 -1
- package/dist/server-policy.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,13 @@ Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). Versions follo
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [1.3.2] - 2026-10-05
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
- **`openWorldHint` is now `true` on every tool.** The tools reach the GLPI instance the user connected, an external
|
|
11
|
+
system controlled by that organization; the MCP spec calls that open-world, and the OpenAI plugin scan flagged
|
|
12
|
+
`false` on every tool. Other annotations are unchanged.
|
|
13
|
+
|
|
7
14
|
## [1.3.1] - 2026-10-04
|
|
8
15
|
|
|
9
16
|
### Fixed
|
package/dist/policy.d.ts
CHANGED
|
@@ -44,8 +44,8 @@ export interface ToolAnnotationHints {
|
|
|
44
44
|
* idempotency.ts);
|
|
45
45
|
* - destructive → destructiveHint, idempotent (deleting twice leaves the
|
|
46
46
|
* same state; the second call just fails).
|
|
47
|
-
* openWorldHint is
|
|
48
|
-
* not
|
|
47
|
+
* openWorldHint is true: every tool reaches the GLPI instance the user connected, an external system
|
|
48
|
+
* controlled by that organization, not by this server (MCP spec; directory scans flag false here).
|
|
49
49
|
*/
|
|
50
50
|
export declare function annotationsFor(kind: OperationKind, toolName?: string): ToolAnnotationHints;
|
|
51
51
|
/** "glpi_v2_list_kb_articles" -> "List kb articles (API v2)": fallback title when a tool has none. */
|
package/dist/policy.js
CHANGED
|
@@ -74,8 +74,8 @@ const ADDITIVE_WRITE_PREFIXES = ["create_", "add_"];
|
|
|
74
74
|
* idempotency.ts);
|
|
75
75
|
* - destructive → destructiveHint, idempotent (deleting twice leaves the
|
|
76
76
|
* same state; the second call just fails).
|
|
77
|
-
* openWorldHint is
|
|
78
|
-
* not
|
|
77
|
+
* openWorldHint is true: every tool reaches the GLPI instance the user connected, an external system
|
|
78
|
+
* controlled by that organization, not by this server (MCP spec; directory scans flag false here).
|
|
79
79
|
*/
|
|
80
80
|
export function annotationsFor(kind, toolName) {
|
|
81
81
|
const verb = toolName ? verbOf(toolName) : "";
|
|
@@ -85,7 +85,7 @@ export function annotationsFor(kind, toolName) {
|
|
|
85
85
|
idempotentHint: kind === "read" ||
|
|
86
86
|
kind === "destructive" ||
|
|
87
87
|
IDEMPOTENT_WRITE_PREFIXES.some((p) => verb.startsWith(p)),
|
|
88
|
-
openWorldHint:
|
|
88
|
+
openWorldHint: true,
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
91
|
/** "glpi_v2_list_kb_articles" -> "List kb articles (API v2)": fallback title when a tool has none. */
|
package/dist/server-policy.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* registered afterwards — present or future — gets:
|
|
8
8
|
*
|
|
9
9
|
* 1. MCP annotations derived from its name (title, readOnlyHint,
|
|
10
|
-
* destructiveHint, idempotentHint, openWorldHint:
|
|
10
|
+
* destructiveHint, idempotentHint, openWorldHint: true);
|
|
11
11
|
* 2. a mandatory `reason` field on destructive tools;
|
|
12
12
|
* 3. a policy check that runs before the handler touches GLPI.
|
|
13
13
|
*
|
package/dist/server-policy.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* registered afterwards — present or future — gets:
|
|
8
8
|
*
|
|
9
9
|
* 1. MCP annotations derived from its name (title, readOnlyHint,
|
|
10
|
-
* destructiveHint, idempotentHint, openWorldHint:
|
|
10
|
+
* destructiveHint, idempotentHint, openWorldHint: true);
|
|
11
11
|
* 2. a mandatory `reason` field on destructive tools;
|
|
12
12
|
* 3. a policy check that runs before the handler touches GLPI.
|
|
13
13
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextoolsolutions/mcp-glpi-core",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"description": "Shared infrastructure for the GLPI MCP servers: HTTP transport with retry, typed errors, tool-result helpers, write policy, payload formatting and idempotency.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|