@morya-ui/mcp 0.1.1

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,157 @@
1
+ export declare function createToolHandlers(catalog?: import("./catalog.js").Catalog): {
2
+ catalog: import("./catalog.js").Catalog;
3
+ list: (args: {
4
+ kind?: "components" | "guides" | "examples" | "categories" | "patterns";
5
+ mode?: string;
6
+ limit?: number;
7
+ offset?: number;
8
+ }) => {
9
+ structuredContent?: Record<string, unknown> | undefined;
10
+ content: {
11
+ type: "text";
12
+ text: string;
13
+ }[];
14
+ };
15
+ search: (args: {
16
+ query: string;
17
+ scope?: "all" | "components" | "guides" | "api" | "examples" | "patterns" | "decisions";
18
+ mode?: string;
19
+ limit?: number;
20
+ offset?: number;
21
+ }) => {
22
+ structuredContent?: Record<string, unknown> | undefined;
23
+ content: {
24
+ type: "text";
25
+ text: string;
26
+ }[];
27
+ };
28
+ getComponent: (args: {
29
+ component?: string;
30
+ components?: string[];
31
+ mode?: string;
32
+ detail?: "compact" | "full";
33
+ includeApi?: boolean;
34
+ includeExamples?: boolean;
35
+ examplesLimit?: number;
36
+ examplesOffset?: number;
37
+ sections?: string[];
38
+ }) => {
39
+ structuredContent?: Record<string, unknown> | undefined;
40
+ content: {
41
+ type: "text";
42
+ text: string;
43
+ }[];
44
+ };
45
+ getExample: (args: {
46
+ component: string;
47
+ mode?: string;
48
+ section?: string;
49
+ variant?: string;
50
+ }) => {
51
+ structuredContent?: Record<string, unknown> | undefined;
52
+ content: {
53
+ type: "text";
54
+ text: string;
55
+ }[];
56
+ };
57
+ getGuide: (args: {
58
+ guide: string;
59
+ mode?: string;
60
+ section?: string;
61
+ detail?: "compact" | "full";
62
+ }) => {
63
+ structuredContent?: Record<string, unknown> | undefined;
64
+ content: {
65
+ type: "text";
66
+ text: string;
67
+ }[];
68
+ };
69
+ getSetup: (args: {
70
+ environment?: string;
71
+ mode?: string;
72
+ }) => {
73
+ structuredContent?: Record<string, unknown> | undefined;
74
+ content: {
75
+ type: "text";
76
+ text: string;
77
+ }[];
78
+ };
79
+ validateUsage: (args: {
80
+ component?: string;
81
+ code?: string;
82
+ mode?: string;
83
+ usages?: Array<{
84
+ component?: string;
85
+ code?: string;
86
+ }>;
87
+ }) => {
88
+ structuredContent?: Record<string, unknown> | undefined;
89
+ content: {
90
+ type: "text";
91
+ text: string;
92
+ }[];
93
+ };
94
+ listPatterns: (args: {
95
+ mode?: string;
96
+ limit?: number;
97
+ offset?: number;
98
+ }) => {
99
+ structuredContent?: Record<string, unknown> | undefined;
100
+ content: {
101
+ type: "text";
102
+ text: string;
103
+ }[];
104
+ };
105
+ getPattern: (args: {
106
+ pattern: string;
107
+ mode?: string;
108
+ }) => {
109
+ structuredContent?: Record<string, unknown> | undefined;
110
+ content: {
111
+ type: "text";
112
+ text: string;
113
+ }[];
114
+ };
115
+ recommendPage: (args: {
116
+ intent: string;
117
+ pageType?: string;
118
+ features?: string[];
119
+ mode?: string;
120
+ includeScaffold?: boolean;
121
+ }) => {
122
+ structuredContent?: Record<string, unknown> | undefined;
123
+ content: {
124
+ type: "text";
125
+ text: string;
126
+ }[];
127
+ };
128
+ getDesignRules: (args?: {
129
+ mode?: string;
130
+ }) => {
131
+ structuredContent?: Record<string, unknown> | undefined;
132
+ content: {
133
+ type: "text";
134
+ text: string;
135
+ }[];
136
+ };
137
+ recommendComponent: (args: {
138
+ query?: string;
139
+ decision?: string;
140
+ mode?: string;
141
+ limit?: number;
142
+ offset?: number;
143
+ }) => {
144
+ structuredContent?: Record<string, unknown> | undefined;
145
+ content: {
146
+ type: "text";
147
+ text: string;
148
+ }[];
149
+ };
150
+ version: () => {
151
+ structuredContent?: Record<string, unknown> | undefined;
152
+ content: {
153
+ type: "text";
154
+ text: string;
155
+ }[];
156
+ };
157
+ };