awslabs.nova-canvas-mcp-server 0.1.31004__tar.gz → 0.1.62303__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (16) hide show
  1. awslabs_nova_canvas_mcp_server-0.1.62303/Dockerfile +29 -0
  2. {awslabs_nova_canvas_mcp_server-0.1.31004 → awslabs_nova_canvas_mcp_server-0.1.62303}/PKG-INFO +28 -10
  3. {awslabs_nova_canvas_mcp_server-0.1.31004 → awslabs_nova_canvas_mcp_server-0.1.62303}/README.md +27 -9
  4. {awslabs_nova_canvas_mcp_server-0.1.31004 → awslabs_nova_canvas_mcp_server-0.1.62303}/pyproject.toml +4 -1
  5. awslabs_nova_canvas_mcp_server-0.1.62303/smithery.yaml +58 -0
  6. {awslabs_nova_canvas_mcp_server-0.1.31004 → awslabs_nova_canvas_mcp_server-0.1.62303}/.gitignore +0 -0
  7. {awslabs_nova_canvas_mcp_server-0.1.31004 → awslabs_nova_canvas_mcp_server-0.1.62303}/.pre-commit-config.yaml +0 -0
  8. {awslabs_nova_canvas_mcp_server-0.1.31004 → awslabs_nova_canvas_mcp_server-0.1.62303}/.python-version +0 -0
  9. {awslabs_nova_canvas_mcp_server-0.1.31004 → awslabs_nova_canvas_mcp_server-0.1.62303}/CHANGELOG.md +0 -0
  10. {awslabs_nova_canvas_mcp_server-0.1.31004 → awslabs_nova_canvas_mcp_server-0.1.62303}/awslabs/__init__.py +0 -0
  11. {awslabs_nova_canvas_mcp_server-0.1.31004 → awslabs_nova_canvas_mcp_server-0.1.62303}/awslabs/nova_canvas_mcp_server/__init__.py +0 -0
  12. {awslabs_nova_canvas_mcp_server-0.1.31004 → awslabs_nova_canvas_mcp_server-0.1.62303}/awslabs/nova_canvas_mcp_server/consts.py +0 -0
  13. {awslabs_nova_canvas_mcp_server-0.1.31004 → awslabs_nova_canvas_mcp_server-0.1.62303}/awslabs/nova_canvas_mcp_server/models.py +0 -0
  14. {awslabs_nova_canvas_mcp_server-0.1.31004 → awslabs_nova_canvas_mcp_server-0.1.62303}/awslabs/nova_canvas_mcp_server/novacanvas.py +0 -0
  15. {awslabs_nova_canvas_mcp_server-0.1.31004 → awslabs_nova_canvas_mcp_server-0.1.62303}/awslabs/nova_canvas_mcp_server/server.py +0 -0
  16. {awslabs_nova_canvas_mcp_server-0.1.31004 → awslabs_nova_canvas_mcp_server-0.1.62303}/uv.lock +0 -0
@@ -0,0 +1,29 @@
1
+ # Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
2
+ FROM python:3.10-alpine
3
+
4
+ # Install build dependencies
5
+ RUN apk add --no-cache gcc musl-dev linux-headers
6
+
7
+ WORKDIR /app
8
+
9
+ # Copy the entire repository (monorepo context)
10
+ COPY . .
11
+
12
+ # Set working directory to the MCP server subdirectory
13
+ WORKDIR /app/src/nova-canvas-mcp-server
14
+
15
+ # Create dummy AWS credentials to satisfy boto3 when using the default profile
16
+ RUN mkdir -p /root/.aws && \
17
+ echo "[default]" > /root/.aws/credentials && \
18
+ echo "aws_access_key_id = dummy" >> /root/.aws/credentials && \
19
+ echo "aws_secret_access_key = dummy" >> /root/.aws/credentials
20
+
21
+ # Upgrade pip and install the package
22
+ RUN pip install --no-cache-dir --upgrade pip && \
23
+ pip install --no-cache-dir .
24
+
25
+ # Expose port if using SSE transport (optional)
26
+ EXPOSE 8888
27
+
28
+ # Start the MCP server (entrypoint provided by project.scripts in pyproject.toml)
29
+ CMD ["awslabs.nova-canvas-mcp-server"]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: awslabs.nova-canvas-mcp-server
3
- Version: 0.1.31004
3
+ Version: 0.1.62303
4
4
  Summary: An AWS Labs Model Context Protocol (MCP) server for Amazon Nova Canvas
