awslabs.terraform-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.
Potentially problematic release.
This version of awslabs.terraform-mcp-server might be problematic. Click here for more details.
- awslabs/__init__.py +14 -0
- awslabs/terraform_mcp_server/__init__.py +14 -0
- awslabs/terraform_mcp_server/impl/resources/__init__.py +14 -0
- awslabs/terraform_mcp_server/impl/resources/terraform_aws_provider_resources_listing.py +14 -0
- awslabs/terraform_mcp_server/impl/resources/terraform_awscc_provider_resources_listing.py +14 -0
- awslabs/terraform_mcp_server/impl/tools/__init__.py +14 -0
- awslabs/terraform_mcp_server/impl/tools/execute_terraform_command.py +14 -0
- awslabs/terraform_mcp_server/impl/tools/execute_terragrunt_command.py +14 -0
- awslabs/terraform_mcp_server/impl/tools/run_checkov_scan.py +14 -0
- awslabs/terraform_mcp_server/impl/tools/search_aws_provider_docs.py +14 -0
- awslabs/terraform_mcp_server/impl/tools/search_awscc_provider_docs.py +14 -0
- awslabs/terraform_mcp_server/impl/tools/search_specific_aws_ia_modules.py +14 -0
- awslabs/terraform_mcp_server/impl/tools/search_user_provided_module.py +9 -6
- awslabs/terraform_mcp_server/impl/tools/utils.py +14 -0
- awslabs/terraform_mcp_server/models/__init__.py +14 -0
- awslabs/terraform_mcp_server/models/models.py +14 -0
- awslabs/terraform_mcp_server/scripts/generate_aws_provider_resources.py +14 -0
- awslabs/terraform_mcp_server/scripts/generate_awscc_provider_resources.py +14 -0
- awslabs/terraform_mcp_server/scripts/scrape_aws_terraform_best_practices.py +14 -0
- awslabs/terraform_mcp_server/server.py +14 -0
- awslabs/terraform_mcp_server/static/__init__.py +14 -0
- {awslabs_terraform_mcp_server-1.0.0.dist-info → awslabs_terraform_mcp_server-1.0.2.dist-info}/METADATA +5 -3
- awslabs_terraform_mcp_server-1.0.2.dist-info/RECORD +30 -0
- awslabs_terraform_mcp_server-1.0.0.dist-info/RECORD +0 -30
- {awslabs_terraform_mcp_server-1.0.0.dist-info → awslabs_terraform_mcp_server-1.0.2.dist-info}/WHEEL +0 -0
- {awslabs_terraform_mcp_server-1.0.0.dist-info → awslabs_terraform_mcp_server-1.0.2.dist-info}/entry_points.txt +0 -0
awslabs/__init__.py
CHANGED
|
@@ -1,2 +1,16 @@
|
|
|
1
|
+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
#
|
|
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
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
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.
|
|
14
|
+
|
|
1
15
|
# This file is part of the awslabs namespace.
|
|
2
16
|
# It is intentionally minimal to support PEP 420 namespace packages.
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
#
|
|
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
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
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.
|
|
14
|
+
|
|
1
15
|
"""awslabs.terraform-mcp-server"""
|
|
2
16
|
|
|
3
17
|
__version__ = '0.0.0'
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
#
|
|
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
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
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.
|
|
14
|
+
|
|
1
15
|
"""Resource implementations for the Terraform expert."""
|
|
2
16
|
|
|
3
17
|
from .terraform_aws_provider_resources_listing import terraform_aws_provider_assets_listing_impl
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
#
|
|
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
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
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.
|
|
14
|
+
|
|
1
15
|
"""Implementation for terraform_aws_provider_resources_listing resource."""
|
|
2
16
|
|
|
3
17
|
import sys
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
#
|
|
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
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
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.
|
|
14
|
+
|
|
1
15
|
"""Implementation for terraform_awscc_provider_resources_listing resource."""
|
|
2
16
|
|
|
3
17
|
import sys
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
#
|
|
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
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
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.
|
|
14
|
+
|
|
1
15
|
"""Tool implementations for the terraform MCP server."""
|
|
2
16
|
|
|
3
17
|
from .search_user_provided_module import search_user_provided_module_impl
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
#
|
|
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
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
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.
|
|
14
|
+
|
|
1
15
|
"""Implementation of Terraform command execution tool."""
|
|
2
16
|
|
|
3
17
|
import json
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
#
|
|
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
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
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.
|
|
14
|
+
|
|
1
15
|
"""Implementation of Terragrunt command execution tool."""
|
|
2
16
|
|
|
3
17
|
import json
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
#
|
|
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
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
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.
|
|
14
|
+
|
|
1
15
|
"""Implementation of Checkov scan tools."""
|
|
2
16
|
|
|
3
17
|
import json
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
#
|
|
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
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
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.
|
|
14
|
+
|
|
1
15
|
"""Implementation of AWS provider documentation search tool."""
|
|
2
16
|
|
|
3
17
|
import re
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
#
|
|
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
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
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.
|
|
14
|
+
|
|
1
15
|
"""Implementation of AWSCC provider documentation search tool."""
|
|
2
16
|
|
|
3
17
|
import re
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
#
|
|
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
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
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.
|
|
14
|
+
|
|
1
15
|
"""Implementation of specific AWS-IA module search tool for four key modules."""
|
|
2
16
|
|
|
3
17
|
import asyncio
|
|
@@ -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")
|
|
4
|
-
#
|
|
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
|
-
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
7
8
|
#
|
|
8
|
-
#
|
|
9
|
-
#
|
|
10
|
-
#
|
|
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
|
"""Implementation of user provided module from the Terraform registry search tool."""
|
|
12
15
|
|
|
13
16
|
import re
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
#
|
|
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
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
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.
|
|
14
|
+
|
|
1
15
|
"""Utility functions for Terraform MCP server tools."""
|
|
2
16
|
|
|
3
17
|
import asyncio
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
#
|
|
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
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
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.
|
|
14
|
+
|
|
1
15
|
from .models import (
|
|
2
16
|
ModuleSearchResult,
|
|
3
17
|
TerraformAWSProviderDocsResult,
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
#
|
|
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
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
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.
|
|
14
|
+
|
|
1
15
|
from pydantic import BaseModel, Field
|
|
2
16
|
from typing import Any, Dict, List, Literal, Optional
|
|
3
17
|
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
#
|
|
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
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
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.
|
|
14
|
+
|
|
1
15
|
"""Script to generate AWS provider resources markdown for the Terraform Expert MCP server.
|
|
2
16
|
|
|
3
17
|
This script scrapes the Terraform AWS provider documentation using Playwright
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
#
|
|
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
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
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.
|
|
14
|
+
|
|
1
15
|
"""Script to generate AWSCC provider resources markdown for the Terraform Expert MCP server.
|
|
2
16
|
|
|
3
17
|
This script scrapes the Terraform AWSCC provider documentation using Playwright
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
#
|
|
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
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
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.
|
|
14
|
+
|
|
1
15
|
"""Script to download and extract content from AWS Terraform best practices PDF and save it as markdown."""
|
|
2
16
|
|
|
3
17
|
import io
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
#
|
|
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
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
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.
|
|
14
|
+
|
|
1
15
|
#!/usr/bin/env python3
|
|
2
16
|
"""terraform MCP server implementation."""
|
|
3
17
|
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
#
|
|
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
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
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.
|
|
14
|
+
|
|
1
15
|
from importlib import resources
|
|
2
16
|
|
|
3
17
|
with (
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: awslabs.terraform-mcp-server
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.2
|
|
4
4
|
Summary: An AWS Labs Model Context Protocol (MCP) server for terraform
|
|
5
5
|
Requires-Python: >=3.10
|
|
6
6
|
Requires-Dist: beautifulsoup4>=4.12.0
|
|
@@ -78,7 +78,9 @@ MCP server for Terraform on AWS best practices, infrastructure as code patterns,
|
|
|
78
78
|
|
|
79
79
|
## Installation
|
|
80
80
|
|
|
81
|
-
|
|
81
|
+
[](https://cursor.com/install-mcp?name=awslabs.terraform-mcp-server&config=eyJjb21tYW5kIjoidXZ4IGF3c2xhYnMudGVycmFmb3JtLW1jcC1zZXJ2ZXJAbGF0ZXN0IiwiZW52Ijp7IkZBU1RNQ1BfTE9HX0xFVkVMIjoiRVJST1IifSwiZGlzYWJsZWQiOmZhbHNlLCJhdXRvQXBwcm92ZSI6W119)
|
|
82
|
+
|
|
83
|
+
Configure the MCP server in your MCP client configuration (e.g., for Amazon Q Developer CLI, edit `~/.aws/amazonq/mcp.json`):
|
|
82
84
|
|
|
83
85
|
```json
|
|
84
86
|
{
|
|
@@ -96,7 +98,7 @@ Here are some ways you can work with MCP across AWS, and we'll be adding support
|
|
|
96
98
|
}
|
|
97
99
|
```
|
|
98
100
|
|
|
99
|
-
or docker after a
|
|
101
|
+
or docker after a successful `docker build -t awslabs/terraform-mcp-server .`:
|
|
100
102
|
|
|
101
103
|
```json
|
|
102
104
|
{
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
awslabs/__init__.py,sha256=WuqxdDgUZylWNmVoPKiK7qGsTB_G4UmuXIrJ-VBwDew,731
|
|
2
|
+
awslabs/terraform_mcp_server/__init__.py,sha256=kA0PLYldNnUJOHuqTz2bF2CLAz8J_cxzFCeA11VMFhc,674
|
|
3
|
+
awslabs/terraform_mcp_server/server.py,sha256=qmIt7W4lFuks2LnLNv7eE2OXe0uvgZwKPu62TTf12uE,18717
|
|
4
|
+
awslabs/terraform_mcp_server/impl/resources/__init__.py,sha256=2w3fDqmAixQF0XbXMasHjQkZnjAz9zEETeSso0yhp6w,1004
|
|
5
|
+
awslabs/terraform_mcp_server/impl/resources/terraform_aws_provider_resources_listing.py,sha256=WoaPeoFm4pM14fqF6SxakKdRMnTkgYlw-ilTqRt5gYg,2607
|
|
6
|
+
awslabs/terraform_mcp_server/impl/resources/terraform_awscc_provider_resources_listing.py,sha256=m53hMIC9CR0LBypKWwia1-UVR2XxWJFUVbylg2ovX8s,2694
|
|
7
|
+
awslabs/terraform_mcp_server/impl/tools/__init__.py,sha256=kPsnDnk7Vw0zRoPB8Jcz2EbMOamSMQlsv61LC9EsRuY,1442
|
|
8
|
+
awslabs/terraform_mcp_server/impl/tools/execute_terraform_command.py,sha256=lgrYmk5Jkuh06tuJhRQHQQZZUlzXFD1IZzlx_doaWWc,9123
|
|
9
|
+
awslabs/terraform_mcp_server/impl/tools/execute_terragrunt_command.py,sha256=8aPP545Og0bMWpOTTWjx-7YWg-aYBb8CJIqDyxa7vO4,13640
|
|
10
|
+
awslabs/terraform_mcp_server/impl/tools/run_checkov_scan.py,sha256=lf3lD7XF5-9h25pTGKW4dfkvr1dw586vENdcMi8bd7Q,14051
|
|
11
|
+
awslabs/terraform_mcp_server/impl/tools/search_aws_provider_docs.py,sha256=WaSJIvYU1jCZRt9gcNcuaaVWo2dh9a3zdaEW2EF9yLw,29665
|
|
12
|
+
awslabs/terraform_mcp_server/impl/tools/search_awscc_provider_docs.py,sha256=wD5B4jfNRfmCiN8EX26ri26IJGSWF_ulRg9U5tqaTyA,27913
|
|
13
|
+
awslabs/terraform_mcp_server/impl/tools/search_specific_aws_ia_modules.py,sha256=MePGPeC-Sneg_9vB0FO0QKZ-YRm6KTFFOe4wuBd1mgg,20764
|
|
14
|
+
awslabs/terraform_mcp_server/impl/tools/search_user_provided_module.py,sha256=kVYJxRRj8JdGbBdR85vjVd0fSDYfqZRXtKaIn8PHyUo,14548
|
|
15
|
+
awslabs/terraform_mcp_server/impl/tools/utils.py,sha256=JZU-msxmJrfP7s_YCXkzF--WIw4FCWYDZKlDFVriTf0,21116
|
|
16
|
+
awslabs/terraform_mcp_server/models/__init__.py,sha256=PvOh2r7OpGjmFPhkoeVkseZMMXk2-gwLmhaMm5pxgBU,1547
|
|
17
|
+
awslabs/terraform_mcp_server/models/models.py,sha256=bY_UZp-IUBC-iIyrLGx6OSI9RRh6Alp4uusSPgwfDqY,16216
|
|
18
|
+
awslabs/terraform_mcp_server/scripts/generate_aws_provider_resources.py,sha256=puLYWDNtuVEP1su33SbIywQd_lq9OUnnpJw9tEyAdbc,57386
|
|
19
|
+
awslabs/terraform_mcp_server/scripts/generate_awscc_provider_resources.py,sha256=KR12-YZmjhzHqW529pWZ91zpr5Ph5VRZ5r3AvZoHHxo,49439
|
|
20
|
+
awslabs/terraform_mcp_server/scripts/scrape_aws_terraform_best_practices.py,sha256=mOrtY17HjL0lXRHVax8OBXPyURcJwALjKv_9aCglNnE,4399
|
|
21
|
+
awslabs/terraform_mcp_server/static/AWSCC_PROVIDER_RESOURCES.md,sha256=I_vu3dWXzd9Pxcd7tkdxFQs97wtuunyoXdJCAkCUXnE,440270
|
|
22
|
+
awslabs/terraform_mcp_server/static/AWS_PROVIDER_RESOURCES.md,sha256=OMboscC0Ov6O3U3K1uqrzRzx18nq_5AsJzITc5-CA8Y,303030
|
|
23
|
+
awslabs/terraform_mcp_server/static/AWS_TERRAFORM_BEST_PRACTICES.md,sha256=cftJ9y2nZ0kMendoV6WBlQFsNw-QnGnmF6dR88eoYdA,87665
|
|
24
|
+
awslabs/terraform_mcp_server/static/MCP_INSTRUCTIONS.md,sha256=r-ChGWXW4EbXquzAeILVayqgTrOoA9XpkzyrHwCrER8,7368
|
|
25
|
+
awslabs/terraform_mcp_server/static/TERRAFORM_WORKFLOW_GUIDE.md,sha256=jCLvjatXFL-1aN0CAuZkWb5IfQP8DVbrc3RsVeze3Fs,15045
|
|
26
|
+
awslabs/terraform_mcp_server/static/__init__.py,sha256=anl4Cmtn5QvukpZRRbz_3vq8QAUsUvPHYVSql1IP9w0,1219
|
|
27
|
+
awslabs_terraform_mcp_server-1.0.2.dist-info/METADATA,sha256=ztJZrP-aa_mWK4xNWFnsBEWW1MgGM9kay9tURHGDssc,5640
|
|
28
|
+
awslabs_terraform_mcp_server-1.0.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
29
|
+
awslabs_terraform_mcp_server-1.0.2.dist-info/entry_points.txt,sha256=jCTPQeUJ74jpIDcYwVHQCk-y0n0ehRFFerh_Qm4ZU1c,90
|
|
30
|
+
awslabs_terraform_mcp_server-1.0.2.dist-info/RECORD,,
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
awslabs/__init__.py,sha256=4zfFn3N0BkvQmMTAIvV_QAbKp6GWzrwaUN17YeRoChM,115
|
|
2
|
-
awslabs/terraform_mcp_server/__init__.py,sha256=a-zIkwClerA84_XGykBggO4w5kf8f85EapnWnbAH01c,58
|
|
3
|
-
awslabs/terraform_mcp_server/server.py,sha256=EOttOh7soNDzlvlniwZgd8pymHHZCB8hehgLTImOzGY,18101
|
|
4
|
-
awslabs/terraform_mcp_server/impl/resources/__init__.py,sha256=bxqHGDtuwWq8w-21lT5GzOuxBqkmnUvW6cnSA36ve3A,388
|
|
5
|
-
awslabs/terraform_mcp_server/impl/resources/terraform_aws_provider_resources_listing.py,sha256=ohd-LOCuwLh0XchmUVRNIlgEcb1qJbiWMvVVklfZZyI,1991
|
|
6
|
-
awslabs/terraform_mcp_server/impl/resources/terraform_awscc_provider_resources_listing.py,sha256=rcxTeN2SvzddNi5bMzMF8oZP9O-Nq4PxzFBiqHbsY-I,2078
|
|
7
|
-
awslabs/terraform_mcp_server/impl/tools/__init__.py,sha256=QUowqVKDnxQUKR36rGJvE1AGxV7xX8ky6ymt-QJoFBw,826
|
|
8
|
-
awslabs/terraform_mcp_server/impl/tools/execute_terraform_command.py,sha256=_fPxC2wT23oWa9XaAoUEV1j5lK7Xpi7MqBAq85fLNdU,8507
|
|
9
|
-
awslabs/terraform_mcp_server/impl/tools/execute_terragrunt_command.py,sha256=7WDV9DhQMLaPXm1kOO2mAczU0ZUiBv6gA3mm9dmgcmc,13024
|
|
10
|
-
awslabs/terraform_mcp_server/impl/tools/run_checkov_scan.py,sha256=oS6qgUPPti7lpa2VNsUwPbswiq2hgpe49fggVUI_PfM,13435
|
|
11
|
-
awslabs/terraform_mcp_server/impl/tools/search_aws_provider_docs.py,sha256=w7NX4oQwsCeVQPj8YZzvXvXcox8drzZimW3mRL8Kd84,29049
|
|
12
|
-
awslabs/terraform_mcp_server/impl/tools/search_awscc_provider_docs.py,sha256=fY8eRQ1j6oB4XyfAoUC6mTUXNkoFaY0vsmMhV6w0NR8,27297
|
|
13
|
-
awslabs/terraform_mcp_server/impl/tools/search_specific_aws_ia_modules.py,sha256=Kny5iharA1Wj-9tnhoPHntu4qM9n-2mC2dB6TXwhqfk,20148
|
|
14
|
-
awslabs/terraform_mcp_server/impl/tools/search_user_provided_module.py,sha256=6d_QHnDwpGicMsmQmpfs0hzTtf-XAVXZBNUsBnkfxtw,14491
|
|
15
|
-
awslabs/terraform_mcp_server/impl/tools/utils.py,sha256=GB1OuhYgrg00AzKfhgaUpQwbVBK5D56GQLcm60NHd1c,20500
|
|
16
|
-
awslabs/terraform_mcp_server/models/__init__.py,sha256=BmcLbcCd_ORzgr4TjmOMrwHHtp4iyz_BoeRYnEFYiHg,931
|
|
17
|
-
awslabs/terraform_mcp_server/models/models.py,sha256=4kFNKRyDgLAL7TzL9CoADB--90rCCy7aQcubDbOKtjg,15600
|
|
18
|
-
awslabs/terraform_mcp_server/scripts/generate_aws_provider_resources.py,sha256=wxwt3MxD3xUsrDXnfa9-3EAQfBg3fO-CzwkzjYNMIRU,56770
|
|
19
|
-
awslabs/terraform_mcp_server/scripts/generate_awscc_provider_resources.py,sha256=ieHzBfTHPbxkTL3d_mRVga2-xLRRma4TnXC6Amq1ugc,48823
|
|
20
|
-
awslabs/terraform_mcp_server/scripts/scrape_aws_terraform_best_practices.py,sha256=t_eFbciBwZXdK6pNkkcp4X7VPR4vXyXkmE_YLhm6Xr4,3783
|
|
21
|
-
awslabs/terraform_mcp_server/static/AWSCC_PROVIDER_RESOURCES.md,sha256=I_vu3dWXzd9Pxcd7tkdxFQs97wtuunyoXdJCAkCUXnE,440270
|
|
22
|
-
awslabs/terraform_mcp_server/static/AWS_PROVIDER_RESOURCES.md,sha256=OMboscC0Ov6O3U3K1uqrzRzx18nq_5AsJzITc5-CA8Y,303030
|
|
23
|
-
awslabs/terraform_mcp_server/static/AWS_TERRAFORM_BEST_PRACTICES.md,sha256=cftJ9y2nZ0kMendoV6WBlQFsNw-QnGnmF6dR88eoYdA,87665
|
|
24
|
-
awslabs/terraform_mcp_server/static/MCP_INSTRUCTIONS.md,sha256=r-ChGWXW4EbXquzAeILVayqgTrOoA9XpkzyrHwCrER8,7368
|
|
25
|
-
awslabs/terraform_mcp_server/static/TERRAFORM_WORKFLOW_GUIDE.md,sha256=jCLvjatXFL-1aN0CAuZkWb5IfQP8DVbrc3RsVeze3Fs,15045
|
|
26
|
-
awslabs/terraform_mcp_server/static/__init__.py,sha256=mgAvoiD1_fgcgK5Sbf2nZLlX47D6ZuwuZbMrbNsyUKE,603
|
|
27
|
-
awslabs_terraform_mcp_server-1.0.0.dist-info/METADATA,sha256=8-YbgwOOny9O-PXHzz7OBKQ1hVxQ99DV2wrlMxgwxmQ,5402
|
|
28
|
-
awslabs_terraform_mcp_server-1.0.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
29
|
-
awslabs_terraform_mcp_server-1.0.0.dist-info/entry_points.txt,sha256=jCTPQeUJ74jpIDcYwVHQCk-y0n0ehRFFerh_Qm4ZU1c,90
|
|
30
|
-
awslabs_terraform_mcp_server-1.0.0.dist-info/RECORD,,
|
{awslabs_terraform_mcp_server-1.0.0.dist-info → awslabs_terraform_mcp_server-1.0.2.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|