@togglhq/mcp 1.6.0 → 1.6.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/build/cli.js +1 -1
- package/build/index.js +1 -1
- package/build/{src-C445W-O4.js → src-B6i8Cj87.js} +22 -17
- package/package.json +1 -1
package/build/cli.js
CHANGED
package/build/index.js
CHANGED
|
@@ -30738,7 +30738,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
30738
30738
|
]))
|
|
30739
30739
|
});
|
|
30740
30740
|
//#endregion
|
|
30741
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.
|
|
30741
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.128_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_d4140eb5f67db6c1911197579c0bcec1/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
30742
30742
|
async function getInvitations(httpClient, signal) {
|
|
30743
30743
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
30744
30744
|
}
|
|
@@ -30755,7 +30755,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
30755
30755
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
30756
30756
|
}
|
|
30757
30757
|
//#endregion
|
|
30758
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.
|
|
30758
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.128_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_d4140eb5f67db6c1911197579c0bcec1/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
30759
30759
|
function buildSearchParams$1(params, flattenArrays = false) {
|
|
30760
30760
|
const searchParams = new URLSearchParams();
|
|
30761
30761
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -30767,7 +30767,7 @@ function buildSearchParams$1(params, flattenArrays = false) {
|
|
|
30767
30767
|
return searchParams;
|
|
30768
30768
|
}
|
|
30769
30769
|
//#endregion
|
|
30770
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.
|
|
30770
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.128_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_d4140eb5f67db6c1911197579c0bcec1/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
30771
30771
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
30772
30772
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
30773
30773
|
}
|
|
@@ -30781,7 +30781,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
30781
30781
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
30782
30782
|
}
|
|
30783
30783
|
//#endregion
|
|
30784
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.
|
|
30784
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.128_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_d4140eb5f67db6c1911197579c0bcec1/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
30785
30785
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
30786
30786
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
30787
30787
|
}
|
|
@@ -30801,7 +30801,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
30801
30801
|
});
|
|
30802
30802
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
30803
30803
|
//#endregion
|
|
30804
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.
|
|
30804
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.128_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_d4140eb5f67db6c1911197579c0bcec1/node_modules/@toggl/queries/dist/shared-data/utils/requests.mjs
|
|
30805
30805
|
const META_SYMBOL = Symbol.for("querygen:response:meta");
|
|
30806
30806
|
function withResponseMeta(data, headers, status) {
|
|
30807
30807
|
if (!data) return data;
|
|
@@ -30828,7 +30828,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
30828
30828
|
return searchParams;
|
|
30829
30829
|
}
|
|
30830
30830
|
//#endregion
|
|
30831
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.
|
|
30831
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.128_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_d4140eb5f67db6c1911197579c0bcec1/node_modules/@toggl/queries/dist/shared-data/public-holidays/requests.mjs
|
|
30832
30832
|
async function getPublicHolidays(httpClient, year, { country, organization_id } = {}, signal) {
|
|
30833
30833
|
const response = await httpClient.get(`shared_data/api/publicholidays/${year}`, {
|
|
30834
30834
|
signal,
|
|
@@ -30840,12 +30840,12 @@ async function getPublicHolidays(httpClient, year, { country, organization_id }
|
|
|
30840
30840
|
return withResponseMeta(await response.json(), response.headers, response.status);
|
|
30841
30841
|
}
|
|
30842
30842
|
//#endregion
|
|
30843
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.
|
|
30843
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.128_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_d4140eb5f67db6c1911197579c0bcec1/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
30844
30844
|
async function getStatus(httpClient, signal) {
|
|
30845
30845
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
30846
30846
|
}
|
|
30847
30847
|
//#endregion
|
|
30848
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.
|
|
30848
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.128_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_d4140eb5f67db6c1911197579c0bcec1/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
30849
30849
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
30850
30850
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
30851
30851
|
signal,
|
|
@@ -30873,7 +30873,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
30873
30873
|
return response.json();
|
|
30874
30874
|
}
|
|
30875
30875
|
//#endregion
|
|
30876
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.
|
|
30876
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.128_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_d4140eb5f67db6c1911197579c0bcec1/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
30877
30877
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
30878
30878
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
30879
30879
|
}
|
|
@@ -32621,7 +32621,7 @@ function createAuthenticatedClientProxy() {
|
|
|
32621
32621
|
} });
|
|
32622
32622
|
}
|
|
32623
32623
|
//#endregion
|
|
32624
|
-
//#region ../operations/build/safety-
|
|
32624
|
+
//#region ../operations/build/safety-nrboW9fu.js
|
|
32625
32625
|
const optionalNumber = /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2());
|
|
32626
32626
|
const DATE_FIELD_RE = /^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[+-]\d{2}:\d{2}))?$/;
|
|
32627
32627
|
const dateField = (description) => /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ regex(DATE_FIELD_RE, "must be YYYY-MM-DD or RFC3339 datetime (e.g. '2025-01-01' or '2025-01-01T00:00:00Z')"), /* @__PURE__ */ description$1(description));
|
|
@@ -32856,6 +32856,7 @@ const clientOverrides = { "focus.clients.list": {
|
|
|
32856
32856
|
const compositeOverrides = {
|
|
32857
32857
|
"focus.composite.create-project": {
|
|
32858
32858
|
description: "Create a project with related data such as members, milestones, rates, and billable rates.",
|
|
32859
|
+
agentGuidance: "Follow the create action's privacy and billable guidance. Project fields go under payload.project.",
|
|
32859
32860
|
cli: {
|
|
32860
32861
|
group: ["projects"],
|
|
32861
32862
|
command: "create-advanced",
|
|
@@ -33157,16 +33158,20 @@ const projectOverrides = {
|
|
|
33157
33158
|
},
|
|
33158
33159
|
"focus.projects.get": { agentGuidance: "Fetch a single project with aggregated task counts and time estimates." },
|
|
33159
33160
|
"focus.projects.create": {
|
|
33160
|
-
agentGuidance: "Required: name. Recommended: color (hex), billable
|
|
33161
|
+
agentGuidance: "Required: name. Recommended: color (hex). The API defaults private and billable to false when omitted. Match the Toggl UI on privacy. If the user explicitly asks for a shared or public project, pass private=false; no permissions check is needed, because only private projects require an entitlement. Otherwise call workspace-settings get-user-permissions and pass private=true when permissions includes access_private_projects_tasks_feature. If that permission is absent, pass private=false and tell the user; if the user explicitly required a private project, do not create a shared one. Leave billable unset unless the user explicitly says the work is billable or provides a rate. Associate with a client via client_id.",
|
|
33161
33162
|
examples: [{
|
|
33162
|
-
description: "Create a project",
|
|
33163
|
-
data: {
|
|
33163
|
+
description: "Create a private internal project",
|
|
33164
|
+
data: {
|
|
33165
|
+
name: "Internal research",
|
|
33166
|
+
private: true
|
|
33167
|
+
}
|
|
33164
33168
|
}, {
|
|
33165
|
-
description: "Create a billable project
|
|
33169
|
+
description: "Create a private billable project when billing was requested",
|
|
33166
33170
|
data: {
|
|
33167
33171
|
name: "Client work",
|
|
33172
|
+
private: true,
|
|
33168
33173
|
billable: true,
|
|
33169
|
-
color: "#
|
|
33174
|
+
color: "#DD3919"
|
|
33170
33175
|
}
|
|
33171
33176
|
}]
|
|
33172
33177
|
},
|
|
@@ -44930,7 +44935,7 @@ import_main.default.config({
|
|
|
44930
44935
|
quiet: true,
|
|
44931
44936
|
ignore: ["MISSING_ENV_FILE"]
|
|
44932
44937
|
});
|
|
44933
|
-
const packageVersion = "1.6.
|
|
44938
|
+
const packageVersion = "1.6.2";
|
|
44934
44939
|
function resolvePublicUrls() {
|
|
44935
44940
|
return {
|
|
44936
44941
|
focusApiUrl: process.env.TOGGL_FOCUS_API_URL ?? "https://focus.toggl.com",
|
|
@@ -44995,4 +45000,4 @@ function bootstrapServer(options = {}) {
|
|
|
44995
45000
|
//#endregion
|
|
44996
45001
|
export { runMcpCli as n, bootstrapServer as t };
|
|
44997
45002
|
|
|
44998
|
-
//# sourceMappingURL=src-
|
|
45003
|
+
//# sourceMappingURL=src-B6i8Cj87.js.map
|