5
5
  Requires-Python: >=3.10
6
6
  Requires-Dist: boto3>=1.37.24
@@ -11,22 +11,32 @@ Description-Content-Type: text/markdown
11
11
 
12
12
  # Amazon Nova Canvas MCP Server
13
13
 
14
+ [![smithery badge](https://smithery.ai/badge/@awslabs/nova-canvas-mcp-server)](https://smithery.ai/server/@awslabs/nova-canvas-mcp-server)
15
+
14
16
  MCP server for generating images using Amazon Nova Canvas
15
17
 
16
18
  ## Features
17
19
 
18
- - **Text-based image generation** - Create images from text prompts with `generate_image`
19
- - Customizable dimensions (320-4096px), quality options, and negative prompting
20
- - Supports multiple image generation (1-5) in single request
21
- - Adjustable parameters like cfg_scale (1.1-10.0) and seeded generation
20
+ ### Text-based image generation
21
+
22
+ - Create images from text prompts with `generate_image`
23
+ - Customizable dimensions (320-4096px), quality options, and negative prompting
24
+ - Supports multiple image generation (1-5) in single request
25
+ - Adjustable parameters like cfg_scale (1.1-10.0) and seeded generation
26
+
27
+ ### Color-guided image generation
28
+
29
+ - Generate images with specific color palettes using `generate_image_with_colors`
30
+ - Define up to 10 hex color values to influence the image style and mood
31
+ - Same customization options as text-based generation
32
+
33
+ ### Workspace integration
22
34
 
23
- - **Color-guided image generation** - Generate images with specific color palettes using `generate_image_with_colors`
24
- - Define up to 10 hex color values to influence the image style and mood
25
- - Same customization options as text-based generation
35
+ - Images saved to user-specified workspace directories with automatic folder creation
26
36
 
27
- - **Workspace integration** - Images saved to user-specified workspace directories with automatic folder creation
37
+ ### AWS authentication
28
38
 
29
- - **AWS authentication** - Uses AWS profiles for secure access to Amazon Nova Canvas services
39
+ - Uses AWS profiles for secure access to Amazon Nova Canvas services
30
40
 
31
41
  ## Prerequisites
32
42
 
@@ -59,6 +69,14 @@ Here are some ways you can work with MCP across AWS, and we'll be adding support
59
69
  }
60
70
  ```
61
71
 
72
+ ### Installing via Smithery
73
+
74
+ To install Amazon Nova Canvas MCP Server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@awslabs/nova-canvas-mcp-server):
75
+
76
+ ```bash
77
+ npx -y @smithery/cli install @awslabs/nova-canvas-mcp-server --client claude
78
+ ```
79
+
62
80
  ### AWS Authentication
63
81
 
64
82
  The MCP server uses the AWS profile specified in the `AWS_PROFILE` environment variable. If not provided, it defaults to the "default" profile in your AWS configuration file.
@@ -1,21 +1,31 @@
1
1
  # Amazon Nova Canvas MCP Server
2
2
 
3
+ [![smithery badge](https://smithery.ai/badge/@awslabs/nova-canvas-mcp-server)](https://smithery.ai/server/@awslabs/nova-canvas-mcp-server)
4
+
3
5
  MCP server for generating images using Amazon Nova Canvas
4
6
 
5
7
  ## Features
6
8
 
7
- - **Text-based image generation** - Create images from text prompts with `generate_image`
8
- - Customizable dimensions (320-4096px), quality options, and negative prompting
9
- - Supports multiple image generation (1-5) in single request
10
- - Adjustable parameters like cfg_scale (1.1-10.0) and seeded generation
9
+ ### Text-based image generation
10
+
11
+ - Create images from text prompts with `generate_image`
12
+ - Customizable dimensions (320-4096px), quality options, and negative prompting
13
+ - Supports multiple image generation (1-5) in single request
14
+ - Adjustable parameters like cfg_scale (1.1-10.0) and seeded generation
15
+
16
+ ### Color-guided image generation
17
+
18
+ - Generate images with specific color palettes using `generate_image_with_colors`
19
+ - Define up to 10 hex color values to influence the image style and mood
20
+ - Same customization options as text-based generation
21
+
22
+ ### Workspace integration
11
23
 
12
- - **Color-guided image generation** - Generate images with specific color palettes using `generate_image_with_colors`
13
- - Define up to 10 hex color values to influence the image style and mood
14
- - Same customization options as text-based generation
24
+ - Images saved to user-specified workspace directories with automatic folder creation
15
25
 
16
- - **Workspace integration** - Images saved to user-specified workspace directories with automatic folder creation
26
+ ### AWS authentication
17
27
 
18
- - **AWS authentication** - Uses AWS profiles for secure access to Amazon Nova Canvas services
28
+ - Uses AWS profiles for secure access to Amazon Nova Canvas services
19
29
 
20
30
  ## Prerequisites
21
31
 
@@ -48,6 +58,14 @@ Here are some ways you can work with MCP across AWS, and we'll be adding support
48
58
  }
49
59
  ```
50
60
 
61
+ ### Installing via Smithery
62
+
63
+ To install Amazon Nova Canvas MCP Server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@awslabs/nova-canvas-mcp-server):
64
+
65
+ ```bash
66
+ npx -y @smithery/cli install @awslabs/nova-canvas-mcp-server --client claude
67
+ ```
68
+
51
69
  ### AWS Authentication
