@hasna/calendar 0.1.1 → 0.1.3

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/LICENSE CHANGED
@@ -1,3 +1,4 @@
1
+
1
2
  Apache License
2
3
  Version 2.0, January 2004
3
4
  http://www.apache.org/licenses/
@@ -175,7 +176,7 @@
175
176
 
176
177
  END OF TERMS AND CONDITIONS
177
178
 
178
- Copyright 2026 hasna
179
+ Copyright 2026 Hasna, Inc.
179
180
 
180
181
  Licensed under the Apache License, Version 2.0 (the "License");
181
182
  you may not use this file except in compliance with the License.
package/dist/cli/index.js CHANGED
File without changes
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env bun
2
+ import "./index.js";
@@ -0,0 +1,25 @@
1
+ import { type IncomingMessage, type ServerResponse } from "node:http";
2
+ import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
3
+ export declare const DEFAULT_MCP_HTTP_PORT = 8803;
4
+ export declare const MCP_SERVICE_NAME = "calendar";
5
+ export declare function resolveMcpHttpPort(explicit?: number): number;
6
+ export declare function isHttpMode(argv?: string[]): boolean;
7
+ export declare function parseHttpArgv(argv?: string[]): {
8
+ http: boolean;
9
+ port?: number;
10
+ };
11
+ export declare function handleStatelessMcpNode(req: IncomingMessage, res: ServerResponse, getServer?: () => McpServer | Promise<McpServer>): Promise<void>;
12
+ export declare function handleMcpFetch(request: Request, getServer?: () => McpServer | Promise<McpServer>): Promise<Response>;
13
+ export declare function healthPayload(name?: string): {
14
+ status: string;
15
+ name: string;
16
+ };
17
+ export declare function startMcpHttpServer(options?: {
18
+ port?: number;
19
+ getServer?: () => McpServer | Promise<McpServer>;
20
+ name?: string;
21
+ }): Promise<{
22
+ port: number;
23
+ close: () => Promise<void>;
24
+ }>;
25
+ //# sourceMappingURL=http.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../src/mcp/http.ts"],"names":[],"mappings":"AAAA,OA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}
@@ -1,2 +1,3 @@
1
- export {};
1
+ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
+ export declare function buildServer(): McpServer;
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mcp/index.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mcp/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAcpE,wBAAgB,WAAW,IAAI,SAAS,CAqTvC"}