@mastra/client-js 1.60.0-alpha.12 → 1.60.0-alpha.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.
- package/dist/client.d.ts +6 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +3 -3
- package/dist/docs/references/docs-auth-jwt.md +1 -1
- package/dist/index.cjs +7 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/route-types.generated.d.ts +71 -3
- package/dist/route-types.generated.d.ts.map +1 -1
- package/dist/types.d.ts +2 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -175,12 +175,12 @@ type InputShared_Auxiliary_809 = {
|
|
|
175
175
|
content?: string | undefined;
|
|
176
176
|
children?: InputShared_Auxiliary_809[] | undefined;
|
|
177
177
|
};
|
|
178
|
-
type
|
|
178
|
+
type Shared_Auxiliary_799 = {
|
|
179
179
|
id?: string | undefined;
|
|
180
180
|
name: string;
|
|
181
181
|
type: 'file' | 'folder';
|
|
182
182
|
content?: string | undefined;
|
|
183
|
-
children?:
|
|
183
|
+
children?: Shared_Auxiliary_799[] | undefined;
|
|
184
184
|
};
|
|
185
185
|
type InputShared_Type_0 = {
|
|
186
186
|
thread: string | {
|
|
@@ -3386,7 +3386,7 @@ type Shared_Type_88 = {
|
|
|
3386
3386
|
/** List of asset file paths */
|
|
3387
3387
|
assets?: string[] | undefined;
|
|
3388
3388
|
/** Full file tree structure for the skill */
|
|
3389
|
-
files?:
|
|
3389
|
+
files?: Shared_Auxiliary_799[] | undefined;
|
|
3390
3390
|
/** Additional metadata for the skill */
|
|
3391
3391
|
metadata?: {
|
|
3392
3392
|
[key: string]: unknown;
|
|
@@ -12027,6 +12027,66 @@ export interface PostWorkflowsWorkflowIdObserveStreamLegacy_RouteContract {
|
|
|
12027
12027
|
response: PostWorkflowsWorkflowIdObserveStreamLegacy_Response;
|
|
12028
12028
|
responseType: 'stream';
|
|
12029
12029
|
}
|
|
12030
|
+
export type AllMcp_Request = Simplify<(never extends never ? {} : {
|
|
12031
|
+
params: never;
|
|
12032
|
+
}) & (never extends never ? {} : {} extends never ? {
|
|
12033
|
+
query?: never;
|
|
12034
|
+
} : {
|
|
12035
|
+
query: never;
|
|
12036
|
+
}) & (never extends never ? {} : {} extends never ? {
|
|
12037
|
+
body?: never;
|
|
12038
|
+
} : {
|
|
12039
|
+
body: never;
|
|
12040
|
+
})>;
|
|
12041
|
+
export interface AllMcp_RouteContract {
|
|
12042
|
+
pathParams: never;
|
|
12043
|
+
queryParams: never;
|
|
12044
|
+
body: never;
|
|
12045
|
+
request: AllMcp_Request;
|
|
12046
|
+
response: unknown;
|
|
12047
|
+
responseType: 'mcp-http';
|
|
12048
|
+
}
|
|
12049
|
+
export type GetMcpBuiltin_Response = {
|
|
12050
|
+
enabled: false;
|
|
12051
|
+
/** 'config': server.mcp.enabled is false. 'production-without-auth': not under mastra dev and no server.auth */
|
|
12052
|
+
disabledReason: 'config' | 'production-without-auth';
|
|
12053
|
+
} | {
|
|
12054
|
+
enabled: true;
|
|
12055
|
+
/** Endpoint path including the API prefix, e.g. /api/mcp */
|
|
12056
|
+
path: string;
|
|
12057
|
+
/** Whether @mastra/mcp is installed; the endpoint answers 501 without it */
|
|
12058
|
+
mcpPackageInstalled: boolean;
|
|
12059
|
+
/** Configured toolsets this server can serve */
|
|
12060
|
+
toolsets: ('agents' | 'workflows' | 'tools' | 'memory' | 'observability' | 'observability_analytics' | 'stored_agents')[];
|
|
12061
|
+
readOnly: boolean;
|
|
12062
|
+
auth: {
|
|
12063
|
+
type: 'open';
|
|
12064
|
+
/** Open because of the mastra dev default, not server.mcp.enabled: true */
|
|
12065
|
+
devOnly: boolean;
|
|
12066
|
+
} | {
|
|
12067
|
+
type: 'protected';
|
|
12068
|
+
provider: string | null;
|
|
12069
|
+
};
|
|
12070
|
+
};
|
|
12071
|
+
export type GetMcpBuiltin_Request = Simplify<(never extends never ? {} : {
|
|
12072
|
+
params: never;
|
|
12073
|
+
}) & (never extends never ? {} : {} extends never ? {
|
|
12074
|
+
query?: never;
|
|
12075
|
+
} : {
|
|
12076
|
+
query: never;
|
|
12077
|
+
}) & (never extends never ? {} : {} extends never ? {
|
|
12078
|
+
body?: never;
|
|
12079
|
+
} : {
|
|
12080
|
+
body: never;
|
|
12081
|
+
})>;
|
|
12082
|
+
export interface GetMcpBuiltin_RouteContract {
|
|
12083
|
+
pathParams: never;
|
|
12084
|
+
queryParams: never;
|
|
12085
|
+
body: never;
|
|
12086
|
+
request: GetMcpBuiltin_Request;
|
|
12087
|
+
response: GetMcpBuiltin_Response;
|
|
12088
|
+
responseType: 'json';
|
|
12089
|
+
}
|
|
12030
12090
|
export type GetMcpV0Servers_QueryParams = {
|
|
12031
12091
|
page?: number | undefined;
|
|
12032
12092
|
perPage?: number | undefined;
|
|
@@ -20126,6 +20186,8 @@ export interface RouteTypes {
|
|
|
20126
20186
|
'POST /agents/:agentId/stream-legacy': PostAgentsAgentIdStreamLegacy_RouteContract;
|
|
20127
20187
|
'POST /workflows/:workflowId/stream-legacy': PostWorkflowsWorkflowIdStreamLegacy_RouteContract;
|
|
20128
20188
|
'POST /workflows/:workflowId/observe-stream-legacy': PostWorkflowsWorkflowIdObserveStreamLegacy_RouteContract;
|
|
20189
|
+
'ALL /mcp': AllMcp_RouteContract;
|
|
20190
|
+
'GET /mcp/builtin': GetMcpBuiltin_RouteContract;
|
|
20129
20191
|
'GET /mcp/v0/servers': GetMcpV0Servers_RouteContract;
|
|
20130
20192
|
'GET /mcp/v0/servers/:id': GetMcpV0ServersId_RouteContract;
|
|
20131
20193
|
'GET /mcp/:serverId/tools': GetMcpServerIdTools_RouteContract;
|
|
@@ -20860,6 +20922,9 @@ export interface Client {
|
|
|
20860
20922
|
'/logs/transports': {
|
|
20861
20923
|
GET: GetLogsTransports_RouteContract;
|
|
20862
20924
|
};
|
|
20925
|
+
'/mcp': {
|
|
20926
|
+
ALL: AllMcp_RouteContract;
|
|
20927
|
+
};
|
|
20863
20928
|
'/mcp/:serverId/events': {
|
|
20864
20929
|
GET: GetMcpServerIdEvents_RouteContract;
|
|
20865
20930
|
};
|
|
@@ -20908,6 +20973,9 @@ export interface Client {
|
|
|
20908
20973
|
'/mcp/:serverId/tools/:toolId/execute': {
|
|
20909
20974
|
POST: PostMcpServerIdToolsToolIdExecute_RouteContract;
|
|
20910
20975
|
};
|
|
20976
|
+
'/mcp/builtin': {
|
|
20977
|
+
GET: GetMcpBuiltin_RouteContract;
|
|
20978
|
+
};
|
|
20911
20979
|
'/mcp/v0/servers': {
|
|
20912
20980
|
GET: GetMcpV0Servers_RouteContract;
|
|
20913
20981
|
};
|