@agimon-ai/mcp-proxy 0.9.0 → 0.9.1
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/cli.cjs +1178 -1178
- package/dist/cli.mjs +1178 -1178
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -18
- package/dist/index.d.mts +4 -21
- package/dist/index.mjs +1 -1
- package/dist/{src-DA5H3rpr.mjs → src-Dv7rJN0P.mjs} +631 -678
- package/dist/{src-DJJH7z8i.cjs → src-ElP1ds81.cjs} +630 -677
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_src = require("./src-
|
|
2
|
+
const require_src = require("./src-ElP1ds81.cjs");
|
|
3
3
|
exports.ConfigFetcherService = require_src.ConfigFetcherService;
|
|
4
4
|
exports.DefinitionsCacheService = require_src.DefinitionsCacheService;
|
|
5
5
|
exports.DescribeToolsTool = require_src.DescribeToolsTool;
|
package/dist/index.d.cts
CHANGED
|
@@ -914,8 +914,6 @@ declare class DescribeToolsTool implements Tool<DescribeToolsToolInput> {
|
|
|
914
914
|
private skillService;
|
|
915
915
|
private definitionsCacheService;
|
|
916
916
|
private readonly liquid;
|
|
917
|
-
/** Cache for auto-detected skills from prompt front-matter */
|
|
918
|
-
private autoDetectedSkillsCache;
|
|
919
917
|
/** Unique server identifier for this mcp-proxy instance */
|
|
920
918
|
private serverId;
|
|
921
919
|
/**
|
|
@@ -931,21 +929,6 @@ declare class DescribeToolsTool implements Tool<DescribeToolsToolInput> {
|
|
|
931
929
|
* the skill service cache is invalidated.
|
|
932
930
|
*/
|
|
933
931
|
clearAutoDetectedSkillsCache(): void;
|
|
934
|
-
/**
|
|
935
|
-
* Detects and caches skills from prompt front-matter across all connected MCP servers.
|
|
936
|
-
* Fetches all prompts and checks their content for YAML front-matter with name/description.
|
|
937
|
-
* Results are cached to avoid repeated fetches.
|
|
938
|
-
*
|
|
939
|
-
* Error Handling Strategy:
|
|
940
|
-
* - Errors are logged to stderr but do not fail the overall detection process
|
|
941
|
-
* - This ensures partial results are returned even if some servers/prompts fail
|
|
942
|
-
* - Common failure reasons: server temporarily unavailable, prompt requires arguments,
|
|
943
|
-
* network timeout, or server doesn't support listPrompts
|
|
944
|
-
* - Errors are prefixed with [skill-detection] for easy filtering in logs
|
|
945
|
-
*
|
|
946
|
-
* @returns Array of auto-detected skills from prompt front-matter
|
|
947
|
-
*/
|
|
948
|
-
private detectSkillsFromPromptFrontMatter;
|
|
949
932
|
/**
|
|
950
933
|
* Collects skills derived from prompt configurations across all connected MCP servers.
|
|
951
934
|
* Includes both explicitly configured prompts and auto-detected skills from front-matter.
|
|
@@ -1020,7 +1003,7 @@ declare const SearchListToolsToolInputSchema: z.ZodObject<{
|
|
|
1020
1003
|
}, z.core.$strip>;
|
|
1021
1004
|
type SearchListToolsToolInput = z.infer<typeof SearchListToolsToolInputSchema>;
|
|
1022
1005
|
declare class SearchListToolsTool implements Tool<SearchListToolsToolInput> {
|
|
1023
|
-
|
|
1006
|
+
readonly _clientManager: unknown;
|
|
1024
1007
|
private readonly definitionsCacheService;
|
|
1025
1008
|
static readonly TOOL_NAME = "list_tools";
|
|
1026
1009
|
constructor(_clientManager: unknown, definitionsCacheService: DefinitionsCacheService);
|
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as _$_modelcontextprotocol_sdk_server_index_js0 from "@modelcontextprotocol/sdk/server/index.js";
|
|
2
|
-
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
3
|
-
import { CallToolResult, GetPromptResult, ReadResourceResult } from "@modelcontextprotocol/sdk/types.js";
|
|
4
1
|
import { z } from "zod";
|
|
5
2
|
import { NodeTelemetryHandle } from "@agimon-ai/log-sink-mcp";
|
|
3
|
+
import { CallToolResult, GetPromptResult, ReadResourceResult } from "@modelcontextprotocol/sdk/types.js";
|
|
4
|
+
import * as _$_modelcontextprotocol_sdk_server_index_js0 from "@modelcontextprotocol/sdk/server/index.js";
|
|
5
|
+
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
6
6
|
|
|
7
7
|
//#region src/types/index.d.ts
|
|
8
8
|
/**
|
|
@@ -914,8 +914,6 @@ declare class DescribeToolsTool implements Tool<DescribeToolsToolInput> {
|
|
|
914
914
|
private skillService;
|
|
915
915
|
private definitionsCacheService;
|
|
916
916
|
private readonly liquid;
|
|
917
|
-
/** Cache for auto-detected skills from prompt front-matter */
|
|
918
|
-
private autoDetectedSkillsCache;
|
|
919
917
|
/** Unique server identifier for this mcp-proxy instance */
|
|
920
918
|
private serverId;
|
|
921
919
|
/**
|
|
@@ -931,21 +929,6 @@ declare class DescribeToolsTool implements Tool<DescribeToolsToolInput> {
|
|
|
931
929
|
* the skill service cache is invalidated.
|
|
932
930
|
*/
|
|
933
931
|
clearAutoDetectedSkillsCache(): void;
|
|
934
|
-
/**
|
|
935
|
-
* Detects and caches skills from prompt front-matter across all connected MCP servers.
|
|
936
|
-
* Fetches all prompts and checks their content for YAML front-matter with name/description.
|
|
937
|
-
* Results are cached to avoid repeated fetches.
|
|
938
|
-
*
|
|
939
|
-
* Error Handling Strategy:
|
|
940
|
-
* - Errors are logged to stderr but do not fail the overall detection process
|
|
941
|
-
* - This ensures partial results are returned even if some servers/prompts fail
|
|
942
|
-
* - Common failure reasons: server temporarily unavailable, prompt requires arguments,
|
|
943
|
-
* network timeout, or server doesn't support listPrompts
|
|
944
|
-
* - Errors are prefixed with [skill-detection] for easy filtering in logs
|
|
945
|
-
*
|
|
946
|
-
* @returns Array of auto-detected skills from prompt front-matter
|
|
947
|
-
*/
|
|
948
|
-
private detectSkillsFromPromptFrontMatter;
|
|
949
932
|
/**
|
|
950
933
|
* Collects skills derived from prompt configurations across all connected MCP servers.
|
|
951
934
|
* Includes both explicitly configured prompts and auto-detected skills from front-matter.
|
|
@@ -1020,7 +1003,7 @@ declare const SearchListToolsToolInputSchema: z.ZodObject<{
|
|
|
1020
1003
|
}, z.core.$strip>;
|
|
1021
1004
|
type SearchListToolsToolInput = z.infer<typeof SearchListToolsToolInputSchema>;
|
|
1022
1005
|
declare class SearchListToolsTool implements Tool<SearchListToolsToolInput> {
|
|
1023
|
-
|
|
1006
|
+
readonly _clientManager: unknown;
|
|
1024
1007
|
private readonly definitionsCacheService;
|
|
1025
1008
|
static readonly TOOL_NAME = "list_tools";
|
|
1026
1009
|
constructor(_clientManager: unknown, definitionsCacheService: DefinitionsCacheService);
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as DefinitionsCacheService, E as ConfigFetcherService, S as createProxyLogger, T as findConfigFile, _ as DescribeToolsTool, a as createProxyContainer, b as RuntimeStateService, c as createStdioHttpTransportHandler, d as StdioHttpTransportHandler, f as StdioTransportHandler, g as SearchListToolsTool, h as UseToolTool, i as createHttpTransportHandler, l as createStdioTransportHandler, m as HttpTransportHandler, n as createServer, p as SseTransportHandler, r as createSessionServer, s as createSseTransportHandler, t as TRANSPORT_MODE, u as initializeSharedServices, v as
|
|
1
|
+
import { C as DefinitionsCacheService, E as ConfigFetcherService, S as createProxyLogger, T as findConfigFile, _ as DescribeToolsTool, a as createProxyContainer, b as RuntimeStateService, c as createStdioHttpTransportHandler, d as StdioHttpTransportHandler, f as StdioTransportHandler, g as SearchListToolsTool, h as UseToolTool, i as createHttpTransportHandler, l as createStdioTransportHandler, m as HttpTransportHandler, n as createServer, p as SseTransportHandler, r as createSessionServer, s as createSseTransportHandler, t as TRANSPORT_MODE, u as initializeSharedServices, v as StopServerService, w as generateServerId, x as McpClientManagerService, y as SkillService } from "./src-Dv7rJN0P.mjs";
|
|
2
2
|
export { ConfigFetcherService, DefinitionsCacheService, DescribeToolsTool, HttpTransportHandler, McpClientManagerService, RuntimeStateService, SearchListToolsTool, SkillService, SseTransportHandler, StdioHttpTransportHandler, StdioTransportHandler, StopServerService, TRANSPORT_MODE, UseToolTool, createHttpTransportHandler, createProxyContainer, createProxyLogger, createServer, createSessionServer, createSseTransportHandler, createStdioHttpTransportHandler, createStdioTransportHandler, findConfigFile, generateServerId, initializeSharedServices };
|