@velaro/mcp-server 2.0.143 → 2.0.145
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/parity/kb-domain.customer.js +39 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@velaro/mcp-server",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.145",
|
|
4
4
|
"description": "Velaro MCP server — connect Claude and other AI agents directly to your Velaro account: KB, workflows, bots, conversations, contacts, routing, and more.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// velaro kb domain get|set|verify (customer): the site's Knowledge Base custom domain. The site comes from the credential, never an argument.
|
|
2
|
+
// Parity module (CLI `kb domain` -> MCP kb_domain_get / kb_domain_set / kb_domain_verify).
|
|
3
|
+
|
|
4
|
+
export const tools = [
|
|
5
|
+
{
|
|
6
|
+
name: 'kb_domain_get',
|
|
7
|
+
description: 'Get your help center custom domain: the domain, its status (pending or active), the CNAME target to point it at, and whether DNS already points to Velaro. Read-only.',
|
|
8
|
+
inputSchema: { type: 'object', properties: {} },
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
name: 'kb_domain_set',
|
|
12
|
+
description: 'Set your help center custom domain, e.g. "help.acme.com". Pass an empty string to clear it. Other Knowledge Base settings are kept as they are. Requires the KB Custom Domain add-on. After setting, add a CNAME record at your DNS provider and run kb_domain_verify.',
|
|
13
|
+
inputSchema: { type: 'object', properties: { domain: { type: 'string', description: 'Custom domain such as help.acme.com. Empty string clears it.' } }, required: ['domain'] },
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: 'kb_domain_verify',
|
|
17
|
+
description: 'Check your help center custom domain now: does the domain resolve to Velaro, and what is its status. Read-only; changes nothing.',
|
|
18
|
+
inputSchema: { type: 'object', properties: {} },
|
|
19
|
+
},
|
|
20
|
+
];
|
|
21
|
+
|
|
22
|
+
export const handlers = {
|
|
23
|
+
kb_domain_get: async (_a, ctx) => ctx.api('GET', '/api/kb/settings/domain'),
|
|
24
|
+
kb_domain_verify: async (_a, ctx) => ctx.api('POST', '/api/kb/settings/domain/verify', {}),
|
|
25
|
+
kb_domain_set: async (a, ctx) => {
|
|
26
|
+
if (typeof a?.domain !== 'string') throw new Error('domain is required (use an empty string to clear it).');
|
|
27
|
+
const c = await ctx.api('GET', '/api/kb/settings');
|
|
28
|
+
await ctx.api('POST', '/api/kb/settings', {
|
|
29
|
+
companyName: c.companyName ?? '', themeColor: c.themeColor ?? '', themePreset: c.themePreset ?? null,
|
|
30
|
+
headerText: c.headerText ?? '', returnLinkText: c.returnLinkText ?? '', returnLinkUrl: c.returnLinkUrl ?? '',
|
|
31
|
+
logoUrl: c.logoUrl ?? '', domain: a.domain.trim(), topicLayout: c.topicLayout ?? 'grid',
|
|
32
|
+
articleLayout: c.articleLayout ?? 'table', showLastUpdated: c.showLastUpdated ?? true,
|
|
33
|
+
enableLiveChat: c.enableLiveChat ?? false, liveChatGroupId: c.liveChatGroupId ?? 0,
|
|
34
|
+
enableKbBot: c.enableKbBot ?? false, kbChatWindowId: c.kbChatWindowId ?? 0,
|
|
35
|
+
seoMetaDescription: c.seoMetaDescription ?? '', ga4MeasurementId: c.ga4MeasurementId ?? '',
|
|
36
|
+
});
|
|
37
|
+
return ctx.api('GET', '/api/kb/settings/domain');
|
|
38
|
+
},
|
|
39
|
+
};
|