@agentproto/driver-agent-cli 2.4.1 → 2.4.3
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.
|
@@ -599,7 +599,7 @@ function toFileBasedMcpServers(servers) {
|
|
|
599
599
|
if (!servers || servers.length === 0) return void 0;
|
|
600
600
|
const out = {};
|
|
601
601
|
for (const s of servers) {
|
|
602
|
-
out[s.name] = s.transport === "stdio" ? { command: s.ref ?? "" } : { url: s.ref ?? "" };
|
|
602
|
+
out[s.name] = s.transport === "stdio" ? { command: s.ref ?? "" } : { url: s.ref ?? "", ...s.headers !== void 0 ? { headers: s.headers } : {} };
|
|
603
603
|
}
|
|
604
604
|
return out;
|
|
605
605
|
}
|
|
@@ -845,7 +845,15 @@ function createPrintSession(opts) {
|
|
|
845
845
|
};
|
|
846
846
|
}
|
|
847
847
|
function setupMcpConfigFile(opts, eventSchema) {
|
|
848
|
-
if (eventSchema !== "mastra-jsonl")
|
|
848
|
+
if (eventSchema !== "mastra-jsonl") {
|
|
849
|
+
const credentialed = (opts.mcpServers ?? []).filter((s) => s.transport !== "stdio" && s.headers !== void 0 && Object.keys(s.headers).length > 0).map((s) => s.name);
|
|
850
|
+
if (credentialed.length > 0) {
|
|
851
|
+
console.error(
|
|
852
|
+
`[agentproto] WARNING: mcpServers ${credentialed.map((n) => `"${n}"`).join(", ")} declare headers but the "${eventSchema}" print adapter has no MCP mounting path \u2014 the mounts (and their credentials) will NOT reach the agent.`
|
|
853
|
+
);
|
|
854
|
+
}
|
|
855
|
+
return void 0;
|
|
856
|
+
}
|
|
849
857
|
if (!opts.mcpServers || opts.mcpServers.length === 0) return void 0;
|
|
850
858
|
const dir = join(opts.cwd, ".mastracode");
|
|
851
859
|
const file = join(dir, "mcp.json");
|
|
@@ -2105,5 +2113,5 @@ function derivedModelRefusalError(definition, requested, reason) {
|
|
|
2105
2113
|
}
|
|
2106
2114
|
|
|
2107
2115
|
export { LEGACY_GATEWAY_MODE_IDS, LEGACY_POSTURE_MODE_IDS, RuntimeConfigError, agentCliFrontmatterSchema, applyModelCommand, autoAllowPermissionHandler, composeSpawn, createAcpProtocolArm, createAgentCliRuntime, createArmSessionControls, createJcodeMapperState, createMastraMapperState, createPrintSession, createProprietaryProtocolArm, defineAgentCli, inferLegacyModeKind, isLegacyExtractedModeId, isModelSwitchAcknowledgement, mapJcodeEvent, mapMastraEvent, parseModelSwitchCommand, planModePermissionHandler, promptTurn, resolveContinuationStrategy, runtimeConfigSchema, toFileBasedMcpServers };
|
|
2108
|
-
//# sourceMappingURL=chunk-
|
|
2109
|
-
//# sourceMappingURL=chunk-
|
|
2116
|
+
//# sourceMappingURL=chunk-UBRGTH3A.mjs.map
|
|
2117
|
+
//# sourceMappingURL=chunk-UBRGTH3A.mjs.map
|