/** * @name resources/profile/sap-active-profile * @description MCP resource exposing active profile and available profiles for context switching * @module resources/profile/sap-active-profile */ /** * SAP MCP Active Profile Resource * * Exposes the current active profile and available profiles via MCP resources. * Agents can query this to understand profile state and switch contexts. * * @module resources/profile/sap-active-profile */ import { Server } from '@modelcontextprotocol/sdk/server/index.js'; import type { SapMcpContext } from '../../../core/src/types.js'; /** * Registers the active profile resource template. * * Provides agents with information about the current active profile * and all available profiles. Includes CLI commands for profile management. * Wallet file paths and keypair bytes are intentionally redacted from MCP context. * * @param server - MCP server instance * @param context - SAP MCP execution context * * @example * ```typescript * // Agent reads active profile * const result = await mcp.readResource('sap://profile/active'); * // Returns: ActiveProfileData or ProfileError * ``` * * @example * ```typescript * // Response structure * { * "active": { * "name": "citizen-support-agent", * "configPath": "~/.config/mcp-sap/config-citizen-support-agent.json" * }, * "available": [ * { * "name": "citizen-support-agent", * "isActive": true, * "agentPubkey": "HZreoFG...", * "mode": "local-dev-keypair" * } * ], * "commands": { * "switch": "npx sap-mcp-config profile " * } * } * ``` */ export declare function sapActiveProfileResource(server: Server, _context: SapMcpContext): void; //# sourceMappingURL=sap-active-profile.resource.d.ts.map