Skip to content

Commit fedf7f5

Browse files
authored
Merge pull request #17 from signnow/feat/add-mcp-resources
feat: add MCP resources and refactor token/client initialization
2 parents 338f835 + d1e9648 commit fedf7f5

File tree

4 files changed

+179
-125
lines changed

4 files changed

+179
-125
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
.idea/
44
__pycache__/
55
*.egg-info/
6+
src/sn_mcp_server/_version.py

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ description = "A Model Context Protocol (MCP) server that provides SignNow API i
99
readme = "README.md"
1010
requires-python = ">=3.10"
1111
dependencies = [
12-
"fastmcp>=2,<3",
12+
"fastmcp>=2.13.0,<3",
1313
"uvicorn[standard]>=0.24",
1414
"typer>=0.9",
1515
"mcp[cli]>=1.10,<2",

src/sn_mcp_server/tools/list_documents.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"""
77

88
from signnow_client import SignNowAPIClient
9-
from signnow_client.config import SignNowConfig
109

1110
from .models import (
1211
SimplifiedDocumentGroup,
@@ -15,7 +14,7 @@
1514
)
1615

1716

18-
def _list_document_groups(token: str, signnow_config: SignNowConfig, limit: int = 50, offset: int = 0) -> SimplifiedDocumentGroupsResponse:
17+
def _list_document_groups(token: str, client: SignNowAPIClient, limit: int = 50, offset: int = 0) -> SimplifiedDocumentGroupsResponse:
1918
"""Provide simplified list of document groups with basic fields.
2019
2120
Args:
@@ -28,7 +27,6 @@ def _list_document_groups(token: str, signnow_config: SignNowConfig, limit: int
2827
SimplifiedDocumentGroupsResponse with document groups
2928
"""
3029
# Use the client to get document groups - API already applies limit and offset
31-
client = SignNowAPIClient(signnow_config)
3230
full_response = client.get_document_groups(token, limit=limit, offset=offset)
3331

3432
# Convert to simplified models for MCP tools

0 commit comments

Comments
 (0)