@creature-ai/sdk 0.1.5 → 0.1.6

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.
@@ -207,6 +207,17 @@ interface AppConfig {
207
207
  name: string;
208
208
  /** App version */
209
209
  version: string;
210
+ /**
211
+ * High-level instructions for using this MCP.
212
+ * Sent to the model during initialization to provide context about
213
+ * how to use the MCP's tools effectively.
214
+ *
215
+ * @example
216
+ * instructions: `This MCP manages markdown notes.
217
+ * When editing an existing note, ALWAYS use action:"read" first to get current content,
218
+ * then apply your changes with action:"save" to avoid overwriting user edits.`
219
+ */
220
+ instructions?: string;
210
221
  /** Port for HTTP transport (default: 3000 or MCP_PORT env) */
211
222
  port?: number;
212
223
  /** Enable dev mode with HMR support (default: auto-detect from NODE_ENV) */
@@ -14237,7 +14237,11 @@ var App = class {
14237
14237
  }
14238
14238
  createMcpServer() {
14239
14239
  const server = new McpServer(
14240
- { name: this.config.name, version: this.config.version },
14240
+ {
14241
+ name: this.config.name,
14242
+ version: this.config.version,
14243
+ ...this.config.instructions && { instructions: this.config.instructions }
14244
+ },
14241
14245
  { capabilities: { logging: {} } }
14242
14246
  );
14243
14247
  this.registerResources(server);