hookli-mcp 0.0.0-stage → 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/dist/cli.mjs ADDED
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ createMcpServer
4
+ } from "./chunk-LJKHLUTD.mjs";
5
+
6
+ // src/cli.ts
7
+ import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
8
+ async function main() {
9
+ const server = createMcpServer();
10
+ const transport = new StdioServerTransport();
11
+ await server.connect(transport);
12
+ console.error("hookli MCP server v1.6.6 running on stdio (66 hooks registered)");
13
+ }
14
+ main().catch((error) => {
15
+ console.error("Fatal error starting hookli MCP server:", error);
16
+ process.exit(1);
17
+ });
18
+ //# sourceMappingURL=cli.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/cli.ts"],"sourcesContent":["#!/usr/bin/env node\nimport { StdioServerTransport } from \"@modelcontextprotocol/sdk/server/stdio.js\";\nimport { createMcpServer } from \"./server.js\";\n\nasync function main(): Promise<void> {\n const server = createMcpServer();\n const transport = new StdioServerTransport();\n await server.connect(transport);\n console.error(\"hookli MCP server v1.6.6 running on stdio (66 hooks registered)\");\n}\n\nmain().catch((error) => {\n console.error(\"Fatal error starting hookli MCP server:\", error);\n process.exit(1);\n});\n"],"mappings":";;;;;;AACA,SAAS,4BAA4B;AAGrC,eAAe,OAAsB;AACnC,QAAM,SAAS,gBAAgB;AAC/B,QAAM,YAAY,IAAI,qBAAqB;AAC3C,QAAM,OAAO,QAAQ,SAAS;AAC9B,UAAQ,MAAM,iEAAiE;AACjF;AAEA,KAAK,EAAE,MAAM,CAAC,UAAU;AACtB,UAAQ,MAAM,2CAA2C,KAAK;AAC9D,UAAQ,KAAK,CAAC;AAChB,CAAC;","names":[]}
@@ -0,0 +1,52 @@
1
+ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+
3
+ type HookCategory = "state" | "effects" | "dom" | "data";
4
+ interface ApiRow {
5
+ name: string;
6
+ type: string;
7
+ defaultValue?: string | null;
8
+ description: string;
9
+ }
10
+ interface TypeAliasDoc {
11
+ name: string;
12
+ description?: string | null;
13
+ rows: ApiRow[];
14
+ }
15
+ interface HookCatalogItem {
16
+ slug: string;
17
+ name: string;
18
+ description: string;
19
+ category: HookCategory;
20
+ signature: string;
21
+ parameters: ApiRow[];
22
+ returns: ApiRow[];
23
+ typeAliases: TypeAliasDoc[];
24
+ usage: string;
25
+ source: string;
26
+ sourcePath: string;
27
+ docsUrl: string;
28
+ useCases: string[];
29
+ }
30
+
31
+ declare const CATALOG: HookCatalogItem[];
32
+ declare function getAllHooks(): HookCatalogItem[];
33
+ declare function getHookBySlugOrName(identifier: string): HookCatalogItem | undefined;
34
+ declare function getHooksByCategory(category: HookCategory): HookCatalogItem[];
35
+ declare function searchHooks(query: string, options?: {
36
+ category?: HookCategory;
37
+ limit?: number;
38
+ }): Array<{
39
+ hook: HookCatalogItem;
40
+ score: number;
41
+ }>;
42
+ declare function formatHookMarkdown(hook: HookCatalogItem): string;
43
+
44
+ declare function registerPrompts(server: McpServer): void;
45
+
46
+ declare function registerResources(server: McpServer): void;
47
+
48
+ declare function createMcpServer(): McpServer;
49
+
50
+ declare function registerTools(server: McpServer): void;
51
+
52
+ export { type ApiRow, CATALOG, type HookCatalogItem, type HookCategory, type TypeAliasDoc, createMcpServer, formatHookMarkdown, getAllHooks, getHookBySlugOrName, getHooksByCategory, registerPrompts, registerResources, registerTools, searchHooks };
@@ -0,0 +1,52 @@
1
+ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+
3
+ type HookCategory = "state" | "effects" | "dom" | "data";
4
+ interface ApiRow {
5
+ name: string;
6
+ type: string;
7
+ defaultValue?: string | null;
8
+ description: string;
9
+ }
10
+ interface TypeAliasDoc {
11
+ name: string;
12
+ description?: string | null;
13
+ rows: ApiRow[];
14
+ }
15
+ interface HookCatalogItem {
16
+ slug: string;
17
+ name: string;
18
+ description: string;
19
+ category: HookCategory;
20
+ signature: string;
21
+ parameters: ApiRow[];
22
+ returns: ApiRow[];
23
+ typeAliases: TypeAliasDoc[];
24
+ usage: string;
25
+ source: string;
26
+ sourcePath: string;
27
+ docsUrl: string;
28
+ useCases: string[];
29
+ }
30
+
31
+ declare const CATALOG: HookCatalogItem[];
32
+ declare function getAllHooks(): HookCatalogItem[];
33
+ declare function getHookBySlugOrName(identifier: string): HookCatalogItem | undefined;
34
+ declare function getHooksByCategory(category: HookCategory): HookCatalogItem[];
35
+ declare function searchHooks(query: string, options?: {
36
+ category?: HookCategory;
37
+ limit?: number;
38
+ }): Array<{
39
+ hook: HookCatalogItem;
40
+ score: number;
41
+ }>;
42
+ declare function formatHookMarkdown(hook: HookCatalogItem): string;
43
+
44
+ declare function registerPrompts(server: McpServer): void;
45
+
46
+ declare function registerResources(server: McpServer): void;
47
+
48
+ declare function createMcpServer(): McpServer;
49
+
50
+ declare function registerTools(server: McpServer): void;
51
+
52
+ export { type ApiRow, CATALOG, type HookCatalogItem, type HookCategory, type TypeAliasDoc, createMcpServer, formatHookMarkdown, getAllHooks, getHookBySlugOrName, getHooksByCategory, registerPrompts, registerResources, registerTools, searchHooks };