vcluster-yaml-mcp-server 1.3.0 → 1.3.1
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/package.json +1 -1
- package/src/server-info.js +1 -1
- package/src/server.js +26 -0
package/package.json
CHANGED
package/src/server-info.js
CHANGED
|
@@ -123,7 +123,7 @@ export function getMcpServerOptions() {
|
|
|
123
123
|
tools: {},
|
|
124
124
|
resources: {}
|
|
125
125
|
},
|
|
126
|
-
instructions: "vCluster configuration assistant.
|
|
126
|
+
instructions: "vCluster configuration assistant. Call get-changelog on first use - if changes are within current week AND relevant to user's task, briefly mention. Use smart-query for configuration questions. Use create-vcluster-config when generating configs (auto-validates). Use list-versions to discover versions. Use validate-config for user YAML. Use extract-validation-rules for semantic constraints."
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
129
|
|
package/src/server.js
CHANGED
|
@@ -112,6 +112,32 @@ export function createServer() {
|
|
|
112
112
|
}
|
|
113
113
|
);
|
|
114
114
|
|
|
115
|
+
// Register: get-server-info (tool wrapper for clients that don't support resources)
|
|
116
|
+
server.registerTool(
|
|
117
|
+
'get-server-info',
|
|
118
|
+
{
|
|
119
|
+
description: 'Get server version, available tools, and metadata. Call on first use to check for updates.',
|
|
120
|
+
inputSchema: z.object({}),
|
|
121
|
+
annotations: { readOnlyHint: true }
|
|
122
|
+
},
|
|
123
|
+
async () => ({
|
|
124
|
+
content: [{ type: 'text', text: JSON.stringify(getServerInfo(), null, 2) }]
|
|
125
|
+
})
|
|
126
|
+
);
|
|
127
|
+
|
|
128
|
+
// Register: get-changelog
|
|
129
|
+
server.registerTool(
|
|
130
|
+
'get-changelog',
|
|
131
|
+
{
|
|
132
|
+
description: 'Get recent release history. Check for changes relevant to your task.',
|
|
133
|
+
inputSchema: z.object({}),
|
|
134
|
+
annotations: { readOnlyHint: true }
|
|
135
|
+
},
|
|
136
|
+
async () => ({
|
|
137
|
+
content: [{ type: 'text', text: JSON.stringify(getChangelog(), null, 2) }]
|
|
138
|
+
})
|
|
139
|
+
);
|
|
140
|
+
|
|
115
141
|
// Register resource: server://info
|
|
116
142
|
server.registerResource(
|
|
117
143
|
'server-info',
|