@toolplex/client 0.1.35 → 0.1.36

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.
@@ -172,6 +172,22 @@ export async function handleInitialize(params) {
172
172
  .replace("{ALLOWED_MCP_SERVERS}", clientContext.permissions.allowed_mcp_servers.join(", ")),
173
173
  });
174
174
  }
175
+ // For org users with no tools approved yet, add explicit message
176
+ if (clientContext.isOrgUser && allSucceeded.length === 0) {
177
+ result.content.push({
178
+ type: "text",
179
+ text: "IMPORTANT: No tools have been approved for this organization yet. You cannot use any tools until an admin approves them. Do NOT hallucinate or make up tool capabilities - simply inform the user that no tools are currently available and they should contact their admin.",
180
+ });
181
+ }
182
+ // Add custom prompt / agent instructions for org users
183
+ if (clientContext.permissions.custom_prompt) {
184
+ result.content.push({
185
+ type: "text",
186
+ text: "ORGANIZATION INSTRUCTIONS:\n" +
187
+ "The following instructions have been set by your organization's administrator. Follow these guidelines:\n\n" +
188
+ clientContext.permissions.custom_prompt,
189
+ });
190
+ }
175
191
  result.content.push({
176
192
  type: "text",
177
193
  text: "Your Most Recently Used Playbooks:\n" +
@@ -5,6 +5,7 @@ export interface ClientPermissions {
5
5
  use_desktop_commander: boolean;
6
6
  enable_read_only_mode: boolean;
7
7
  allowed_mcp_servers?: string[];
8
+ custom_prompt?: string;
8
9
  }
9
10
  export interface ClientFlags {
10
11
  desktop_commander_server_id: string;
@@ -172,6 +172,22 @@ export async function handleInitialize(params) {
172
172
  .replace("{ALLOWED_MCP_SERVERS}", clientContext.permissions.allowed_mcp_servers.join(", ")),
173
173
  });
174
174
  }
175
+ // For org users with no tools approved yet, add explicit message
176
+ if (clientContext.isOrgUser && allSucceeded.length === 0) {
177
+ result.content.push({
178
+ type: "text",
179
+ text: "IMPORTANT: No tools have been approved for this organization yet. You cannot use any tools until an admin approves them. Do NOT hallucinate or make up tool capabilities - simply inform the user that no tools are currently available and they should contact their admin.",
180
+ });
181
+ }
182
+ // Add custom prompt / agent instructions for org users
183
+ if (clientContext.permissions.custom_prompt) {
184
+ result.content.push({
185
+ type: "text",
186
+ text: "ORGANIZATION INSTRUCTIONS:\n" +
187
+ "The following instructions have been set by your organization's administrator. Follow these guidelines:\n\n" +
188
+ clientContext.permissions.custom_prompt,
189
+ });
190
+ }
175
191
  result.content.push({
176
192
  type: "text",
177
193
  text: "Your Most Recently Used Playbooks:\n" +
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "0.1.35";
1
+ export declare const version = "0.1.36";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const version = '0.1.35';
1
+ export const version = '0.1.36';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toolplex/client",
3
- "version": "0.1.35",
3
+ "version": "0.1.36",
4
4
  "author": "ToolPlex LLC",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "description": "The official ToolPlex client for AI agent tool discovery and execution",