@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.cjs
CHANGED
|
@@ -2006,7 +2006,7 @@ function createSimpleTokenProvider(accessToken, options) {
|
|
|
2006
2006
|
});
|
|
2007
2007
|
}
|
|
2008
2008
|
|
|
2009
|
-
// ../../node_modules/.pnpm/hono@4.11.
|
|
2009
|
+
// ../../node_modules/.pnpm/hono@4.11.7/node_modules/hono/dist/utils/stream.js
|
|
2010
2010
|
var StreamingApi = class {
|
|
2011
2011
|
writer;
|
|
2012
2012
|
encoder;
|
|
@@ -2083,7 +2083,7 @@ var StreamingApi = class {
|
|
|
2083
2083
|
}
|
|
2084
2084
|
};
|
|
2085
2085
|
|
|
2086
|
-
// ../../node_modules/.pnpm/hono@4.11.
|
|
2086
|
+
// ../../node_modules/.pnpm/hono@4.11.7/node_modules/hono/dist/helper/streaming/utils.js
|
|
2087
2087
|
var isOldBunVersion = () => {
|
|
2088
2088
|
const version = typeof Bun !== "undefined" ? Bun.version : void 0;
|
|
2089
2089
|
if (version === void 0) {
|
|
@@ -2094,7 +2094,7 @@ var isOldBunVersion = () => {
|
|
|
2094
2094
|
return result;
|
|
2095
2095
|
};
|
|
2096
2096
|
|
|
2097
|
-
// ../../node_modules/.pnpm/hono@4.11.
|
|
2097
|
+
// ../../node_modules/.pnpm/hono@4.11.7/node_modules/hono/dist/utils/html.js
|
|
2098
2098
|
var HtmlEscapedCallbackPhase = {
|
|
2099
2099
|
Stringify: 1};
|
|
2100
2100
|
var resolveCallback = async (str, phase, preserveCallbacks, context, buffer) => {
|
|
@@ -2125,14 +2125,14 @@ var resolveCallback = async (str, phase, preserveCallbacks, context, buffer) =>
|
|
|
2125
2125
|
}
|
|
2126
2126
|
};
|
|
2127
2127
|
|
|
2128
|
-
// ../../node_modules/.pnpm/hono@4.11.
|
|
2128
|
+
// ../../node_modules/.pnpm/hono@4.11.7/node_modules/hono/dist/helper/streaming/sse.js
|
|
2129
2129
|
var SSEStreamingApi = class extends StreamingApi {
|
|
2130
2130
|
constructor(writable, readable) {
|
|
2131
2131
|
super(writable, readable);
|
|
2132
2132
|
}
|
|
2133
2133
|
async writeSSE(message) {
|
|
2134
2134
|
const data = await resolveCallback(message.data, HtmlEscapedCallbackPhase.Stringify, false, {});
|
|
2135
|
-
const dataLines = data.split(
|
|
2135
|
+
const dataLines = data.split(/\r\n|\r|\n/).map((line) => {
|
|
2136
2136
|
return `data: ${line}`;
|
|
2137
2137
|
}).join("\n");
|
|
2138
2138
|
const sseData = [
|
|
@@ -2775,7 +2775,7 @@ Provided arguments: ${JSON.stringify(request.params.arguments, null, 2)}`
|
|
|
2775
2775
|
elicitation: sessionElicitation,
|
|
2776
2776
|
extra
|
|
2777
2777
|
},
|
|
2778
|
-
// @ts-
|
|
2778
|
+
// @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
|
|
2779
2779
|
get elicitation() {
|
|
2780
2780
|
throw new Error(`The "elicitation" key is now nested under "mcp.elicitation" in tool arguments`);
|
|
2781
2781
|
},
|