52
70
 
53
71
  The MCP server uses the AWS profile specified in the `AWS_PROFILE` environment variable. If not provided, it defaults to the "default" profile in your AWS configuration file.
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "awslabs.nova-canvas-mcp-server"
3
- version = "0.1.031004"
3
+ version = "0.1.062303"
4
4
  description = "An AWS Labs Model Context Protocol (MCP) server for Amazon Nova Canvas"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
@@ -80,3 +80,6 @@ update_changelog_on_bump = true
80
80
 
81
81
  [tool.hatch.build.targets.wheel]
82
82
  packages = ["awslabs"]
83
+
84
+ [tool.bandit]
85
+ exclude_dirs = ["venv","tests"]
@@ -0,0 +1,58 @@
1
+ # Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml
2
+
3
+ build:
4
+ dockerBuildPath: ../..
5
+ startCommand:
6
+ type: stdio
7
+ configSchema:
8
+ # JSON Schema defining the configuration options for the MCP.
9
+ type: object
10
+ required: []
11
+ properties:
12
+ awsProfile:
13
+ type: string
14
+ default: default
15
+ description: AWS profile to use for authentication. Dummy credentials are
16
+ provided if using the default profile.
17
+ awsRegion:
18
+ type: string
19
+ default: us-east-1
20
+ description: AWS region to use (e.g., us-east-1)
21
+ fastmcpLogLevel:
22
+ type: string
23
+ default: WARNING
24
+ description: Log level for the MCP server (e.g., DEBUG, INFO, WARNING, ERROR)
25
+ sse:
26
+ type: boolean
27
+ default: false
28
+ description: Use SSE transport if set to true; otherwise, use stdio transport
29
+ port:
30
+ type: number
31
+ default: 8888
32
+ description: Port to run the server on when using SSE transport
33
+ commandFunction:
34
+ # A JS function that produces the CLI command based on the given config to start the MCP on stdio.
35
+ |-
36
+ (config) => {
37
+ // Build the command and set up env variables based on the config
38
+ // To ensure a valid AWS profile in the container, dummy credentials are injected if using 'default'
39
+ const command = 'awslabs.nova-canvas-mcp-server';
40
+ let args = [];
41
+ if (config.sse) {
42
+ args.push('--sse');
43
+ args.push('--port');
44
+ args.push(String(config.port));
45
+ }
46
+ const env = {
47
+ AWS_PROFILE: config.awsProfile || 'default',
48
+ AWS_REGION: config.awsRegion || 'us-east-1',
49
+ FASTMCP_LOG_LEVEL: config.fastmcpLogLevel || 'WARNING'
50
+ };
51
+ return { command, args, env };
52
+ }
53
+ exampleConfig:
54
+ awsProfile: default
55
+ awsRegion: us-east-1
56
+ fastmcpLogLevel: DEBUG
57
+ sse: false
58
+ port: 8888