@mastra/mcp 1.9.0 → 1.9.1-alpha.0
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 +9 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/index.cjs +8 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -7
- package/dist/index.js.map +1 -1
- package/dist/server/server.d.ts.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @mastra/mcp
|
|
2
2
|
|
|
3
|
+
## 1.9.1-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Removed Hono from @mastra/core and auth package runtime dependencies. Auth providers now receive framework-agnostic request types that support standard Request objects and Hono-compatible request shapes. MCP and deployer avoid relying on core-bundled Hono context types at package boundaries. ([#17410](https://github.com/mastra-ai/mastra/pull/17410))
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`c973db4`](https://github.com/mastra-ai/mastra/commit/c973db428df1b564ff0c35d4b2a90e8f4f1e13fd), [`552285e`](https://github.com/mastra-ai/mastra/commit/552285e5af43cfc680a0972032cab8de8776c6a0), [`77e686c`](https://github.com/mastra-ai/mastra/commit/77e686c264e493e99ae5024e4dfe3ea5d5a09718), [`ece8dba`](https://github.com/mastra-ai/mastra/commit/ece8dba7ec1a5089eee8c33167cd762bfa91e509), [`e751af2`](https://github.com/mastra-ai/mastra/commit/e751af219433fbf4c7035b2d771b4c9ec8813b05), [`e2a8380`](https://github.com/mastra-ai/mastra/commit/e2a838017a7657850404c1e94c70d79ffdc6f14a), [`be3f1cd`](https://github.com/mastra-ai/mastra/commit/be3f1cd81f0e2a649e8eac15a024d542d814aef8), [`a34d9db`](https://github.com/mastra-ai/mastra/commit/a34d9dbc39fedb722f271318e9355ecee70489ab)]:
|
|
10
|
+
- @mastra/core@1.39.0-alpha.0
|
|
11
|
+
|
|
3
12
|
## 1.9.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
package/dist/docs/SKILL.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -3887,9 +3887,10 @@ Provided arguments: ${JSON.stringify(request.params.arguments, null, 2)}`
|
|
|
3887
3887
|
* ```
|
|
3888
3888
|
*/
|
|
3889
3889
|
async startHonoSSE({ url, ssePath, messagePath, context }) {
|
|
3890
|
+
const honoContext = context;
|
|
3890
3891
|
try {
|
|
3891
3892
|
if (url.pathname === ssePath) {
|
|
3892
|
-
return streamSSE(
|
|
3893
|
+
return streamSSE(honoContext, async (stream2) => {
|
|
3893
3894
|
await this.connectHonoSSE({
|
|
3894
3895
|
messagePath,
|
|
3895
3896
|
stream: stream2
|
|
@@ -3897,22 +3898,22 @@ Provided arguments: ${JSON.stringify(request.params.arguments, null, 2)}`
|
|
|
3897
3898
|
});
|
|
3898
3899
|
} else if (url.pathname === messagePath) {
|
|
3899
3900
|
this.logger.debug("Received message");
|
|
3900
|
-
const sessionId =
|
|
3901
|
+
const sessionId = honoContext.req.query("sessionId");
|
|
3901
3902
|
this.logger.debug("Received message for sessionId", { sessionId });
|
|
3902
3903
|
if (!sessionId) {
|
|
3903
|
-
return
|
|
3904
|
+
return honoContext.text("No sessionId provided", 400);
|
|
3904
3905
|
}
|
|
3905
3906
|
if (!this.sseHonoTransports.has(sessionId)) {
|
|
3906
|
-
return
|
|
3907
|
+
return honoContext.text(`No transport found for sessionId ${sessionId}`, 400);
|
|
3907
3908
|
}
|
|
3908
|
-
const message = await this.sseHonoTransports.get(sessionId)?.handlePostMessage(
|
|
3909
|
+
const message = await this.sseHonoTransports.get(sessionId)?.handlePostMessage(honoContext);
|
|
3909
3910
|
if (!message) {
|
|
3910
|
-
return
|
|
3911
|
+
return honoContext.text("Transport not found", 400);
|
|
3911
3912
|
}
|
|
3912
3913
|
return message;
|
|
3913
3914
|
} else {
|
|
3914
3915
|
this.logger.debug("Unknown path:", { path: url.pathname });
|
|
3915
|
-
return
|
|
3916
|
+
return honoContext.text("Unknown path", 404);
|
|
3916
3917
|
}
|
|
3917
3918
|
} catch (e) {
|
|
3918
3919
|
const mastraError = new error.MastraError(
|