awslabs.nova-canvas-mcp-server 1.0.0__py3-none-any.whl → 1.0.2__py3-none-any.whl

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.
awslabs/__init__.py CHANGED
@@ -1,12 +1,15 @@
1
1
  # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
2
  #
3
- # Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
4
- # with the License. A copy of the License is located at
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
5
6
  #
6
- # http://www.apache.org/licenses/LICENSE-2.0
7
+ # http://www.apache.org/licenses/LICENSE-2.0
7
8
  #
8
- # or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES
9
- # OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions
10
- # and limitations under the License.
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
11
14
  # This file is part of the awslabs namespace.
12
15
  # It is intentionally minimal to support PEP 420 namespace packages.
@@ -1,13 +1,16 @@
1
1
  # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
2
  #
3
- # Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
4
- # with the License. A copy of the License is located at
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
5
6
  #
6
- # http://www.apache.org/licenses/LICENSE-2.0
7
+ # http://www.apache.org/licenses/LICENSE-2.0
7
8
  #
8
- # or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES
9
- # OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions
10
- # and limitations under the License.
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
11
14
  """awslabs.nova-canvas-mcp-server"""
12
15
 
13
16
  __version__ = '0.1.6'
@@ -1,13 +1,16 @@
1
1
  # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
2
  #
3
- # Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
4
- # with the License. A copy of the License is located at
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
5
6
  #
6
- # http://www.apache.org/licenses/LICENSE-2.0
7
+ # http://www.apache.org/licenses/LICENSE-2.0
7
8
  #
8
- # or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES
9
- # OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions
10
- # and limitations under the License.
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
11
14
  # Constants
12
15
  NOVA_CANVAS_MODEL_ID = 'amazon.nova-canvas-v1:0'
13
16
  DEFAULT_WIDTH = 1024
@@ -1,13 +1,16 @@
1
1
  # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
2
  #
3
- # Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
4
- # with the License. A copy of the License is located at
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
5
6
  #
6
- # http://www.apache.org/licenses/LICENSE-2.0
7
+ # http://www.apache.org/licenses/LICENSE-2.0
7
8
  #
8
- # or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES
9
- # OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions
10
- # and limitations under the License.
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
11
14
  """Pydantic models for Amazon Nova Canvas image generation."""
12
15
 
13
16
  import random
@@ -1,13 +1,16 @@
1
1
  # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
2
  #
3
- # Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
4
- # with the License. A copy of the License is located at
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
5
6
  #
6
- # http://www.apache.org/licenses/LICENSE-2.0
7
+ # http://www.apache.org/licenses/LICENSE-2.0
7
8
  #
