@mastra/mcp 1.0.0 → 1.0.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.
- package/CHANGELOG.md +18 -0
- package/README.md +9 -774
- package/dist/__fixtures__/tools.d.ts +1 -1
- package/dist/__fixtures__/tools.d.ts.map +1 -1
- package/dist/docs/SKILL.md +16 -34
- package/dist/docs/{SOURCE_MAP.json → assets/SOURCE_MAP.json} +1 -1
- package/dist/docs/{mcp/01-overview.md → references/docs-mcp-overview.md} +140 -142
- package/dist/docs/references/docs-mcp-publishing-mcp-server.md +95 -0
- package/dist/docs/references/reference-tools-mcp-client.md +962 -0
- package/dist/docs/{tools/01-reference.md → references/reference-tools-mcp-server.md} +163 -1194
- package/dist/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +8 -9
- package/dist/docs/README.md +0 -33
- package/dist/docs/mcp/02-publishing-mcp-server.md +0 -111
- package/dist/docs/tools-mcp/01-mcp-overview.md +0 -384
package/dist/index.js
CHANGED
|
@@ -1999,7 +1999,7 @@ function createSimpleTokenProvider(accessToken, options) {
|
|
|
1999
1999
|
});
|
|
2000
2000
|
}
|
|
2001
2001
|
|
|
2002
|
-
// ../../node_modules/.pnpm/hono@4.11.
|
|
2002
|
+
// ../../node_modules/.pnpm/hono@4.11.7/node_modules/hono/dist/utils/stream.js
|
|
2003
2003
|
var StreamingApi = class {
|
|
2004
2004
|
writer;
|
|
2005
2005
|
encoder;
|
|
@@ -2076,7 +2076,7 @@ var StreamingApi = class {
|
|
|
2076
2076
|
}
|
|
2077
2077
|
};
|
|
2078
2078
|
|
|
2079
|
-
// ../../node_modules/.pnpm/hono@4.11.
|
|
2079
|
+
// ../../node_modules/.pnpm/hono@4.11.7/node_modules/hono/dist/helper/streaming/utils.js
|
|
2080
2080
|
var isOldBunVersion = () => {
|
|
2081
2081
|
const version = typeof Bun !== "undefined" ? Bun.version : void 0;
|
|
2082
2082
|
if (version === void 0) {
|
|
@@ -2087,7 +2087,7 @@ var isOldBunVersion = () => {
|
|
|
2087
2087
|
return result;
|
|
2088
2088
|
};
|
|
2089
2089
|
|
|
2090
|
-
// ../../node_modules/.pnpm/hono@4.11.
|
|
2090
|
+
// ../../node_modules/.pnpm/hono@4.11.7/node_modules/hono/dist/utils/html.js
|
|
2091
2091
|
var HtmlEscapedCallbackPhase = {
|
|
2092
2092
|
Stringify: 1};
|
|
2093
2093
|
var resolveCallback = async (str, phase, preserveCallbacks, context, buffer) => {
|
|
@@ -2118,14 +2118,14 @@ var resolveCallback = async (str, phase, preserveCallbacks, context, buffer) =>
|
|
|
2118
2118
|
}
|
|
2119
2119
|
};
|
|
2120
2120
|
|
|
2121
|
-
// ../../node_modules/.pnpm/hono@4.11.
|
|
2121
|
+
// ../../node_modules/.pnpm/hono@4.11.7/node_modules/hono/dist/helper/streaming/sse.js
|
|
2122
2122
|
var SSEStreamingApi = class extends StreamingApi {
|
|
2123
2123
|
constructor(writable, readable) {
|
|
2124
2124
|
super(writable, readable);
|
|
2125
2125
|
}
|
|
2126
2126
|
async writeSSE(message) {
|
|
2127
2127
|
const data = await resolveCallback(message.data, HtmlEscapedCallbackPhase.Stringify, false, {});
|
|
2128
|
-
const dataLines = data.split(
|
|
2128
|
+
const dataLines = data.split(/\r\n|\r|\n/).map((line) => {
|
|
2129
2129
|
return `data: ${line}`;
|
|
2130
2130
|
}).join("\n");
|
|
2131
2131
|
const sseData = [
|
|
@@ -2768,7 +2768,7 @@ Provided arguments: ${JSON.stringify(request.params.arguments, null, 2)}`
|
|
|
2768
2768
|
elicitation: sessionElicitation,
|
|
2769
2769
|
extra
|
|
2770
2770
|
},
|
|
2771
|
-
// @ts-
|
|
2771
|
+
// @ts-expect-error this is to let people know that the elicitation and extra keys are now nested under mcp.elicitation and mcp.extra in tool arguments
|
|
2772
2772
|
get elicitation() {
|
|
2773
2773
|
throw new Error(`The "elicitation" key is now nested under "mcp.elicitation" in tool arguments`);
|
|
2774
2774
|
},
|