@withone/mcp 1.4.0 → 1.4.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/helpers.js CHANGED
@@ -368,12 +368,3 @@ export function buildIntegrationsResponse(connections, access, available) {
368
368
  }
369
369
  return response;
370
370
  }
371
- /** Back office tag for actions agents must not use (a `custom` action covers them). */
372
- export const HIDDEN_FROM_AGENTS_TAG = "hidden:agents";
373
- /**
374
- * Whether an action is hidden from executing agents. Knowledge/code-gen mode
375
- * still sees these: writing integration code may target the raw endpoint.
376
- */
377
- export function isHiddenFromAgents(tags) {
378
- return (tags ?? []).includes(HIDDEN_FROM_AGENTS_TAG);
379
- }
package/build/index.js CHANGED
@@ -11,7 +11,7 @@ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
11
11
  import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
12
12
  import { ErrorCode, McpError, } from '@modelcontextprotocol/sdk/types.js';
13
13
  import { OneClient } from './client.js';
14
- import { buildKnowledgeModeGuidance, buildKnowledgeResponse, filterByPermissions, isMethodAllowed, isActionAllowed, buildIntegrationsResponse, isHiddenFromAgents, } from './helpers.js';
14
+ import { buildKnowledgeModeGuidance, buildKnowledgeResponse, filterByPermissions, isMethodAllowed, isActionAllowed, buildIntegrationsResponse, } from './helpers.js';
15
15
  import { listOneIntegrationsToolConfig, searchOnePlatformActionsToolConfig, getOneActionKnowledgeToolConfig, executeOneActionToolConfig } from './schemas.js';
16
16
  const SERVER_NAME = "one-mcp-server";
17
17
  const SERVER_VERSION = "1.0.0";
@@ -213,9 +213,6 @@ async function handleGetActionKnowledge(args) {
213
213
  ],
214
214
  };
215
215
  }
216
- if (isHiddenFromAgents((await oneClient.getActionDetails(actionId)).tags)) {
217
- throw new McpError(ErrorCode.InvalidRequest, `Action "${actionId}" is hidden from agents; search for the task again to find the action to use instead`);
218
- }
219
216
  const { knowledge, method } = await oneClient.getActionKnowledge(actionId);
220
217
  const response = buildKnowledgeResponse(knowledge, method, args.platform, actionId, {
221
218
  section: args.section,
@@ -251,9 +248,6 @@ async function handleExecuteOneAction(args) {
251
248
  }
252
249
  }
253
250
  const actionDetails = await oneClient.getActionDetails(args.actionId);
254
- if (isHiddenFromAgents(actionDetails.tags)) {
255
- throw new McpError(ErrorCode.InvalidRequest, `Action "${args.actionId}" is hidden from agents; search for the task again to find the action to use instead`);
256
- }
257
251
  if (!isMethodAllowed(actionDetails.method, ONE_PERMISSIONS)) {
258
252
  throw new McpError(ErrorCode.InvalidRequest, `Method "${actionDetails.method}" is not allowed under "${ONE_PERMISSIONS}" permission level`);
259
253
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@withone/mcp",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "A Model Context Protocol Server for One",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,12 +0,0 @@
1
- import { describe, it } from 'node:test';
2
- import assert from 'node:assert/strict';
3
- import { isHiddenFromAgents } from './helpers.js';
4
- describe('isHiddenFromAgents', () => {
5
- it('flags only actions tagged hidden:agents', () => {
6
- assert.equal(isHiddenFromAgents(['hidden:agents']), true);
7
- assert.equal(isHiddenFromAgents(['custom', 'hidden:agents']), true);
8
- assert.equal(isHiddenFromAgents(['custom']), false);
9
- assert.equal(isHiddenFromAgents([]), false);
10
- assert.equal(isHiddenFromAgents(undefined), false);
11
- });
12
- });