testmcpy 0.2.12__tar.gz → 0.2.13__tar.gz
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.
- {testmcpy-0.2.12/testmcpy.egg-info → testmcpy-0.2.13}/PKG-INFO +1 -1
- {testmcpy-0.2.12 → testmcpy-0.2.13}/pyproject.toml +1 -1
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/llm_profiles.py +31 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13/testmcpy.egg-info}/PKG-INFO +1 -1
- {testmcpy-0.2.12 → testmcpy-0.2.13}/LICENSE +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/MANIFEST.in +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/NOTICE +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/README.md +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/setup.cfg +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/__init__.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/auth_debugger.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/auth_flow_recorder.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/cli/__init__.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/cli/app.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/cli/commands/__init__.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/cli/commands/mcp.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/cli/commands/run.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/cli/commands/server.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/cli/commands/tools.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/cli/commands/tui.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/config.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/core/__init__.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/core/chat_session.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/core/docs_optimizer.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/core/mcp_manager.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/core/tool_comparison.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/core/tool_discovery.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/error_handlers.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/evals/__init__.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/evals/auth_evaluators.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/evals/base_evaluators.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/formatters/__init__.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/formatters/base.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/formatters/curl.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/formatters/graphql.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/formatters/javascript_client.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/formatters/json_yaml.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/formatters/protobuf.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/formatters/python.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/formatters/python_client.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/formatters/thrift.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/formatters/typescript.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/formatters/typescript_client.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/mcp_profiles.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/research/claude_sdk_detailed_exploration.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/research/claude_sdk_poc.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/research/claude_sdk_working_poc.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/research/test_ollama_tools.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/server/__init__.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/server/api.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/server/api.py.bak +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/server/helpers/__init__.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/server/helpers/mcp_config.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/server/models.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/server/routers/__init__.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/server/routers/auth.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/server/routers/generation_logs.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/server/routers/llm.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/server/routers/mcp_profiles.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/server/routers/results.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/server/routers/smoke_reports.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/server/routers/test_profiles.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/server/routers/tests.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/server/routers/tools.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/server/state.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/server/websocket.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/smoke_test.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/src/__init__.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/src/llm_integration.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/src/mcp_client.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/src/model_registry.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/src/models.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/src/runner_tools.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/src/test_runner.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/storage.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/test_profiles.py +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/ui/README.md +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/ui/dist/assets/index-CaEBvXci.css +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/ui/dist/assets/index-mv4agCEg.js +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/ui/dist/index.html +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/ui/index.html +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/ui/package-lock.json +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/ui/package.json +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/ui/postcss.config.js +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/ui/src/App.jsx +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/ui/src/components/CompareToolsTab.jsx +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/ui/src/components/ErrorAlert.jsx +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/ui/src/components/ErrorBoundary.jsx +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/ui/src/components/LLMProfileSelector.jsx +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/ui/src/components/LoadingSpinner.jsx +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/ui/src/components/MCPProfileSelector.jsx +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/ui/src/components/OptimizeDocsModal.jsx +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/ui/src/components/ParameterCard.jsx +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/ui/src/components/SchemaCodeViewer.jsx +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/ui/src/components/SkeletonLoader.jsx +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/ui/src/components/TestGenerationModal.jsx +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/ui/src/components/TestProfileSelector.jsx +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/ui/src/components/TestResultPanel.jsx +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/ui/src/components/TestStatusIndicator.jsx +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/ui/src/components/ToolComparison.jsx +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/ui/src/components/ToolDebugModal.jsx +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/ui/src/components/TypeBadge.jsx +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/ui/src/contexts/TestRunContext.jsx +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/ui/src/hooks/useKeyboardShortcuts.js +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/ui/src/hooks/useSafeFetch.js +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/ui/src/index.css +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/ui/src/main.jsx +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/ui/src/pages/AuthDebugger.jsx +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/ui/src/pages/ChatInterface.jsx +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/ui/src/pages/Configuration.jsx +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/ui/src/pages/GenerationHistory.jsx +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/ui/src/pages/LLMProfiles.jsx +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/ui/src/pages/MCPExplorer.jsx +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/ui/src/pages/MCPProfiles.jsx +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/ui/src/pages/ProfilesManager.jsx +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/ui/src/pages/Reports.jsx +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/ui/src/pages/TestManager.jsx +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/ui/src/utils/__tests__/formatConverters.test.js +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/ui/src/utils/formatConverters.js +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/ui/tailwind.config.js +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/ui/vite.config.js +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy.egg-info/SOURCES.txt +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy.egg-info/dependency_links.txt +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy.egg-info/entry_points.txt +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy.egg-info/requires.txt +0 -0
- {testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy.egg-info/top_level.txt +0 -0
|
@@ -90,7 +90,7 @@ testmcpy = [
|
|
|
90
90
|
|
|
91
91
|
[project]
|
|
92
92
|
name = "testmcpy"
|
|
93
|
-
version = "0.2.
|
|
93
|
+
version = "0.2.13"
|
|
94
94
|
description = "A comprehensive testing framework for validating LLM tool calling capabilities with MCP services"
|
|
95
95
|
authors = [{name = "Amin Ghadersohi"}]
|
|
96
96
|
license = "Apache-2.0"
|
|
@@ -5,6 +5,8 @@ Manages multiple LLM provider configurations with profile-based organization.
|
|
|
5
5
|
Similar to MCP profiles, allows users to define different LLM setups for different environments.
|
|
6
6
|
"""
|
|
7
7
|
|
|
8
|
+
import os
|
|
9
|
+
import re
|
|
8
10
|
from dataclasses import dataclass, field
|
|
9
11
|
from pathlib import Path
|
|
10
12
|
from typing import Any
|
|
@@ -12,6 +14,32 @@ from typing import Any
|
|
|
12
14
|
import yaml
|
|
13
15
|
|
|
14
16
|
|
|
17
|
+
def _substitute_env_vars(value: Any) -> Any:
|
|
18
|
+
"""
|
|
19
|
+
Recursively substitute environment variables in config values.
|
|
20
|
+
|
|
21
|
+
Supports ${VAR_NAME} and ${VAR_NAME:-default_value} syntax.
|
|
22
|
+
"""
|
|
23
|
+
if isinstance(value, str):
|
|
24
|
+
# Match ${VAR_NAME} or ${VAR_NAME:-default}
|
|
25
|
+
pattern = r"\$\{([^}:]+)(?::-([^}]*))?\}"
|
|
26
|
+
|
|
27
|
+
def replace_var(match):
|
|
28
|
+
var_name = match.group(1)
|
|
29
|
+
default_value = match.group(2) if match.group(2) is not None else ""
|
|
30
|
+
return os.environ.get(var_name, default_value)
|
|
31
|
+
|
|
32
|
+
return re.sub(pattern, replace_var, value)
|
|
33
|
+
|
|
34
|
+
elif isinstance(value, dict):
|
|
35
|
+
return {k: _substitute_env_vars(v) for k, v in value.items()}
|
|
36
|
+
|
|
37
|
+
elif isinstance(value, list):
|
|
38
|
+
return [_substitute_env_vars(item) for item in value]
|
|
39
|
+
|
|
40
|
+
return value
|
|
41
|
+
|
|
42
|
+
|
|
15
43
|
@dataclass
|
|
16
44
|
class LLMProviderConfig:
|
|
17
45
|
"""Configuration for a single LLM provider."""
|
|
@@ -96,6 +124,9 @@ class LLMProfileConfig:
|
|
|
96
124
|
if not data:
|
|
97
125
|
return
|
|
98
126
|
|
|
127
|
+
# Substitute environment variables
|
|
128
|
+
data = _substitute_env_vars(data)
|
|
129
|
+
|
|
99
130
|
# Load default profile
|
|
100
131
|
self.default_profile_id = data.get("default")
|
|
101
132
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{testmcpy-0.2.12 → testmcpy-0.2.13}/testmcpy/ui/src/utils/__tests__/formatConverters.test.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|