@alfe.ai/microsoft-mcp 0.1.12 → 0.1.13

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/dist/server.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
- import { ChangelogEntry, EncryptedEnvelopeV1, FieldEnvelope, FieldFormat, FieldSensitivity, GeneratedDataKey, IntegrationConfigResult, IntegrationInstall, RegistryEntry, ScopeInfo, SecretAggregate, SecretCategory, SecretMetadata, SecretScope } from "@alfe/types";
2
+ import { ChangelogEntry, EncryptedEnvelopeV1, FieldEnvelope, FieldFormat, FieldSensitivity, GeneratedDataKey, IntegrationActivationSource, IntegrationActualStatus, IntegrationConfigResult, IntegrationDesiredStatus, IntegrationInstall, IntegrationScope, RegistryEntry, ScopeInfo, SecretAggregate, SecretCategory, SecretMetadata, SecretScope } from "@alfe/types";
3
3
 
4
4
  //#region ../agent-api-client/dist/index.d.ts
5
5
 
@@ -69,6 +69,69 @@ declare class ApiBase {
69
69
  }
70
70
  //# sourceMappingURL=transport.d.ts.map
71
71
  //#endregion
72
+ //#region src/domains/integrations.d.ts
73
+ /**
74
+ * One entry in the agent's EFFECTIVE integration list. Agent-scope install
75
+ * rows keep their full public row shape (config included, `scope: "agent"`);
76
+ * connection-/channel-/custom-driven activations and inherited
77
+ * org/team/project installs have no agent-scope row and appear as the
78
+ * narrower projection. Discriminate on `config`: only the agent-scope row
79
+ * arm carries it (`source` alone is NOT a discriminator — inherited explicit
80
+ * rows land in the narrow arm with `source: "explicit"` too).
81
+ */
82
+ type AgentIntegrationListEntry = (IntegrationInstall & {
83
+ source: "explicit";
84
+ }) | {
85
+ integrationId: string;
86
+ version: string;
87
+ desiredStatus: IntegrationDesiredStatus;
88
+ actualStatus: IntegrationActualStatus;
89
+ source: IntegrationActivationSource;
90
+ /** Winning row's scope — present only on inherited explicit entries. */
91
+ scope?: IntegrationScope;
92
+ scopeId?: string;
93
+ config?: undefined;
94
+ connectionId?: string;
95
+ channelId?: string;
96
+ displayName?: string;
97
+ icon?: string;
98
+ availableVersion?: string;
99
+ reinstallRequestedAt?: string;
100
+ };
101
+ declare class IntegrationsApi extends ApiBase {
102
+ /**
103
+ * List the integrations EFFECTIVE for this agent — explicit agent-scope
104
+ * installs plus driven activations (google, myob, xero, google-chat, …)
105
+ * and inherited org-scope installs, discriminated by `source`.
106
+ */
107
+ listIntegrations(): Promise<{
108
+ integrations: AgentIntegrationListEntry[];
109
+ }>;
110
+ getIntegrationConfig(integrationId: string): Promise<IntegrationConfigResult>;
111
+ updateIntegrationConfig(integrationId: string, config: Record<string, unknown>): Promise<void>;
112
+ installIntegration(integrationId: string, options?: {
113
+ version?: string;
114
+ config?: Record<string, unknown>;
115
+ }): Promise<IntegrationInstall>;
116
+ removeIntegration(integrationId: string): Promise<IntegrationInstall>;
117
+ getOAuthUrl(provider: string, scopes?: string[], options?: {
118
+ shop?: string;
119
+ }): Promise<{
120
+ url: string;
121
+ provider: string;
122
+ expiresIn: number;
123
+ }>;
124
+ getOAuthStatus(provider: string): Promise<{
125
+ provider: string;
126
+ connected: boolean;
127
+ config?: Record<string, string>;
128
+ }>;
129
+ getRegistry(): Promise<{
130
+ integrations: RegistryEntry[];
131
+ }>;
132
+ }
133
+ //# sourceMappingURL=integrations.d.ts.map
134
+ //#endregion
72
135
  //#region src/domains/workspace.d.ts
73
136
  /** Response of GET /agent/workspace (services/agents). */
74
137
  interface AgentWorkspaceInfo {
@@ -1625,34 +1688,6 @@ declare class ImagesApi extends ApiBase {
1625
1688
  }
1626
1689
  //# sourceMappingURL=images.d.ts.map
1627
1690
  //#endregion
1628
- //#region src/domains/integrations.d.ts
1629
- declare class IntegrationsApi extends ApiBase {
1630
- listIntegrations(): Promise<IntegrationInstall[]>;
1631
- getIntegrationConfig(integrationId: string): Promise<IntegrationConfigResult>;
1632
- updateIntegrationConfig(integrationId: string, config: Record<string, unknown>): Promise<void>;
1633
- installIntegration(integrationId: string, options?: {
1634
- version?: string;
1635
- config?: Record<string, unknown>;
1636
- }): Promise<IntegrationInstall>;
1637
- removeIntegration(integrationId: string): Promise<IntegrationInstall>;
1638
- getOAuthUrl(provider: string, scopes?: string[], options?: {
1639
- shop?: string;
1640
- }): Promise<{
1641
- url: string;
1642
- provider: string;
1643
- expiresIn: number;
1644
- }>;
1645
- getOAuthStatus(provider: string): Promise<{
1646
- provider: string;
1647
- connected: boolean;
1648
- config?: Record<string, string>;
1649
- }>;
1650
- getRegistry(): Promise<{
1651
- integrations: RegistryEntry[];
1652
- }>;
1653
- }
1654
- //# sourceMappingURL=integrations.d.ts.map
1655
- //#endregion
1656
1691
  //#region src/domains/memory.d.ts
1657
1692
  declare class MemoryApi extends ApiBase {
1658
1693
  memorySearch(query: string, opts?: {
package/dist/server.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
- import { ChangelogEntry, EncryptedEnvelopeV1, FieldEnvelope, FieldFormat, FieldSensitivity, GeneratedDataKey, IntegrationConfigResult, IntegrationInstall, RegistryEntry, ScopeInfo, SecretAggregate, SecretCategory, SecretMetadata, SecretScope } from "@alfe/types";
2
+ import { ChangelogEntry, EncryptedEnvelopeV1, FieldEnvelope, FieldFormat, FieldSensitivity, GeneratedDataKey, IntegrationActivationSource, IntegrationActualStatus, IntegrationConfigResult, IntegrationDesiredStatus, IntegrationInstall, IntegrationScope, RegistryEntry, ScopeInfo, SecretAggregate, SecretCategory, SecretMetadata, SecretScope } from "@alfe/types";
3
3
 
4
4
  //#region ../agent-api-client/dist/index.d.ts
5
5
 
@@ -69,6 +69,69 @@ declare class ApiBase {
69
69
  }
70
70
  //# sourceMappingURL=transport.d.ts.map
71
71
  //#endregion
72
+ //#region src/domains/integrations.d.ts
73
+ /**
74
+ * One entry in the agent's EFFECTIVE integration list. Agent-scope install
75
+ * rows keep their full public row shape (config included, `scope: "agent"`);
76
+ * connection-/channel-/custom-driven activations and inherited
77
+ * org/team/project installs have no agent-scope row and appear as the
78
+ * narrower projection. Discriminate on `config`: only the agent-scope row
79
+ * arm carries it (`source` alone is NOT a discriminator — inherited explicit
80
+ * rows land in the narrow arm with `source: "explicit"` too).
81
+ */
82
+ type AgentIntegrationListEntry = (IntegrationInstall & {
83
+ source: "explicit";
84
+ }) | {
85
+ integrationId: string;
86
+ version: string;
87
+ desiredStatus: IntegrationDesiredStatus;
88
+ actualStatus: IntegrationActualStatus;
89
+ source: IntegrationActivationSource;
90
+ /** Winning row's scope — present only on inherited explicit entries. */
91
+ scope?: IntegrationScope;
92
+ scopeId?: string;
93
+ config?: undefined;
94
+ connectionId?: string;
95
+ channelId?: string;
96
+ displayName?: string;
97
+ icon?: string;
98
+ availableVersion?: string;
99
+ reinstallRequestedAt?: string;
100
+ };
101
+ declare class IntegrationsApi extends ApiBase {
102
+ /**
103
+ * List the integrations EFFECTIVE for this agent — explicit agent-scope
104
+ * installs plus driven activations (google, myob, xero, google-chat, …)
105
+ * and inherited org-scope installs, discriminated by `source`.
106
+ */
107
+ listIntegrations(): Promise<{
108
+ integrations: AgentIntegrationListEntry[];
109
+ }>;
110
+ getIntegrationConfig(integrationId: string): Promise<IntegrationConfigResult>;
111
+ updateIntegrationConfig(integrationId: string, config: Record<string, unknown>): Promise<void>;
112
+ installIntegration(integrationId: string, options?: {
113
+ version?: string;
114
+ config?: Record<string, unknown>;
115
+ }): Promise<IntegrationInstall>;
116
+ removeIntegration(integrationId: string): Promise<IntegrationInstall>;
117
+ getOAuthUrl(provider: string, scopes?: string[], options?: {
118
+ shop?: string;
119
+ }): Promise<{
120
+ url: string;
121
+ provider: string;
122
+ expiresIn: number;
123
+ }>;
124
+ getOAuthStatus(provider: string): Promise<{
125
+ provider: string;
126
+ connected: boolean;
127
+ config?: Record<string, string>;
128
+ }>;
129
+ getRegistry(): Promise<{
130
+ integrations: RegistryEntry[];
131
+ }>;
132
+ }
133
+ //# sourceMappingURL=integrations.d.ts.map
134
+ //#endregion
72
135
  //#region src/domains/workspace.d.ts
73
136
  /** Response of GET /agent/workspace (services/agents). */
74
137
  interface AgentWorkspaceInfo {
@@ -1625,34 +1688,6 @@ declare class ImagesApi extends ApiBase {
1625
1688
  }
1626
1689
  //# sourceMappingURL=images.d.ts.map
1627
1690
  //#endregion
1628
- //#region src/domains/integrations.d.ts
1629
- declare class IntegrationsApi extends ApiBase {
1630
- listIntegrations(): Promise<IntegrationInstall[]>;
1631
- getIntegrationConfig(integrationId: string): Promise<IntegrationConfigResult>;
1632
- updateIntegrationConfig(integrationId: string, config: Record<string, unknown>): Promise<void>;
1633
- installIntegration(integrationId: string, options?: {
1634
- version?: string;
1635
- config?: Record<string, unknown>;
1636
- }): Promise<IntegrationInstall>;
1637
- removeIntegration(integrationId: string): Promise<IntegrationInstall>;
1638
- getOAuthUrl(provider: string, scopes?: string[], options?: {
1639
- shop?: string;
1640
- }): Promise<{
1641
- url: string;
1642
- provider: string;
1643
- expiresIn: number;
1644
- }>;
1645
- getOAuthStatus(provider: string): Promise<{
1646
- provider: string;
1647
- connected: boolean;
1648
- config?: Record<string, string>;
1649
- }>;
1650
- getRegistry(): Promise<{
1651
- integrations: RegistryEntry[];
1652
- }>;
1653
- }
1654
- //# sourceMappingURL=integrations.d.ts.map
1655
- //#endregion
1656
1691
  //#region src/domains/memory.d.ts
1657
1692
  declare class MemoryApi extends ApiBase {
1658
1693
  memorySearch(query: string, opts?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfe.ai/microsoft-mcp",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "description": "Microsoft 365 MCP server — multi-account Microsoft Graph access using Alfe OAuth credentials with server-mediated token refresh",
5
5
  "type": "module",
6
6
  "main": "./dist/server.js",
@@ -22,7 +22,7 @@
22
22
  "@modelcontextprotocol/sdk": "^1.29.0",
23
23
  "zod": "^4.0.5",
24
24
  "@alfe.ai/config": "0.4.1",
25
- "@alfe.ai/agent-api-client": "0.17.1"
25
+ "@alfe.ai/agent-api-client": "0.18.0"
26
26
  },
27
27
  "license": "UNLICENSED",
28
28
  "homepage": "https://alfe.ai",