fix(skill-loader): propagate scope to MCP connections

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
YeonGyu-Kim
2026-04-08 13:10:41 +09:00
parent 5e0bd87dea
commit fa140b0375
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -38,7 +38,8 @@ export async function getOrCreateClient(params: {
return pending
}
const expandedConfig = expandEnvVarsInObject(config, { trusted: true })
const isTrusted = info.scope !== "project"
const expandedConfig = expandEnvVarsInObject(config, { trusted: isTrusted })
let currentConnectionPromise!: Promise<Client>
state.inFlightConnections.set(info.sessionID, (state.inFlightConnections.get(info.sessionID) ?? 0) + 1)
currentConnectionPromise = (async () => {
+1
View File
@@ -166,6 +166,7 @@ export function createSkillMcpTool(options: SkillMcpToolOptions): ToolDefinition
serverName: args.mcp_name,
skillName: found.skill.name,
sessionID,
scope: found.skill.scope,
}
const context: SkillMcpServerContext = {