Skip to content

Commit 30b82f2

Browse files
authored
Merge pull request #182 from Teradata/windows-cli-fix
Windows cli fix
2 parents cdebe18 + 404e6e5 commit 30b82f2

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "teradata-mcp-server"
3-
version = "0.1.5.post1"
3+
version = "0.1.5.post2"
44
description = "Model Context Protocol (MCP) server for Teradata, Community edition"
55
readme = {file = "README.md", content-type = "text/markdown"}
66
license = {text = "MIT"}

src/teradata_mcp_server/app.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ def get_tdconn(recreate: bool = False):
119119
mcp.add_middleware(middleware)
120120

121121
# Adapters (inlined for simplicity)
122-
process_id = f"{os.uname().nodename}:{os.getpid()}"
122+
import socket
123+
hostname = socket.gethostname()
124+
process_id = f"{hostname}:{os.getpid()}"
123125

124126
def execute_db_tool(tool, *args, **kwargs):
125127
"""Execute a handler with a DB connection and MCP concerns.

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)