@sit-onyx/modelcontextprotocol 0.1.0 → 0.1.1-dev-20260622121501
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/config.d.ts +12 -0
- package/dist/index.d.ts +4 -22
- package/dist/index.js +1023 -507
- package/dist/resources/get-component-api.d.ts +2 -0
- package/dist/resources/list-components.d.ts +2 -0
- package/dist/resources/list-icons.d.ts +2 -0
- package/dist/server/http.d.ts +6 -0
- package/dist/server/server.d.ts +7 -0
- package/dist/server/stdio.d.ts +6 -0
- package/dist/types.d.ts +31 -0
- package/dist/util/cached.d.ts +4 -0
- package/dist/util/cached.spec.d.ts +1 -0
- package/dist/util/component-meta-json.d.ts +2 -0
- package/dist/util/icons-metadata-json.d.ts +2 -0
- package/dist/util/mcp-server.d.ts +3 -0
- package/dist/util/mcp-server.spec.d.ts +1 -0
- package/dist/util/package.d.ts +8 -0
- package/dist/util/version-compare.d.ts +1 -0
- package/dist/util/version-compare.spec.d.ts +1 -0
- package/package.json +8 -8
package/dist/config.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const USER_AGENT: string;
|
|
2
|
+
export declare const REGISTRY_URL: string;
|
|
3
|
+
/**
|
|
4
|
+
* Minimum `sit-onyx` version that provides the `component-meta.json` file
|
|
5
|
+
*/
|
|
6
|
+
export declare const SIT_ONYX_MIN_VERSION = "1.12.0";
|
|
7
|
+
export declare const SIT_ONYX_COMPONENT_META_FILE = "package/dist/component-meta.json";
|
|
8
|
+
/**
|
|
9
|
+
* Minimum `@sit-onyx/icons` version that provides the `metadata.json` file
|
|
10
|
+
*/
|
|
11
|
+
export declare const SIT_ONYX_ICONS_MIN_VERSION = "1.9.0";
|
|
12
|
+
export declare const SIT_ONYX_ICONS_METADATA_FILE = "package/dist/metadata.json";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,22 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
declare type CreateServerOptions = {
|
|
7
|
-
resourcesAsTools: boolean;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* MCP server running as a http server.
|
|
12
|
-
* `HOST` and `PORT` environment variable can be used to change the server settings.
|
|
13
|
-
*/
|
|
14
|
-
export declare const http: (server: McpServer_2) => Promise<void>;
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* MCP server running via stdio.
|
|
18
|
-
* All logging has to use stderr, otherwise the logging to stdio will break the transport.
|
|
19
|
-
*/
|
|
20
|
-
export declare const stdio: (server: McpServer_2) => Promise<void>;
|
|
21
|
-
|
|
22
|
-
export { }
|
|
1
|
+
import { run as http } from './server/http.js';
|
|
2
|
+
import { createServer } from './server/server.js';
|
|
3
|
+
import { run as stdio } from './server/stdio.js';
|
|
4
|
+
export { createServer, http, stdio };
|