Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
19288e1
Toreleon non config mcphub (#21)
toreleon Apr 13, 2025
40a115b
Toreleon cli (#22)
toreleon Apr 13, 2025
0fc4f34
Enhance test for 'init' command to skip config creation when it exists
toreleon Apr 13, 2025
17d1c97
Enhance test for 'init' command to skip config creation when it exist…
toreleon Apr 13, 2025
bbd1bd8
Merge branch 'master' of github.com:Cognitive-Stack/mcphub
toreleon Apr 13, 2025
177d37c
Enhance test for 'init' command to skip config creation when it exist…
toreleon Apr 13, 2025
1d43447
Merge branch 'master' of github.com:Cognitive-Stack/mcphub
toreleon Apr 14, 2025
49ae77e
Refactor dependencies in pyproject.toml to separate optional dependen…
toreleon Apr 14, 2025
35c9358
Toreleon fix dependencies (#25)
toreleon Apr 14, 2025
bfe2783
Merge branch 'master' of github.com:Cognitive-Stack/mcphub
toreleon Apr 14, 2025
c0ad3b1
Optional init (#26)
hieutrtr Apr 14, 2025
8b9cee3
[hot-fix] autogen create_adapters and add examples
hieutrtr Apr 14, 2025
9a5baf8
remove test file
hieutrtr Apr 14, 2025
be0eb5a
update readme
hieutrtr Apr 14, 2025
171739a
Add SSE support for running MCP servers and enhance add command funct…
toreleon May 7, 2025
bc9824a
Toreleon auto config (#30)
toreleon May 9, 2025
8ef4c52
Update README and add CLI documentation for MCPHub (#32)
toreleon May 9, 2025
f16e32b
Update src/mcphub/mcp_servers/params.py
toreleon May 9, 2025
cdd4f29
Update src/mcphub/mcp_servers/params.py
toreleon May 9, 2025
f7e1ab8
Enhance config params (#34)
hieutrtr May 15, 2025
3148101
Enhance config params (#35)
hieutrtr May 15, 2025
b514752
Update README and add CLI documentation for MCPHub (#37)
toreleon May 15, 2025
d223ac2
rebase release
hieutrtr May 15, 2025
4f5571c
Toreleon cli (#22)
toreleon Apr 13, 2025
925880f
Optional init (#26)
hieutrtr Apr 14, 2025
078a177
Enhance config params (#34)
hieutrtr May 15, 2025
c158fd7
Enhance config params (#35)
hieutrtr May 15, 2025
9125310
pull master
hieutrtr May 15, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "mcphub"
version = "0.1.10"
version = "0.1.11"
description = "A Python package for managing and integrating Model Context Protocol (MCP) servers with AI frameworks like OpenAI Agents, LangChain, and Autogen"
readme = "README.md"
authors = [
Expand Down
13 changes: 10 additions & 3 deletions src/mcphub/mcp_servers/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def _load_user_config(self) -> Dict:
"""Load user configuration from JSON file."""
# If no config path is provided, return empty dict
if not self.config_path:
return {}
raise ServerConfigNotFoundError("No configuration file path provided")

try:
with open(self.config_path, "r") as f:
Expand Down Expand Up @@ -188,8 +188,15 @@ def _load_servers_params(self) -> Dict[str, MCPServerConfig]:
)

# Get command and args with defaults
command = server_config.get("command", "npx")
args = server_config.get("args", ["-y", package_name])
command = server_config.get("command", None)
args = server_config.get("args", None)

# Skip if command or args is None
if command is None or args is None:
raise ValueError(
f"Invalid server '{mcp_name}' configuration: command or args is None. "
f"Command: {command}, Args: {args}"
)

servers[mcp_name] = MCPServerConfig(
package_name=package_name,
Expand Down