Skip to content

Commit a79f51f

Browse files
committed
style: Fix imports and line length formatting
1 parent 7bbf71e commit a79f51f

37 files changed

+232
-125
lines changed

examples/fastmcp/complex_inputs.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44
Demonstrates validation via pydantic with complex models.
55
"""
66

7-
from pydantic import BaseModel, Field
87
from typing import Annotated
8+
9+
from pydantic import BaseModel, Field
10+
911
from mcp.server.fastmcp import FastMCP
1012

1113
mcp = FastMCP("Shrimp Tank")

examples/fastmcp/memory.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66

77
"""
88
Recursive memory system inspired by the human brain's clustering of memories.
9-
Uses OpenAI's 'text-embedding-3-small' model and pgvector for efficient similarity search.
9+
Uses OpenAI's 'text-embedding-3-small' model and pgvector for efficient
10+
similarity search.
1011
"""
1112

1213
import asyncio
@@ -111,7 +112,8 @@ async def save(self, deps: Deps):
111112
if self.id is None:
112113
result = await conn.fetchrow(
113114
"""
114-
INSERT INTO memories (content, summary, importance, access_count, timestamp, embedding)
115+
INSERT INTO memories (content, summary, importance, access_count,
116+
timestamp, embedding)
115117
VALUES ($1, $2, $3, $4, $5, $6)
116118
RETURNING id
117119
""",
@@ -336,7 +338,8 @@ async def initialize_database():
336338
timestamp DOUBLE PRECISION NOT NULL,
337339
embedding vector(1536) NOT NULL
338340
);
339-
CREATE INDEX IF NOT EXISTS idx_memories_embedding ON memories USING hnsw (embedding vector_l2_ops);
341+
CREATE INDEX IF NOT EXISTS idx_memories_embedding ON memories
342+
USING hnsw (embedding vector_l2_ops);
340343
""")
341344
finally:
342345
await pool.close()

examples/fastmcp/readme-quickstart.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from mcp.server.fastmcp import FastMCP
22

3-
43
# Create an MCP server
54
mcp = FastMCP("Demo")
65

examples/fastmcp/screenshot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
"""
66

77
import io
8+
89
from mcp.server.fastmcp import FastMCP
910
from mcp.server.fastmcp.utilities.types import Image
1011

11-
1212
# Create server
1313
mcp = FastMCP("Screenshot Demo", dependencies=["pyautogui", "Pillow"])
1414

examples/fastmcp/simple_echo.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
from mcp.server.fastmcp import FastMCP
66

7-
87
# Create server
98
mcp = FastMCP("Echo Server")
109

examples/fastmcp/text_me.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"""
2020

2121
from typing import Annotated
22+
2223
import httpx
2324
from pydantic import BeforeValidator
2425
from pydantic_settings import BaseSettings, SettingsConfigDict

examples/servers/simple-resource/mcp_simple_resource/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import anyio
22
import click
33
import mcp.types as types
4-
from pydantic import AnyUrl
54
from mcp.server.lowlevel import Server
5+
from pydantic import AnyUrl
66

77
SAMPLE_RESOURCES = {
88
"greeting": "Hello! This is a sample text resource.",

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ dev-dependencies = [
4747
"trio>=0.26.2",
4848
"pytest-flakefinder>=1.1.0",
4949
"pytest-xdist>=3.6.1",
50-
"pytest-asyncio>=0.24.0",
5150
]
5251

5352
[build-system]

src/mcp/cli/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22

33
from .cli import app
44

5-
65
if __name__ == "__main__":
76
app()

src/mcp/cli/claude.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ def update_claude_config(
4848
config_dir = get_claude_config_path()
4949
if not config_dir:
5050
raise RuntimeError(
51-
"Claude Desktop config directory not found. Please ensure Claude Desktop "
52-
"is installed and has been run at least once to initialize its configuration."
51+
"Claude Desktop config directory not found. Please ensure Claude Desktop"
52+
" is installed and has been run at least once to initialize its config."
5353
)
5454

5555
config_file = config_dir / "claude_desktop_config.json"

0 commit comments

Comments
 (0)