@iwas/mcp 0.0.0-stage → 1.0.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/README.md +134 -2
- package/dist/auth/index.d.ts +631 -0
- package/dist/auth/index.js +2451 -0
- package/dist/bin.js +1833 -0
- package/dist/catalog/index.d.ts +639 -0
- package/dist/catalog/index.js +1118 -0
- package/dist/client/index.d.ts +14 -0
- package/dist/client/index.js +18 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.js +3458 -0
- package/dist/registrar-CNvQygSE.d.ts +192 -0
- package/package.json +69 -3
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { T as ToolClient } from '../registrar-CNvQygSE.js';
|
|
2
|
+
import 'zod';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Client transport interfaces for @iwas/mcp.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
interface McpClientOptions {
|
|
9
|
+
baseUrl: string;
|
|
10
|
+
accessToken?: string;
|
|
11
|
+
dpopPrivateKey?: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type { McpClientOptions };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/client/index.ts
|
|
17
|
+
var client_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(client_exports);
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export { BLOG_WRITE_ARG_BOUNDS, MCP_ARGS_SUMMARY_MAX, MCP_CAPABILITIES, MCP_CONTENT_MD_MAX, MCP_LIST_LIMIT_DEFAULT, MCP_LIST_LIMIT_MAX, MCP_OFFSET_MAX, MCP_PROMPTS, MCP_TAG_COUNT_MAX, MCP_TAG_LENGTH_MAX, MCP_TOOLS, MCP_TOOL_PERMISSION_MAP, MCP_TOOL_RESULT_MAX_BYTES, MCP_TOOL_RESULT_PREVIEW_CHARS, MCP_URL_MAX, UNTRUSTED_TOOL_CONTENT_SUFFIX, UNTRUSTED_TOOL_OUTPUT_NOTE, analyticsTools, blogCreatePostTool, blogDeletePostTool, blogGetPostTool, blogImportMediaTool, blogListPostsTool, blogRequestUploadUrlTool, blogTools, blogUpdatePostTool, blogUploadMediaBase64Tool, diagnosticsTools, getAllMcpToolAllowedArgs, getDashboardStatsTool, getErrorByRequestIdTool, getMcpCapabilities, getMcpCapability, getMcpCapabilityByMethod, getMcpCapabilityNames, getMcpPromptNames, getMcpPrompts, getMcpSpanTool, getMcpTool, getMcpToolAllowedArgs, getMcpToolNames, getMcpToolPermissionMap, getMcpTools, getPackageTool, getRevenueBreakdownTool, getSessionAccountingTool, insightsTools, investigateApiFailurePrompt, listActiveSessionsTool, listAuditLogsTool, listErrorEventsTool, listFlowEventsTool, listIssuesTool, listPackagesTool, listTodaySessionsTool, mcpErrorResult, mcpJsonResult, morningRevenueDigestPrompt, promptDefinitions, querySystemLogsTool, readServiceHealthTool, sessionsTools, suggestPromoWindowsTool, summarizePackagePerformanceTool, updateIssueStatusTool } from './catalog/index.js';
|
|
2
|
+
export { McpClientOptions } from './client/index.js';
|
|
3
|
+
export { CredentialVault, CredentialVaultOptions, DEFAULT_CLI_CLIENT_ID, DEFAULT_KEYCHAIN_SERVICE, DEFAULT_READ_ONLY_SCOPES, DEFAULT_SCOPES, DEFAULT_SERVER_URL, DEVICE_CODE_GRANT_TYPE, DefaultKeychainRunner, DeviceAuthorizationResponse, DeviceLoginOptions, DeviceLoginResult, HttpError, HttpResponse, KeychainCommandRunner, KeychainOptions, KeychainRunResult, KeychainService, LogoutOptions, LogoutResult, McpCredentials, OAuthTokenErrorResponse, OAuthTokenSuccessResponse, ReauthenticationRequiredError, RequestOptions, SpawnFunction, StoredMcpCredentials, TokenRefreshManager, TokenRefreshManagerOptions, VaultBackendType, VaultLock, VaultLockData, VaultLockError, VaultLockOptions, VaultLockTimeoutError, decodeJwtPayload, defaultIsProcessAlive, executeLogin, executeLogout, executeStatus, isCredentialExpired, isLocalhost, isValidStoredCredentials, normalizeProfileKey, openBrowser, pollDeviceToken, redactCredentials, requestDeviceCode, resolveAuthServerUrl, resolveMcpResourceUrl, sanitizeSecretString, sendRequest, validateScopes, withVaultLock } from './auth/index.js';
|
|
4
|
+
export { C as CATALOG_DEFINITIONS, M as McpCapabilityDefinition, a as McpCapabilityType, b as McpDomain, c as McpPromptDefinition, d as McpToolAnnotations, e as McpToolDefinition, f as McpToolParamsShape, P as PermissionString, R as Resource, T as ToolClient, g as ToolRegistrar, i as isPermissionString } from './registrar-CNvQygSE.js';
|
|
5
|
+
import 'zod';
|
|
6
|
+
import '@modelcontextprotocol/sdk/types';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* CLI binary entrypoint for @iwas/mcp (`iwas` & `iwas-mcp`).
|
|
10
|
+
*
|
|
11
|
+
* Implements RFC 8628 Device Authorization CLI:
|
|
12
|
+
* - `iwas login [--server <url>] [--client-id <id>] [--scopes <list>] [--no-browser] [--json]`
|
|
13
|
+
* - `iwas status [--server <url>] [--client-id <id>] [--json]`
|
|
14
|
+
* - `iwas logout [--server <url>] [--client-id <id>] [--json]`
|
|
15
|
+
* - `iwas --version`
|
|
16
|
+
* - `iwas --help`
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
declare const CLI_NAME = "iwas";
|
|
20
|
+
declare const CLI_VERSION = "1.0.0";
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* @iwas/mcp root entrypoint.
|
|
24
|
+
*/
|
|
25
|
+
declare const VERSION = "1.0.0";
|
|
26
|
+
|
|
27
|
+
export { CLI_NAME, CLI_VERSION, VERSION };
|