Skip to content

Commit d1d0afb

Browse files
Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent e8513b3 commit d1d0afb

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/seclab_taskflow_agent/path_utils.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,14 @@
99
def mcp_data_dir(packagename: str, mcpname: str, env_override: str | None) -> Path:
1010
"""
1111
Create a directory for an MCP to store its data.
12-
env_override is the name of an environment variable that
13-
can be used to override the default location.
12+
13+
Parameters:
14+
packagename (str): The name of the package. Used as a subdirectory under the data directory.
15+
mcpname (str): The name of the MCP server. Used as a subdirectory under the package directory.
16+
env_override (str | None): The name of an environment variable that, if set, overrides the default data directory location. If None, the default location is used.
17+
18+
Returns:
19+
Path: The path to the created data directory for the MCP server.
1420
"""
1521
if env_override:
1622
p = os.getenv(env_override)

0 commit comments

Comments
 (0)