@soroush.design/mcp 0.1.2 → 0.1.3
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/README.md +9 -1
- package/dist/bin.mjs +10 -10
- package/dist/index.cjs +10 -10
- package/dist/index.d.cts +7 -7
- package/dist/index.d.mts +7 -7
- package/dist/index.mjs +10 -10
- package/package.json +8 -8
package/dist/index.d.cts
CHANGED
|
@@ -52,14 +52,14 @@ interface ContentBundle {
|
|
|
52
52
|
docs: DocRecord[];
|
|
53
53
|
tokens: TokenScale[];
|
|
54
54
|
}
|
|
55
|
-
declare const SERVER_NAME = "soroush-design-system";
|
|
55
|
+
export declare const SERVER_NAME = "soroush-design-system";
|
|
56
56
|
/** Builds the MCP server. Transport-agnostic: stdio and the Worker both use this. */
|
|
57
|
-
declare const createMcpServer: (bundle?: ContentBundle) => McpServer;
|
|
58
|
-
declare const content: ContentBundle;
|
|
57
|
+
export declare const createMcpServer: (bundle?: ContentBundle) => McpServer;
|
|
58
|
+
export declare const content: ContentBundle;
|
|
59
59
|
/** Case-insensitive component lookup by name or slug. */
|
|
60
|
-
declare const findComponent: (query: string, source?: ContentBundle) => ContentBundle['components'][number] | undefined;
|
|
60
|
+
export declare const findComponent: (query: string, source?: ContentBundle) => ContentBundle['components'][number] | undefined;
|
|
61
61
|
/** Doc lookup by exact id, case-insensitive. */
|
|
62
|
-
declare const findDoc: (id: string, source?: ContentBundle) => ContentBundle['docs'][number] | undefined;
|
|
62
|
+
export declare const findDoc: (id: string, source?: ContentBundle) => ContentBundle['docs'][number] | undefined;
|
|
63
63
|
interface SearchHit {
|
|
64
64
|
kind: 'component' | 'doc';
|
|
65
65
|
/** Component name or doc id - what to pass to get_component / get_doc. */
|
|
@@ -74,5 +74,5 @@ interface SearchHit {
|
|
|
74
74
|
* corpus is a few hundred documents, and hits are meant to be followed by a
|
|
75
75
|
* get_component / get_doc call rather than read in place.
|
|
76
76
|
*/
|
|
77
|
-
declare const search: (bundle: ContentBundle, query: string, limit?: number) => SearchHit[];
|
|
78
|
-
export {
|
|
77
|
+
export declare const search: (bundle: ContentBundle, query: string, limit?: number) => SearchHit[];
|
|
78
|
+
export type { ComponentRecord, ContentBundle, DocRecord, SearchHit, TokenScale };
|
package/dist/index.d.mts
CHANGED
|
@@ -52,14 +52,14 @@ interface ContentBundle {
|
|
|
52
52
|
docs: DocRecord[];
|
|
53
53
|
tokens: TokenScale[];
|
|
54
54
|
}
|
|
55
|
-
declare const SERVER_NAME = "soroush-design-system";
|
|
55
|
+
export declare const SERVER_NAME = "soroush-design-system";
|
|
56
56
|
/** Builds the MCP server. Transport-agnostic: stdio and the Worker both use this. */
|
|
57
|
-
declare const createMcpServer: (bundle?: ContentBundle) => McpServer;
|
|
58
|
-
declare const content: ContentBundle;
|
|
57
|
+
export declare const createMcpServer: (bundle?: ContentBundle) => McpServer;
|
|
58
|
+
export declare const content: ContentBundle;
|
|
59
59
|
/** Case-insensitive component lookup by name or slug. */
|
|
60
|
-
declare const findComponent: (query: string, source?: ContentBundle) => ContentBundle['components'][number] | undefined;
|
|
60
|
+
export declare const findComponent: (query: string, source?: ContentBundle) => ContentBundle['components'][number] | undefined;
|
|
61
61
|
/** Doc lookup by exact id, case-insensitive. */
|
|
62
|
-
declare const findDoc: (id: string, source?: ContentBundle) => ContentBundle['docs'][number] | undefined;
|
|
62
|
+
export declare const findDoc: (id: string, source?: ContentBundle) => ContentBundle['docs'][number] | undefined;
|
|
63
63
|
interface SearchHit {
|
|
64
64
|
kind: 'component' | 'doc';
|
|
65
65
|
/** Component name or doc id - what to pass to get_component / get_doc. */
|
|
@@ -74,5 +74,5 @@ interface SearchHit {
|
|
|
74
74
|
* corpus is a few hundred documents, and hits are meant to be followed by a
|
|
75
75
|
* get_component / get_doc call rather than read in place.
|
|
76
76
|
*/
|
|
77
|
-
declare const search: (bundle: ContentBundle, query: string, limit?: number) => SearchHit[];
|
|
78
|
-
export {
|
|
77
|
+
export declare const search: (bundle: ContentBundle, query: string, limit?: number) => SearchHit[];
|
|
78
|
+
export type { ComponentRecord, ContentBundle, DocRecord, SearchHit, TokenScale };
|