@qikdev/mcp 6.7.1 → 6.7.5
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/build/src/tools/campaign.d.ts.map +1 -1
- package/build/src/tools/campaign.js +9 -76
- package/build/src/tools/campaign.js.map +1 -1
- package/build/src/tools/checkin.d.ts.map +1 -1
- package/build/src/tools/checkin.js +6 -34
- package/build/src/tools/checkin.js.map +1 -1
- package/build/src/tools/content.d.ts +29 -0
- package/build/src/tools/content.d.ts.map +1 -0
- package/build/src/tools/content.js +153 -0
- package/build/src/tools/content.js.map +1 -0
- package/build/src/tools/create.d.ts.map +1 -1
- package/build/src/tools/create.js +108 -158
- package/build/src/tools/create.js.map +1 -1
- package/build/src/tools/duplicates.d.ts +27 -0
- package/build/src/tools/duplicates.d.ts.map +1 -0
- package/build/src/tools/duplicates.js +142 -0
- package/build/src/tools/duplicates.js.map +1 -0
- package/build/src/tools/filters.d.ts.map +1 -1
- package/build/src/tools/filters.js +5 -29
- package/build/src/tools/filters.js.map +1 -1
- package/build/src/tools/glossary.d.ts.map +1 -1
- package/build/src/tools/glossary.js +7 -161
- package/build/src/tools/glossary.js.map +1 -1
- package/build/src/tools/index.d.ts.map +1 -1
- package/build/src/tools/index.js +66 -0
- package/build/src/tools/index.js.map +1 -1
- package/build/src/tools/list.js +2 -53
- package/build/src/tools/list.js.map +1 -1
- package/build/src/tools/merge.d.ts +34 -0
- package/build/src/tools/merge.d.ts.map +1 -0
- package/build/src/tools/merge.js +192 -0
- package/build/src/tools/merge.js.map +1 -0
- package/build/src/tools/profile-access.d.ts +47 -0
- package/build/src/tools/profile-access.d.ts.map +1 -0
- package/build/src/tools/profile-access.js +264 -0
- package/build/src/tools/profile-access.js.map +1 -0
- package/build/src/tools/profile-relationships.d.ts +43 -0
- package/build/src/tools/profile-relationships.d.ts.map +1 -0
- package/build/src/tools/profile-relationships.js +270 -0
- package/build/src/tools/profile-relationships.js.map +1 -0
- package/build/src/tools/profile.d.ts.map +1 -1
- package/build/src/tools/profile.js +2 -41
- package/build/src/tools/profile.js.map +1 -1
- package/build/src/tools/relationships.d.ts.map +1 -1
- package/build/src/tools/relationships.js +3 -61
- package/build/src/tools/relationships.js.map +1 -1
- package/build/src/tools/reporting.d.ts.map +1 -1
- package/build/src/tools/reporting.js +10 -63
- package/build/src/tools/reporting.js.map +1 -1
- package/build/src/tools/scope.d.ts +47 -0
- package/build/src/tools/scope.d.ts.map +1 -0
- package/build/src/tools/scope.js +263 -0
- package/build/src/tools/scope.js.map +1 -0
- package/build/src/tools/search.d.ts +19 -0
- package/build/src/tools/search.d.ts.map +1 -0
- package/build/src/tools/search.js +84 -0
- package/build/src/tools/search.js.map +1 -0
- package/build/src/tools/smartlist.d.ts +26 -0
- package/build/src/tools/smartlist.d.ts.map +1 -0
- package/build/src/tools/smartlist.js +126 -0
- package/build/src/tools/smartlist.js.map +1 -0
- package/build/src/tools/sms.d.ts.map +1 -1
- package/build/src/tools/sms.js +4 -35
- package/build/src/tools/sms.js.map +1 -1
- package/build/src/tools/update.d.ts.map +1 -1
- package/build/src/tools/update.js +59 -70
- package/build/src/tools/update.js.map +1 -1
- package/build/src/tools/user.js +1 -1
- package/build/src/tools/user.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Tool } from "@modelcontextprotocol/sdk/types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Merge Tools
|
|
4
|
+
*
|
|
5
|
+
* Preview and execute merging of duplicate profiles.
|
|
6
|
+
*/
|
|
7
|
+
export declare const previewMergeTool: Tool;
|
|
8
|
+
export declare const startMergeTool: Tool;
|
|
9
|
+
export declare const getMergeProgressTool: Tool;
|
|
10
|
+
export declare function handlePreviewMerge(args: {
|
|
11
|
+
ids: string[];
|
|
12
|
+
}): Promise<{
|
|
13
|
+
content: Array<{
|
|
14
|
+
type: string;
|
|
15
|
+
text: string;
|
|
16
|
+
}>;
|
|
17
|
+
}>;
|
|
18
|
+
export declare function handleStartMerge(args: {
|
|
19
|
+
ids: string[];
|
|
20
|
+
}): Promise<{
|
|
21
|
+
content: Array<{
|
|
22
|
+
type: string;
|
|
23
|
+
text: string;
|
|
24
|
+
}>;
|
|
25
|
+
}>;
|
|
26
|
+
export declare function handleGetMergeProgress(args: {
|
|
27
|
+
mergeId: string;
|
|
28
|
+
}): Promise<{
|
|
29
|
+
content: Array<{
|
|
30
|
+
type: string;
|
|
31
|
+
text: string;
|
|
32
|
+
}>;
|
|
33
|
+
}>;
|
|
34
|
+
//# sourceMappingURL=merge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"merge.d.ts","sourceRoot":"","sources":["../../../src/tools/merge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAG1D;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAAE,IA0B9B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,IA0B5B,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,IAoBlC,CAAC;AAEF,wBAAsB,kBAAkB,CAAC,IAAI,EAAE;IAC7C,GAAG,EAAE,MAAM,EAAE,CAAC;CACf,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE,CAAC,CA0C9D;AAED,wBAAsB,gBAAgB,CAAC,IAAI,EAAE;IAC3C,GAAG,EAAE,MAAM,EAAE,CAAC;CACf,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE,CAAC,CA0C9D;AAED,wBAAsB,sBAAsB,CAAC,IAAI,EAAE;IACjD,OAAO,EAAE,MAAM,CAAC;CACjB,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE,CAAC,CAsC9D"}
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { ConfigManager } from "../config.js";
|
|
2
|
+
/**
|
|
3
|
+
* Merge Tools
|
|
4
|
+
*
|
|
5
|
+
* Preview and execute merging of duplicate profiles.
|
|
6
|
+
*/
|
|
7
|
+
export const previewMergeTool = {
|
|
8
|
+
name: "preview_merge",
|
|
9
|
+
description: `Preview the result of merging profiles before executing.
|
|
10
|
+
|
|
11
|
+
Shows which profile will be primary, what data will be merged,
|
|
12
|
+
and what references will be updated.
|
|
13
|
+
|
|
14
|
+
**Example:**
|
|
15
|
+
\`\`\`json
|
|
16
|
+
{
|
|
17
|
+
"ids": ["profileId1", "profileId2", "profileId3"]
|
|
18
|
+
}
|
|
19
|
+
\`\`\`
|
|
20
|
+
|
|
21
|
+
The first profile becomes the primary (surviving) record.`,
|
|
22
|
+
inputSchema: {
|
|
23
|
+
type: "object",
|
|
24
|
+
properties: {
|
|
25
|
+
ids: {
|
|
26
|
+
type: "array",
|
|
27
|
+
items: { type: "string" },
|
|
28
|
+
description: "Profile IDs to merge (first = primary)"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
required: ["ids"]
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
export const startMergeTool = {
|
|
35
|
+
name: "start_merge",
|
|
36
|
+
description: `Execute a merge operation to combine profiles.
|
|
37
|
+
|
|
38
|
+
The first profile becomes the primary record. All data from other
|
|
39
|
+
profiles is merged in, and references are updated.
|
|
40
|
+
|
|
41
|
+
**Warning:** This operation cannot be easily undone.
|
|
42
|
+
|
|
43
|
+
**Example:**
|
|
44
|
+
\`\`\`json
|
|
45
|
+
{
|
|
46
|
+
"ids": ["primaryProfileId", "duplicateId1", "duplicateId2"]
|
|
47
|
+
}
|
|
48
|
+
\`\`\``,
|
|
49
|
+
inputSchema: {
|
|
50
|
+
type: "object",
|
|
51
|
+
properties: {
|
|
52
|
+
ids: {
|
|
53
|
+
type: "array",
|
|
54
|
+
items: { type: "string" },
|
|
55
|
+
description: "Profile IDs to merge (first = primary that survives)"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
required: ["ids"]
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
export const getMergeProgressTool = {
|
|
62
|
+
name: "get_merge_progress",
|
|
63
|
+
description: `Check the progress of an ongoing merge operation.
|
|
64
|
+
|
|
65
|
+
**Example:**
|
|
66
|
+
\`\`\`json
|
|
67
|
+
{
|
|
68
|
+
"mergeId": "batchJobId"
|
|
69
|
+
}
|
|
70
|
+
\`\`\``,
|
|
71
|
+
inputSchema: {
|
|
72
|
+
type: "object",
|
|
73
|
+
properties: {
|
|
74
|
+
mergeId: {
|
|
75
|
+
type: "string",
|
|
76
|
+
description: "The merge batch job ID"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
required: ["mergeId"]
|
|
80
|
+
},
|
|
81
|
+
};
|
|
82
|
+
export async function handlePreviewMerge(args) {
|
|
83
|
+
try {
|
|
84
|
+
const configManager = new ConfigManager();
|
|
85
|
+
const config = await configManager.loadConfig();
|
|
86
|
+
if (!config) {
|
|
87
|
+
throw new Error('Qik MCP server not configured. Run setup first.');
|
|
88
|
+
}
|
|
89
|
+
const response = await fetch(`${config.apiUrl || 'https://api.qik.dev'}/merge/preview`, {
|
|
90
|
+
method: 'POST',
|
|
91
|
+
headers: {
|
|
92
|
+
'Authorization': `Bearer ${config.accessToken}`,
|
|
93
|
+
'Content-Type': 'application/json',
|
|
94
|
+
},
|
|
95
|
+
body: JSON.stringify({
|
|
96
|
+
ids: args.ids
|
|
97
|
+
})
|
|
98
|
+
});
|
|
99
|
+
if (!response.ok) {
|
|
100
|
+
const errorText = await response.text();
|
|
101
|
+
throw new Error(`HTTP ${response.status}: ${errorText}`);
|
|
102
|
+
}
|
|
103
|
+
const data = await response.json();
|
|
104
|
+
return {
|
|
105
|
+
content: [{
|
|
106
|
+
type: "text",
|
|
107
|
+
text: JSON.stringify(data, null, 2)
|
|
108
|
+
}]
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
catch (error) {
|
|
112
|
+
return {
|
|
113
|
+
content: [{
|
|
114
|
+
type: "text",
|
|
115
|
+
text: JSON.stringify({ error: error.message }, null, 2)
|
|
116
|
+
}]
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
export async function handleStartMerge(args) {
|
|
121
|
+
try {
|
|
122
|
+
const configManager = new ConfigManager();
|
|
123
|
+
const config = await configManager.loadConfig();
|
|
124
|
+
if (!config) {
|
|
125
|
+
throw new Error('Qik MCP server not configured. Run setup first.');
|
|
126
|
+
}
|
|
127
|
+
const response = await fetch(`${config.apiUrl || 'https://api.qik.dev'}/merge/start`, {
|
|
128
|
+
method: 'POST',
|
|
129
|
+
headers: {
|
|
130
|
+
'Authorization': `Bearer ${config.accessToken}`,
|
|
131
|
+
'Content-Type': 'application/json',
|
|
132
|
+
},
|
|
133
|
+
body: JSON.stringify({
|
|
134
|
+
ids: args.ids
|
|
135
|
+
})
|
|
136
|
+
});
|
|
137
|
+
if (!response.ok) {
|
|
138
|
+
const errorText = await response.text();
|
|
139
|
+
throw new Error(`HTTP ${response.status}: ${errorText}`);
|
|
140
|
+
}
|
|
141
|
+
const data = await response.json();
|
|
142
|
+
return {
|
|
143
|
+
content: [{
|
|
144
|
+
type: "text",
|
|
145
|
+
text: JSON.stringify(data, null, 2)
|
|
146
|
+
}]
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
catch (error) {
|
|
150
|
+
return {
|
|
151
|
+
content: [{
|
|
152
|
+
type: "text",
|
|
153
|
+
text: JSON.stringify({ error: error.message }, null, 2)
|
|
154
|
+
}]
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
export async function handleGetMergeProgress(args) {
|
|
159
|
+
try {
|
|
160
|
+
const configManager = new ConfigManager();
|
|
161
|
+
const config = await configManager.loadConfig();
|
|
162
|
+
if (!config) {
|
|
163
|
+
throw new Error('Qik MCP server not configured. Run setup first.');
|
|
164
|
+
}
|
|
165
|
+
const response = await fetch(`${config.apiUrl || 'https://api.qik.dev'}/merge/progress/${args.mergeId}`, {
|
|
166
|
+
headers: {
|
|
167
|
+
'Authorization': `Bearer ${config.accessToken}`,
|
|
168
|
+
'Content-Type': 'application/json',
|
|
169
|
+
},
|
|
170
|
+
});
|
|
171
|
+
if (!response.ok) {
|
|
172
|
+
const errorText = await response.text();
|
|
173
|
+
throw new Error(`HTTP ${response.status}: ${errorText}`);
|
|
174
|
+
}
|
|
175
|
+
const data = await response.json();
|
|
176
|
+
return {
|
|
177
|
+
content: [{
|
|
178
|
+
type: "text",
|
|
179
|
+
text: JSON.stringify(data, null, 2)
|
|
180
|
+
}]
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
catch (error) {
|
|
184
|
+
return {
|
|
185
|
+
content: [{
|
|
186
|
+
type: "text",
|
|
187
|
+
text: JSON.stringify({ error: error.message }, null, 2)
|
|
188
|
+
}]
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
//# sourceMappingURL=merge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"merge.js","sourceRoot":"","sources":["../../../src/tools/merge.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAS;IACpC,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE;;;;;;;;;;;;0DAY2C;IACxD,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,GAAG,EAAE;gBACH,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACzB,WAAW,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vG,OAAO,EAAE;gBACP,eAAe,EAAE,UAAU,MAAM,CAAC,WAAW,EAAE;gBAC/C,cAAc,EAAE,kBAAkB;aACnC;SACF,CAAC,CAAC;QAEH,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;YACjB,MAAM,SAAS,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;YACxC,MAAM,IAAI,KAAK,CAAC,QAAQ,QAAQ,CAAC,MAAM,KAAK,SAAS,EAAE,CAAC,CAAC;QAC3D,CAAC;QAED,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QAEnC,OAAO;YACL,OAAO,EAAE,CAAC;oBACR,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;iBACpC,CAAC;SACH,CAAC;IAEJ,CAAC;IAAC,OAAO,KAAU,EAAE,CAAC;QACpB,OAAO;YACL,OAAO,EAAE,CAAC;oBACR,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;iBACxD,CAAC;SACH,CAAC;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Tool } from "@modelcontextprotocol/sdk/types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Profile Access Tools
|
|
4
|
+
*
|
|
5
|
+
* Get information about a profile's groups, access, and permissions.
|
|
6
|
+
*/
|
|
7
|
+
export declare const getProfileGroupsTool: Tool;
|
|
8
|
+
export declare const getProfileAccessTool: Tool;
|
|
9
|
+
export declare const getProfileBlockoutTool: Tool;
|
|
10
|
+
export declare const createProfileBlockoutTool: Tool;
|
|
11
|
+
export declare function handleGetProfileGroups(args: {
|
|
12
|
+
profileId: string;
|
|
13
|
+
}): Promise<{
|
|
14
|
+
content: Array<{
|
|
15
|
+
type: string;
|
|
16
|
+
text: string;
|
|
17
|
+
}>;
|
|
18
|
+
}>;
|
|
19
|
+
export declare function handleGetProfileAccess(args: {
|
|
20
|
+
profileId: string;
|
|
21
|
+
}): Promise<{
|
|
22
|
+
content: Array<{
|
|
23
|
+
type: string;
|
|
24
|
+
text: string;
|
|
25
|
+
}>;
|
|
26
|
+
}>;
|
|
27
|
+
export declare function handleGetProfileBlockout(args: {
|
|
28
|
+
profileId: string;
|
|
29
|
+
}): Promise<{
|
|
30
|
+
content: Array<{
|
|
31
|
+
type: string;
|
|
32
|
+
text: string;
|
|
33
|
+
}>;
|
|
34
|
+
}>;
|
|
35
|
+
export declare function handleCreateProfileBlockout(args: {
|
|
36
|
+
profileId: string;
|
|
37
|
+
startDate: string;
|
|
38
|
+
endDate: string;
|
|
39
|
+
title?: string;
|
|
40
|
+
reason?: string;
|
|
41
|
+
}): Promise<{
|
|
42
|
+
content: Array<{
|
|
43
|
+
type: string;
|
|
44
|
+
text: string;
|
|
45
|
+
}>;
|
|
46
|
+
}>;
|
|
47
|
+
//# sourceMappingURL=profile-access.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile-access.d.ts","sourceRoot":"","sources":["../../../src/tools/profile-access.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAG1D;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,EAAE,IAsBlC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,IAuBlC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,IAuBpC,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,IA0CvC,CAAC;AAEF,wBAAsB,sBAAsB,CAAC,IAAI,EAAE;IACjD,SAAS,EAAE,MAAM,CAAC;CACnB,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE,CAAC,CAsC9D;AAED,wBAAsB,sBAAsB,CAAC,IAAI,EAAE;IACjD,SAAS,EAAE,MAAM,CAAC;CACnB,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE,CAAC,CAsC9D;AAED,wBAAsB,wBAAwB,CAAC,IAAI,EAAE;IACnD,SAAS,EAAE,MAAM,CAAC;CACnB,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE,CAAC,CAsC9D;AAED,wBAAsB,2BAA2B,CAAC,IAAI,EAAE;IACtD,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE,CAAC,CA6C9D"}
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
import { ConfigManager } from "../config.js";
|
|
2
|
+
/**
|
|
3
|
+
* Profile Access Tools
|
|
4
|
+
*
|
|
5
|
+
* Get information about a profile's groups, access, and permissions.
|
|
6
|
+
*/
|
|
7
|
+
export const getProfileGroupsTool = {
|
|
8
|
+
name: "get_profile_groups",
|
|
9
|
+
description: `Get all groups (unit scopes) that a profile belongs to.
|
|
10
|
+
|
|
11
|
+
Returns scopes where the profile holds a position with their role titles.
|
|
12
|
+
|
|
13
|
+
**Example:**
|
|
14
|
+
\`\`\`json
|
|
15
|
+
{
|
|
16
|
+
"profileId": "profileId123"
|
|
17
|
+
}
|
|
18
|
+
\`\`\``,
|
|
19
|
+
inputSchema: {
|
|
20
|
+
type: "object",
|
|
21
|
+
properties: {
|
|
22
|
+
profileId: {
|
|
23
|
+
type: "string",
|
|
24
|
+
description: "The profile ID"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
required: ["profileId"]
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
export const getProfileAccessTool = {
|
|
31
|
+
name: "get_profile_access",
|
|
32
|
+
description: `Get access/permissions information for a profile.
|
|
33
|
+
|
|
34
|
+
Shows which scopes the profile has access to and what roles they hold.
|
|
35
|
+
Checks both direct profile assignments and user login (persona) assignments.
|
|
36
|
+
|
|
37
|
+
**Example:**
|
|
38
|
+
\`\`\`json
|
|
39
|
+
{
|
|
40
|
+
"profileId": "profileId123"
|
|
41
|
+
}
|
|
42
|
+
\`\`\``,
|
|
43
|
+
inputSchema: {
|
|
44
|
+
type: "object",
|
|
45
|
+
properties: {
|
|
46
|
+
profileId: {
|
|
47
|
+
type: "string",
|
|
48
|
+
description: "The profile ID"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
required: ["profileId"]
|
|
52
|
+
},
|
|
53
|
+
};
|
|
54
|
+
export const getProfileBlockoutTool = {
|
|
55
|
+
name: "get_profile_blockout",
|
|
56
|
+
description: `Get blockout periods for a profile.
|
|
57
|
+
|
|
58
|
+
Blockout periods are date ranges when the person is unavailable
|
|
59
|
+
(vacation, leave, unable to volunteer, etc.).
|
|
60
|
+
|
|
61
|
+
**Example:**
|
|
62
|
+
\`\`\`json
|
|
63
|
+
{
|
|
64
|
+
"profileId": "profileId123"
|
|
65
|
+
}
|
|
66
|
+
\`\`\``,
|
|
67
|
+
inputSchema: {
|
|
68
|
+
type: "object",
|
|
69
|
+
properties: {
|
|
70
|
+
profileId: {
|
|
71
|
+
type: "string",
|
|
72
|
+
description: "The profile ID"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
required: ["profileId"]
|
|
76
|
+
},
|
|
77
|
+
};
|
|
78
|
+
export const createProfileBlockoutTool = {
|
|
79
|
+
name: "create_profile_blockout",
|
|
80
|
+
description: `Create a blockout period for a profile.
|
|
81
|
+
|
|
82
|
+
Marks a date range when the person is unavailable.
|
|
83
|
+
|
|
84
|
+
**Example:**
|
|
85
|
+
\`\`\`json
|
|
86
|
+
{
|
|
87
|
+
"profileId": "profileId123",
|
|
88
|
+
"startDate": "2024-12-20",
|
|
89
|
+
"endDate": "2024-12-31",
|
|
90
|
+
"title": "Christmas Holiday",
|
|
91
|
+
"reason": "Vacation"
|
|
92
|
+
}
|
|
93
|
+
\`\`\``,
|
|
94
|
+
inputSchema: {
|
|
95
|
+
type: "object",
|
|
96
|
+
properties: {
|
|
97
|
+
profileId: {
|
|
98
|
+
type: "string",
|
|
99
|
+
description: "The profile ID"
|
|
100
|
+
},
|
|
101
|
+
startDate: {
|
|
102
|
+
type: "string",
|
|
103
|
+
description: "Start date (ISO format)"
|
|
104
|
+
},
|
|
105
|
+
endDate: {
|
|
106
|
+
type: "string",
|
|
107
|
+
description: "End date (ISO format)"
|
|
108
|
+
},
|
|
109
|
+
title: {
|
|
110
|
+
type: "string",
|
|
111
|
+
description: "Title/name for the blockout period"
|
|
112
|
+
},
|
|
113
|
+
reason: {
|
|
114
|
+
type: "string",
|
|
115
|
+
description: "Reason for unavailability"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
required: ["profileId", "startDate", "endDate"]
|
|
119
|
+
},
|
|
120
|
+
};
|
|
121
|
+
export async function handleGetProfileGroups(args) {
|
|
122
|
+
try {
|
|
123
|
+
const configManager = new ConfigManager();
|
|
124
|
+
const config = await configManager.loadConfig();
|
|
125
|
+
if (!config) {
|
|
126
|
+
throw new Error('Qik MCP server not configured. Run setup first.');
|
|
127
|
+
}
|
|
128
|
+
const response = await fetch(`${config.apiUrl || 'https://api.qik.dev'}/profile/${args.profileId}/groups`, {
|
|
129
|
+
headers: {
|
|
130
|
+
'Authorization': `Bearer ${config.accessToken}`,
|
|
131
|
+
'Content-Type': 'application/json',
|
|
132
|
+
},
|
|
133
|
+
});
|
|
134
|
+
if (!response.ok) {
|
|
135
|
+
const errorText = await response.text();
|
|
136
|
+
throw new Error(`HTTP ${response.status}: ${errorText}`);
|
|
137
|
+
}
|
|
138
|
+
const data = await response.json();
|
|
139
|
+
return {
|
|
140
|
+
content: [{
|
|
141
|
+
type: "text",
|
|
142
|
+
text: JSON.stringify(data, null, 2)
|
|
143
|
+
}]
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
catch (error) {
|
|
147
|
+
return {
|
|
148
|
+
content: [{
|
|
149
|
+
type: "text",
|
|
150
|
+
text: JSON.stringify({ error: error.message }, null, 2)
|
|
151
|
+
}]
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
export async function handleGetProfileAccess(args) {
|
|
156
|
+
try {
|
|
157
|
+
const configManager = new ConfigManager();
|
|
158
|
+
const config = await configManager.loadConfig();
|
|
159
|
+
if (!config) {
|
|
160
|
+
throw new Error('Qik MCP server not configured. Run setup first.');
|
|
161
|
+
}
|
|
162
|
+
const response = await fetch(`${config.apiUrl || 'https://api.qik.dev'}/profile/${args.profileId}/access`, {
|
|
163
|
+
headers: {
|
|
164
|
+
'Authorization': `Bearer ${config.accessToken}`,
|
|
165
|
+
'Content-Type': 'application/json',
|
|
166
|
+
},
|
|
167
|
+
});
|
|
168
|
+
if (!response.ok) {
|
|
169
|
+
const errorText = await response.text();
|
|
170
|
+
throw new Error(`HTTP ${response.status}: ${errorText}`);
|
|
171
|
+
}
|
|
172
|
+
const data = await response.json();
|
|
173
|
+
return {
|
|
174
|
+
content: [{
|
|
175
|
+
type: "text",
|
|
176
|
+
text: JSON.stringify(data, null, 2)
|
|
177
|
+
}]
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
catch (error) {
|
|
181
|
+
return {
|
|
182
|
+
content: [{
|
|
183
|
+
type: "text",
|
|
184
|
+
text: JSON.stringify({ error: error.message }, null, 2)
|
|
185
|
+
}]
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
export async function handleGetProfileBlockout(args) {
|
|
190
|
+
try {
|
|
191
|
+
const configManager = new ConfigManager();
|
|
192
|
+
const config = await configManager.loadConfig();
|
|
193
|
+
if (!config) {
|
|
194
|
+
throw new Error('Qik MCP server not configured. Run setup first.');
|
|
195
|
+
}
|
|
196
|
+
const response = await fetch(`${config.apiUrl || 'https://api.qik.dev'}/profile/${args.profileId}/blockout`, {
|
|
197
|
+
headers: {
|
|
198
|
+
'Authorization': `Bearer ${config.accessToken}`,
|
|
199
|
+
'Content-Type': 'application/json',
|
|
200
|
+
},
|
|
201
|
+
});
|
|
202
|
+
if (!response.ok) {
|
|
203
|
+
const errorText = await response.text();
|
|
204
|
+
throw new Error(`HTTP ${response.status}: ${errorText}`);
|
|
205
|
+
}
|
|
206
|
+
const data = await response.json();
|
|
207
|
+
return {
|
|
208
|
+
content: [{
|
|
209
|
+
type: "text",
|
|
210
|
+
text: JSON.stringify(data, null, 2)
|
|
211
|
+
}]
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
catch (error) {
|
|
215
|
+
return {
|
|
216
|
+
content: [{
|
|
217
|
+
type: "text",
|
|
218
|
+
text: JSON.stringify({ error: error.message }, null, 2)
|
|
219
|
+
}]
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
export async function handleCreateProfileBlockout(args) {
|
|
224
|
+
try {
|
|
225
|
+
const configManager = new ConfigManager();
|
|
226
|
+
const config = await configManager.loadConfig();
|
|
227
|
+
if (!config) {
|
|
228
|
+
throw new Error('Qik MCP server not configured. Run setup first.');
|
|
229
|
+
}
|
|
230
|
+
const response = await fetch(`${config.apiUrl || 'https://api.qik.dev'}/profile/${args.profileId}/blockout`, {
|
|
231
|
+
method: 'POST',
|
|
232
|
+
headers: {
|
|
233
|
+
'Authorization': `Bearer ${config.accessToken}`,
|
|
234
|
+
'Content-Type': 'application/json',
|
|
235
|
+
},
|
|
236
|
+
body: JSON.stringify({
|
|
237
|
+
startDate: args.startDate,
|
|
238
|
+
endDate: args.endDate,
|
|
239
|
+
title: args.title,
|
|
240
|
+
reason: args.reason
|
|
241
|
+
})
|
|
242
|
+
});
|
|
243
|
+
if (!response.ok) {
|
|
244
|
+
const errorText = await response.text();
|
|
245
|
+
throw new Error(`HTTP ${response.status}: ${errorText}`);
|
|
246
|
+
}
|
|
247
|
+
const data = await response.json();
|
|
248
|
+
return {
|
|
249
|
+
content: [{
|
|
250
|
+
type: "text",
|
|
251
|
+
text: JSON.stringify(data, null, 2)
|
|
252
|
+
}]
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
catch (error) {
|
|
256
|
+
return {
|
|
257
|
+
content: [{
|
|
258
|
+
type: "text",
|
|
259
|
+
text: JSON.stringify({ error: error.message }, null, 2)
|
|
260
|
+
}]
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
//# sourceMappingURL=profile-access.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile-access.js","sourceRoot":"","sources":["../../../src/tools/profile-access.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAS;IACxC,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE;;;;;;;;;OASR;IACL,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,gBAAgB;aAC9B;SACF;QACD,QAAQ,EAAE,CAAC,WAAW,CAAC;KACxB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAS;IACxC,IAAI,EAAE,oBAAoB;IAC1B,W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AC;SACH,CAAC;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Tool } from "@modelcontextprotocol/sdk/types.js";
|
|
2
|
+
export declare const getProfileRelationshipsTool: Tool;
|
|
3
|
+
export declare const createRelationshipTool: Tool;
|
|
4
|
+
export declare const deleteRelationshipTool: Tool;
|
|
5
|
+
export declare const createProfileWithRelationshipTool: Tool;
|
|
6
|
+
export declare function handleGetProfileRelationships(args: {
|
|
7
|
+
profileId: string;
|
|
8
|
+
}): Promise<{
|
|
9
|
+
content: Array<{
|
|
10
|
+
type: string;
|
|
11
|
+
text: string;
|
|
12
|
+
}>;
|
|
13
|
+
}>;
|
|
14
|
+
export declare function handleCreateRelationship(args: {
|
|
15
|
+
from: string[];
|
|
16
|
+
to: string[];
|
|
17
|
+
relation: string;
|
|
18
|
+
}): Promise<{
|
|
19
|
+
content: Array<{
|
|
20
|
+
type: string;
|
|
21
|
+
text: string;
|
|
22
|
+
}>;
|
|
23
|
+
}>;
|
|
24
|
+
export declare function handleDeleteRelationship(args: {
|
|
25
|
+
relationshipId: string;
|
|
26
|
+
}): Promise<{
|
|
27
|
+
content: Array<{
|
|
28
|
+
type: string;
|
|
29
|
+
text: string;
|
|
30
|
+
}>;
|
|
31
|
+
}>;
|
|
32
|
+
export declare function handleCreateProfileWithRelationship(args: {
|
|
33
|
+
existingProfileId: string;
|
|
34
|
+
relation: string;
|
|
35
|
+
copyAddress?: boolean;
|
|
36
|
+
profile: any;
|
|
37
|
+
}): Promise<{
|
|
38
|
+
content: Array<{
|
|
39
|
+
type: string;
|
|
40
|
+
text: string;
|
|
41
|
+
}>;
|
|
42
|
+
}>;
|
|
43
|
+
//# sourceMappingURL=profile-relationships.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile-relationships.d.ts","sourceRoot":"","sources":["../../../src/tools/profile-relationships.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAA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