8
- # or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES
9
- # OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions
10
- # and limitations under the License.
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
11
14
  """Amazon Nova Canvas API interaction module.
12
15
 
13
16
  This module provides functions for generating images using Amazon Nova Canvas
@@ -1,13 +1,16 @@
1
1
  # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
2
  #
3
- # Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
4
- # with the License. A copy of the License is located at
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
5
6
  #
6
- # http://www.apache.org/licenses/LICENSE-2.0
7
+ # http://www.apache.org/licenses/LICENSE-2.0
7
8
  #
8
- # or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES
9
- # OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions
10
- # and limitations under the License.
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
11
14
  """Nova Canvas MCP Server implementation."""
12
15
 
13
16
  import boto3
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: awslabs.nova-canvas-mcp-server
3
- Version: 1.0.0
3
+ Version: 1.0.2
4
4
  Summary: An AWS Labs Model Context Protocol (MCP) server for Amazon Nova Canvas
5
5
  Project-URL: Homepage, https://awslabs.github.io/mcp/
6
6
  Project-URL: Documentation, https://awslabs.github.io/mcp/servers/nova-mcp-server/
@@ -71,7 +71,9 @@ MCP server for generating images using Amazon Nova Canvas
71
71
 
72
72
  ## Installation
73
73
 
74
- Here are some ways you can work with MCP across AWS, and we'll be adding support to more products including Amazon Q Developer CLI soon: (e.g. for Amazon Q Developer CLI MCP, `~/.aws/amazonq/mcp.json`):
74
+ [![Install MCP Server](https://cursor.com/deeplink/mcp-install-light.svg)](https://cursor.com/install-mcp?name=awslabs.nova-canvas-mcp-server&config=eyJjb21tYW5kIjoidXZ4IGF3c2xhYnMubm92YS1jYW52YXMtbWNwLXNlcnZlckBsYXRlc3QiLCJlbnYiOnsiQVdTX1BST0ZJTEUiOiJ5b3VyLWF3cy1wcm9maWxlIiwiQVdTX1JFR0lPTiI6InVzLWVhc3QtMSIsIkZBU1RNQ1BfTE9HX0xFVkVMIjoiRVJST1IifSwiZGlzYWJsZWQiOmZhbHNlLCJhdXRvQXBwcm92ZSI6W119)
75
+
76
+ Configure the MCP server in your MCP client configuration (e.g., for Amazon Q Developer CLI, edit `~/.aws/amazonq/mcp.json`):
75
77
 
76
78
  ```json
77
79
  {
@@ -91,10 +93,10 @@ Here are some ways you can work with MCP across AWS, and we'll be adding support
91
93
  }
92
94
  ```
93
95
 
94
- or docker after a succesful `docker build -t awslabs/nova-canvas-mcp-server .`:
96
+ or docker after a successful `docker build -t awslabs/nova-canvas-mcp-server .`:
95
97
 
96
98
  ```file
97
- # ficticious `.env` file with AWS temporary credentials
99
+ # fictitious `.env` file with AWS temporary credentials
98
100
  AWS_ACCESS_KEY_ID=ASIAIOSFODNN7EXAMPLE
99
101
  AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
100
102
  AWS_SESSION_TOKEN=AQoEXAMPLEH4aoAH0gNCAPy...truncated...zrkuWJOgQs8IZZaIv2BXIa2R4Olgk
@@ -0,0 +1,12 @@
1
+ awslabs/__init__.py,sha256=G7eEcWsmny92kyAWsWZfTcvujk7GZEKSZgniz3M4mvU,730
2
+ awslabs/nova_canvas_mcp_server/__init__.py,sha256=Pr3fdURHAnXwC19L9L4KhulaDaD5LV8OFuEd8tvNI3g,675
3
+ awslabs/nova_canvas_mcp_server/consts.py,sha256=DwCcIaQlpoFFvATvZ9JrA3mwtySaXjev_89V8SzEX6g,3205
4
+ awslabs/nova_canvas_mcp_server/models.py,sha256=lfnSbRfO20WVfWrPUgR6beUbfi9dQ_KjsJ3LNOYMXjs,10696
5
+ awslabs/nova_canvas_mcp_server/novacanvas.py,sha256=kmfzWoDcEMcz-HqfVydQanI4CTPS2H37WLrIqFBoJt0,15648
6
+ awslabs/nova_canvas_mcp_server/server.py,sha256=-TG1jmgdA_5M9ao3tCDbUc-Pcq9dvLW2aJbyxpO-Sns,12259
7
+ awslabs_nova_canvas_mcp_server-1.0.2.dist-info/METADATA,sha256=tpvXJVNuK6asgzHFAJO344pWZ1YQ_NSua2RWfy5LCY0,5628
8
+ awslabs_nova_canvas_mcp_server-1.0.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
9
+ awslabs_nova_canvas_mcp_server-1.0.2.dist-info/entry_points.txt,sha256=v8V4vn8YuugOSL7w_sUxz-M0EDZNZU2_ydJZDd31pGI,94
10
+ awslabs_nova_canvas_mcp_server-1.0.2.dist-info/licenses/LICENSE,sha256=CeipvOyAZxBGUsFoaFqwkx54aPnIKEtm9a5u2uXxEws,10142
11
+ awslabs_nova_canvas_mcp_server-1.0.2.dist-info/licenses/NOTICE,sha256=EC9f1wOeurVFIaRRiYhnSgf3shhotNjXebssKCUTEvM,98
12
+ awslabs_nova_canvas_mcp_server-1.0.2.dist-info/RECORD,,
@@ -1,12 +0,0 @@
1
- awslabs/__init__.py,sha256=BIBSY3C1KeFtC_77foZxP2Jju9462uxgEQUPoJTve7w,673
2
- awslabs/nova_canvas_mcp_server/__init__.py,sha256=dA3Jtbkz7AmaKycMKx62NyqjiWdgSLlWhu2aCTMdKKk,618
3
- awslabs/nova_canvas_mcp_server/consts.py,sha256=IhTCNHyNOaNq9fwqaWMwrSk-7eYWV7lEF1ASklLaDB8,3148
4
- awslabs/nova_canvas_mcp_server/models.py,sha256=1C7ZVWKnp08NSHFuWGfdwCfEynFAwFIMMMj7kGW19X4,10639
5
- awslabs/nova_canvas_mcp_server/novacanvas.py,sha256=wie9X_PBpKsyrgw6HvqkUD-2qAPDV9bNfwDtolRmbLA,15591
6
- awslabs/nova_canvas_mcp_server/server.py,sha256=TTAOtkOulOfqGWCF9a2NlFvcTDNeVsaihHj5M20hO-w,12202
7
- awslabs_nova_canvas_mcp_server-1.0.0.dist-info/METADATA,sha256=rjG_mjjnLv5ZGQcYv80CCm5bP3ePJHMeD-kOyvPRiMI,5308
8
- awslabs_nova_canvas_mcp_server-1.0.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
9
- awslabs_nova_canvas_mcp_server-1.0.0.dist-info/entry_points.txt,sha256=v8V4vn8YuugOSL7w_sUxz-M0EDZNZU2_ydJZDd31pGI,94
10
- awslabs_nova_canvas_mcp_server-1.0.0.dist-info/licenses/LICENSE,sha256=CeipvOyAZxBGUsFoaFqwkx54aPnIKEtm9a5u2uXxEws,10142
11
- awslabs_nova_canvas_mcp_server-1.0.0.dist-info/licenses/NOTICE,sha256=EC9f1wOeurVFIaRRiYhnSgf3shhotNjXebssKCUTEvM,98
12
- awslabs_nova_canvas_mcp_server-1.0.0.dist-info/RECORD,,