Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
11 changes: 1 addition & 10 deletions examples/clients/simple-auth-client/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
]
dependencies = [
"click>=8.2.0",
"mcp>=1.0.0",
]
dependencies = ["click>=8.2.0", "mcp"]

[project.scripts]
mcp-simple-auth-client = "mcp_simple_auth_client.main:cli"
Expand All @@ -44,9 +41,3 @@ target-version = "py310"

[tool.uv]
dev-dependencies = ["pyright>=1.1.379", "pytest>=8.3.3", "ruff>=0.6.9"]

[tool.uv.sources]
mcp = { path = "../../../" }

[[tool.uv.index]]
url = "https://pypi.org/simple"
535 changes: 0 additions & 535 deletions examples/clients/simple-auth-client/uv.lock

This file was deleted.

8 changes: 6 additions & 2 deletions examples/clients/simple-chatbot/mcp_simple_chatbot/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ async def start(self) -> None:
await self.cleanup_servers()


async def main() -> None:
async def run() -> None:
"""Initialize and run the chat session."""
config = Configuration()
server_config = config.load_config("servers_config.json")
Expand All @@ -411,5 +411,9 @@ async def main() -> None:
await chat_session.start()


def main() -> None:
asyncio.run(run())


if __name__ == "__main__":
asyncio.run(main())
main()
6 changes: 3 additions & 3 deletions examples/clients/simple-chatbot/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ classifiers = [
dependencies = [
"python-dotenv>=1.0.0",
"requests>=2.31.0",
"mcp>=1.0.0",
"uvicorn>=0.32.1"
"mcp",
"uvicorn>=0.32.1",
]

[project.scripts]
mcp-simple-chatbot = "mcp_simple_chatbot.client:main"
mcp-simple-chatbot = "mcp_simple_chatbot.main:main"

[build-system]
requires = ["hatchling"]
Expand Down
555 changes: 0 additions & 555 deletions examples/clients/simple-chatbot/uv.lock

This file was deleted.

52 changes: 26 additions & 26 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ venv = ".venv"
# those private functions instead of testing the private functions directly. It makes it easier to maintain the code source
# and refactor code that is not public.
executionEnvironments = [
{ root = "tests", reportUnusedFunction = false, reportPrivateUsage = false },
{ root = "examples/servers", reportUnusedFunction = false },
{ root = "tests", reportUnusedFunction = false, reportPrivateUsage = false },
{ root = "examples/servers", reportUnusedFunction = false },
]

[tool.ruff]
Expand All @@ -109,17 +109,17 @@ extend-exclude = ["README.md"]

[tool.ruff.lint]
select = [
"C4", # flake8-comprehensions
"C90", # mccabe
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"PERF", # Perflint
"PL", # Pylint
"UP", # pyupgrade
"C4", # flake8-comprehensions
"C90", # mccabe
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"PERF", # Perflint
"PL", # Pylint
"UP", # pyupgrade
]
ignore = ["PERF203", "PLC0415", "PLR0402"]
mccabe.max-complexity = 24 # Default is 10
mccabe.max-complexity = 24 # Default is 10

[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
Expand All @@ -128,13 +128,13 @@ mccabe.max-complexity = 24 # Default is 10

[tool.ruff.lint.pylint]
allow-magic-value-types = ["bytes", "float", "int", "str"]
max-args = 23 # Default is 5
max-branches = 23 # Default is 12
max-returns = 13 # Default is 6
max-statements = 102 # Default is 50
max-args = 23 # Default is 5
max-branches = 23 # Default is 12
max-returns = 13 # Default is 6
max-statements = 102 # Default is 50

[tool.uv.workspace]
members = ["examples/servers/*", "examples/snippets"]
members = ["examples/clients/*", "examples/servers/*", "examples/snippets"]

[tool.uv.sources]
mcp = { workspace = true }
Expand All @@ -154,16 +154,16 @@ filterwarnings = [
"ignore:websockets.server.WebSocketServerProtocol is deprecated:DeprecationWarning",
"ignore:Returning str or bytes.*:DeprecationWarning:mcp.server.lowlevel",
# pywin32 internal deprecation warning
"ignore:getargs.*The 'u' format is deprecated:DeprecationWarning"
"ignore:getargs.*The 'u' format is deprecated:DeprecationWarning",
]

[tool.markdown.lint]
default=true
MD004=false # ul-style - Unordered list style
MD007.indent=2 # ul-indent - Unordered list indentation
MD013=false # line-length - Line length
MD029=false # ol-prefix - Ordered list item prefix
MD033=false # no-inline-html Inline HTML
MD041=false # first-line-heading/first-line-h1
MD046=false # indented-code-blocks
MD059=false # descriptive-link-text
default = true
MD004 = false # ul-style - Unordered list style
MD007.indent = 2 # ul-indent - Unordered list indentation
MD013 = false # line-length - Line length
MD029 = false # ol-prefix - Ordered list item prefix
MD033 = false # no-inline-html Inline HTML
MD041 = false # first-line-heading/first-line-h1
MD046 = false # indented-code-blocks
MD059 = false # descriptive-link-text
64 changes: 64 additions & 0 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading