@kitsuden/mcp-server 0.0.0-stage → 0.9.0-beta

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,19 @@
1
+ /**
2
+ * ═══════════════════════════════════════════════════════════════════════════════
3
+ * PROJECT CONTEXT RESOURCE - Full Project State for AI Agents
4
+ * ═══════════════════════════════════════════════════════════════════════════════
5
+ *
6
+ * Provides AI agents with complete project understanding including:
7
+ * - Active kons and their capabilities
8
+ * - Available endpoints and schemas
9
+ * - Data relationships
10
+ * - Event system
11
+ * - Configuration
12
+ */
13
+ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
14
+ import type { McpServerDependencies } from "./index";
15
+ export declare function registerProjectContext(server: McpServer, deps: McpServerDependencies): void;
16
+ declare const _default: {
17
+ registerProjectContext: typeof registerProjectContext;
18
+ };
19
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
+ import type { McpServerDependencies } from "./index";
3
+ export declare function registerResources(server: McpServer, deps: McpServerDependencies): void;
@@ -0,0 +1,34 @@
1
+ /**
2
+ * The MCP SSE transport on Web streams.
3
+ *
4
+ * The SDK's `SSEServerTransport` writes to a Node `ServerResponse`, which a Hono
5
+ * handler on Bun does not have: it gets a Request and returns a Response. This
6
+ * is the same protocol over a `ReadableStream`:
7
+ *
8
+ * GET <sse path> opens the stream; first event `endpoint`
9
+ * says where to post, with the session id
10
+ * POST <endpoint>?sessionId=<id> one JSON-RPC message; the answer comes back
11
+ * on the stream as an event `message`
12
+ */
13
+ import type { Transport } from "@modelcontextprotocol/sdk/shared/transport.js";
14
+ import { type JSONRPCMessage } from "@modelcontextprotocol/sdk/types.js";
15
+ export declare class WebSseTransport implements Transport {
16
+ private readonly endpoint;
17
+ readonly sessionId: `${string}-${string}-${string}-${string}-${string}`;
18
+ /** The body of the GET response. */
19
+ readonly stream: ReadableStream<Uint8Array>;
20
+ onclose?: () => void;
21
+ onerror?: (error: Error) => void;
22
+ onmessage?: (message: JSONRPCMessage) => void;
23
+ private controller;
24
+ private keepAlive;
25
+ private closed;
26
+ private readonly encoder;
27
+ constructor(endpoint: string);
28
+ start(): Promise<void>;
29
+ send(message: JSONRPCMessage): Promise<void>;
30
+ close(): Promise<void>;
31
+ /** A POSTed message. Returns false if it is not valid JSON-RPC. */
32
+ receive(body: unknown): boolean;
33
+ private write;
34
+ }
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env bun
2
+ /**
3
+ * Kitsuden MCP Server — Standalone Mode (Enterprise)
4
+ *
5
+ * Full MCP server with tools for:
6
+ * - Explorer table CRUD (list, create, update, delete)
7
+ * - Schema introspection (JSON Schema)
8
+ * - Module management (list, toggle)
9
+ * - Compact results: compact JSON, TOON or TRON, whichever is shortest without loss
10
+ * - Generic API escape hatch
11
+ *
12
+ * Transports: SSE over HTTP, and stdio with --stdio
13
+ * IDE Support: Cursor, VS Code, Claude Desktop, Windsurf
14
+ *
15
+ * Usage:
16
+ * KITSUDEN_API_URL=http://localhost:3000 bun run src/standalone.ts
17
+ */
18
+ declare const _default: {
19
+ port?: undefined;
20
+ hostname?: undefined;
21
+ idleTimeout?: undefined;
22
+ fetch?: undefined;
23
+ } | {
24
+ port: number;
25
+ hostname: string;
26
+ idleTimeout: number;
27
+ fetch: (request: Request, env?: unknown, executionCtx?: import("hono").ExecutionContext) => Response | Promise<Response>;
28
+ };
29
+ export default _default;