@hasna/mcps 0.0.12 → 0.0.13

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,10 @@
1
+ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
+ import { type McpsMcpToolDefinition } from "./tools.js";
3
+ export declare const VERSION: string;
4
+ export interface CreateMcpServerOptions {
5
+ name?: string;
6
+ version?: string;
7
+ cloudTools?: boolean;
8
+ tools?: McpsMcpToolDefinition[];
9
+ }
10
+ export declare function createMcpServer(options?: CreateMcpServerOptions): McpServer;
@@ -0,0 +1,14 @@
1
+ import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
+ import type { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
3
+ import { z } from "zod";
4
+ export interface McpsMcpToolDefinition {
5
+ name: string;
6
+ description: string;
7
+ inputSchema: Record<string, unknown>;
8
+ paramsSchema?: Record<string, z.ZodTypeAny>;
9
+ run: (input: Record<string, unknown>) => CallToolResult | Promise<CallToolResult>;
10
+ }
11
+ export declare function buildMcpTools(): McpsMcpToolDefinition[];
12
+ export declare const tools: McpsMcpToolDefinition[];
13
+ export declare function listTools(): Promise<McpsMcpToolDefinition[]>;
14
+ export declare function registerMcpTools(server: McpServer, toolDefinitions?: McpsMcpToolDefinition[]): McpsMcpToolDefinition[];
package/package.json CHANGED
@@ -1,14 +1,22 @@
1
1
  {
2
2
  "name": "@hasna/mcps",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "description": "Meta-MCP registry & CLI — discover, manage, and proxy MCP servers",
5
5
  "type": "module",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/hasna/mcps.git"
9
+ },
6
10
  "main": "dist/index.js",
7
11
  "types": "dist/index.d.ts",
8
12
  "exports": {
9
13
  ".": {
10
14
  "import": "./dist/index.js",
11
15
  "types": "./dist/index.d.ts"
16
+ },
17
+ "./mcp": {
18
+ "import": "./dist/mcp/index.js",
19
+ "types": "./dist/mcp/index.d.ts"
12
20
  }
13
21
  },
14
22
  "bin": {
@@ -23,7 +31,7 @@
23
31
  "README.md"
24
32
  ],
25
33
  "scripts": {
26
- "build": "bun run build:dashboard && bun build ./src/cli/index.tsx --outdir ./bin --target bun --external ink --external react --external chalk && bun build ./src/mcp/index.ts --outfile ./bin/mcp.js --target bun && bun run scripts/fix-shebangs.ts && bun build ./src/index.ts --outdir ./dist --target bun && tsc --emitDeclarationOnly --declaration --outDir dist",
34
+ "build": "bun run build:dashboard && bun build ./src/cli/index.tsx --outdir ./bin --target bun --external ink --external react --external chalk && bun build ./src/mcp/index.ts --outfile ./bin/mcp.js --target bun && bun run scripts/fix-shebangs.ts && bun build ./src/index.ts --outdir ./dist --target bun && bun build ./src/mcp/index.ts --outdir ./dist/mcp --target bun && tsc --emitDeclarationOnly --declaration --outDir dist",
27
35
  "build:dashboard": "cd dashboard && bun install && bun run build",
28
36
  "dev": "bun run src/cli/index.tsx",
29
37
  "dev:mcp": "bun run src/mcp/index.ts",