@togglhq/mcp 1.6.0 → 1.6.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/build/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { n as runMcpCli } from "./src-C445W-O4.js";
2
+ import { n as runMcpCli } from "./src-A1P2fdsO.js";
3
3
  //#region src/cli.ts
4
4
  runMcpCli();
5
5
  //#endregion
package/build/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
- import { n as runMcpCli, t as bootstrapServer } from "./src-C445W-O4.js";
2
+ import { n as runMcpCli, t as bootstrapServer } from "./src-A1P2fdsO.js";
3
3
  export { bootstrapServer, runMcpCli };
@@ -32621,7 +32621,7 @@ function createAuthenticatedClientProxy() {
32621
32621
  } });
32622
32622
  }
32623
32623
  //#endregion
32624
- //#region ../operations/build/safety-FZlH3SQa.js
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 (boolean). Associate with a client via client_id.",
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: { name: "New feature" }
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 with color",
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: "#e44332"
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.0";
44938
+ const packageVersion = "1.6.1";
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-C445W-O4.js.map
45003
+ //# sourceMappingURL=src-A1P2fdsO.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/mcp",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "Toggl 2.0 MCP server for Claude Code, Claude Desktop, and other MCP clients.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",