@getnella/latest 0.1.0

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.
@@ -0,0 +1,31 @@
1
+ export { ServerContext, handleContextTool, handleSafetyTool, handleValidationTool, registerContextTools, registerSafetyTools, registerValidationTools, startMcpServer } from '../index.js';
2
+ import '@usenella/core';
3
+ import '@modelcontextprotocol/sdk/types.js';
4
+
5
+ /**
6
+ * Hosted MCP Server
7
+ *
8
+ * Exposes Nella's MCP tools over Streamable HTTP transport.
9
+ * Authenticates via API keys stored in Supabase, rate limits via Redis,
10
+ * and logs usage to the usage_events table.
11
+ *
12
+ * Usage:
13
+ * nella serve --port 3000
14
+ * NODE_ENV=production node packages/nella/dist/mcp/hosted-server.js
15
+ *
16
+ * Required env vars:
17
+ * SUPABASE_URL - Supabase project URL
18
+ * SUPABASE_SERVICE_ROLE_KEY - Supabase service role key
19
+ * REDIS_URL - Redis connection string (rediss://... for TLS)
20
+ *
21
+ * Optional env vars:
22
+ * PORT - HTTP port (default: 3000)
23
+ * NELLA_LOG_LEVEL - Log level (default: info)
24
+ */
25
+ interface HostedServerOptions {
26
+ port?: number;
27
+ host?: string;
28
+ }
29
+ declare function startHostedServer(options?: HostedServerOptions): Promise<void>;
30
+
31
+ export { startHostedServer };