Skip to content

Commit ebe4537

Browse files
Merge pull request #1 from cohere-ai/danish.dua/disable-logging
fix: remove global logging from mcp-atlassian
2 parents 9ad2cbf + 4571970 commit ebe4537

File tree

2 files changed

+21
-15
lines changed

2 files changed

+21
-15
lines changed

pyproject.toml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "mcp-atlassian"
3-
dynamic = ["version"]
3+
version = "0.11.9+cohere.1"
44
description = "The Model Context Protocol (MCP) Atlassian integration is an open-source implementation that bridges Atlassian products (Jira and Confluence) with AI language models following Anthropic's MCP specification. This project enables secure, contextual AI interactions with Atlassian tools while maintaining data privacy and security. Key features include:"
55
readme = "README.md"
66
requires-python = ">=3.10"
@@ -48,7 +48,7 @@ dev = [
4848
"ruff>=0.3.0",
4949
"black>=24.2.0",
5050
"mypy>=1.8.0",
51-
"mcp[cli]>=1.3.0"
51+
"mcp[cli]>=1.3.0",
5252
]
5353

5454
[tool.ruff]
@@ -80,7 +80,25 @@ indent-width = 4
8080
target-version = "py310"
8181

8282
[tool.ruff.lint]
83-
select = ["E", "F", "B", "W", "I", "N", "UP", "ANN", "S", "BLE", "FBT", "C4", "DTZ", "T10", "EM", "ISC", "ICN"]
83+
select = [
84+
"E",
85+
"F",
86+
"B",
87+
"W",
88+
"I",
89+
"N",
90+
"UP",
91+
"ANN",
92+
"S",
93+
"BLE",
94+
"FBT",
95+
"C4",
96+
"DTZ",
97+
"T10",
98+
"EM",
99+
"ISC",
100+
"ICN",
101+
]
84102
ignore = ["ANN401", "EM101"]
85103
fixable = ["ALL"]
86104
unfixable = []

src/mcp_atlassian/__init__.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,6 @@
2020
# package is not installed
2121
__version__ = "0.0.0"
2222

23-
# Initialize logging with appropriate level
24-
logging_level = logging.WARNING
25-
if is_env_truthy("MCP_VERBOSE"):
26-
logging_level = logging.DEBUG
27-
28-
# Set up logging to STDOUT if MCP_LOGGING_STDOUT is set to true
29-
logging_stream = sys.stdout if is_env_truthy("MCP_LOGGING_STDOUT") else sys.stderr
30-
31-
# Set up logging using the utility function
32-
logger = setup_logging(logging_level, logging_stream)
33-
3423

3524
@click.version_option(__version__, prog_name="mcp-atlassian")
3625
@click.command()
@@ -195,7 +184,6 @@ def main(
195184
# Set up logging to STDOUT if MCP_LOGGING_STDOUT is set to true
196185
logging_stream = sys.stdout if is_env_truthy("MCP_LOGGING_STDOUT") else sys.stderr
197186

198-
global logger
199187
logger = setup_logging(current_logging_level, logging_stream)
200188
logger.debug(f"Logging level set to: {logging.getLevelName(current_logging_level)}")
201189
logger.debug(

0 commit comments

Comments
 (0)