@myna-sh/mcp 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.
package/bin/mcp.mjs ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env node
2
+ import { main } from "../dist/main.js";
3
+
4
+ main().catch((error) => {
5
+ process.stderr.write(`myna-mcp fatal: ${error?.message ?? String(error)}\n`);
6
+ process.exit(1);
7
+ });
package/dist/main.d.ts ADDED
@@ -0,0 +1,21 @@
1
+ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+
3
+ /** Build a fully-wired Myna MCP server (tools + resources). */
4
+ declare function createServer(): McpServer;
5
+
6
+ interface HttpOptions {
7
+ port: number;
8
+ /** Bearer token required in the `Authorization` header. */
9
+ authToken?: string;
10
+ path?: string;
11
+ }
12
+ /**
13
+ * Streamable HTTP transport (SPEC 13). Stateless: a fresh server + transport per
14
+ * request. Authenticated by a bearer token in the `Authorization` header.
15
+ */
16
+ declare function runHttp(options: HttpOptions): Promise<void>;
17
+
18
+ /** Run over stdio (default) or streamable HTTP (`--http`). */
19
+ declare function main(argv?: string[]): Promise<void>;
20
+
21
+ export { createServer, main, runHttp };