awslabs.git-repo-research-mcp-server 1.0.2__tar.gz → 1.0.4__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 (36) hide show
  1. {awslabs_git_repo_research_mcp_server-1.0.2 → awslabs_git_repo_research_mcp_server-1.0.4}/PKG-INFO +5 -3
  2. {awslabs_git_repo_research_mcp_server-1.0.2 → awslabs_git_repo_research_mcp_server-1.0.4}/README.md +4 -2
  3. awslabs_git_repo_research_mcp_server-1.0.4/awslabs/__init__.py +15 -0
  4. awslabs_git_repo_research_mcp_server-1.0.4/awslabs/git_repo_research_mcp_server/__init__.py +16 -0
  5. {awslabs_git_repo_research_mcp_server-1.0.2 → awslabs_git_repo_research_mcp_server-1.0.4}/awslabs/git_repo_research_mcp_server/defaults.py +9 -6
  6. {awslabs_git_repo_research_mcp_server-1.0.2 → awslabs_git_repo_research_mcp_server-1.0.4}/awslabs/git_repo_research_mcp_server/embeddings.py +9 -6
  7. {awslabs_git_repo_research_mcp_server-1.0.2 → awslabs_git_repo_research_mcp_server-1.0.4}/awslabs/git_repo_research_mcp_server/github_search.py +9 -6
  8. {awslabs_git_repo_research_mcp_server-1.0.2 → awslabs_git_repo_research_mcp_server-1.0.4}/awslabs/git_repo_research_mcp_server/indexer.py +9 -6
  9. {awslabs_git_repo_research_mcp_server-1.0.2 → awslabs_git_repo_research_mcp_server-1.0.4}/awslabs/git_repo_research_mcp_server/models.py +9 -6
  10. {awslabs_git_repo_research_mcp_server-1.0.2 → awslabs_git_repo_research_mcp_server-1.0.4}/awslabs/git_repo_research_mcp_server/repository.py +9 -6
  11. {awslabs_git_repo_research_mcp_server-1.0.2 → awslabs_git_repo_research_mcp_server-1.0.4}/awslabs/git_repo_research_mcp_server/search.py +9 -6
  12. {awslabs_git_repo_research_mcp_server-1.0.2 → awslabs_git_repo_research_mcp_server-1.0.4}/awslabs/git_repo_research_mcp_server/server.py +12 -9
  13. {awslabs_git_repo_research_mcp_server-1.0.2 → awslabs_git_repo_research_mcp_server-1.0.4}/awslabs/git_repo_research_mcp_server/utils.py +9 -6
  14. {awslabs_git_repo_research_mcp_server-1.0.2 → awslabs_git_repo_research_mcp_server-1.0.4}/pyproject.toml +1 -1
  15. {awslabs_git_repo_research_mcp_server-1.0.2 → awslabs_git_repo_research_mcp_server-1.0.4}/run_tests.sh +14 -0
  16. awslabs_git_repo_research_mcp_server-1.0.4/tests/__init__.py +14 -0
  17. {awslabs_git_repo_research_mcp_server-1.0.2 → awslabs_git_repo_research_mcp_server-1.0.4}/tests/conftest.py +9 -6
  18. {awslabs_git_repo_research_mcp_server-1.0.2 → awslabs_git_repo_research_mcp_server-1.0.4}/tests/test_errors_repository.py +9 -6
  19. {awslabs_git_repo_research_mcp_server-1.0.2 → awslabs_git_repo_research_mcp_server-1.0.4}/tests/test_github_search_edge_cases.py +9 -6
  20. {awslabs_git_repo_research_mcp_server-1.0.2 → awslabs_git_repo_research_mcp_server-1.0.4}/tests/test_graphql_github_search.py +9 -6
  21. {awslabs_git_repo_research_mcp_server-1.0.2 → awslabs_git_repo_research_mcp_server-1.0.4}/tests/test_local_repository.py +9 -6
  22. {awslabs_git_repo_research_mcp_server-1.0.2 → awslabs_git_repo_research_mcp_server-1.0.4}/tests/test_repository_utils.py +9 -6
  23. {awslabs_git_repo_research_mcp_server-1.0.2 → awslabs_git_repo_research_mcp_server-1.0.4}/tests/test_rest_github_search.py +15 -18
  24. {awslabs_git_repo_research_mcp_server-1.0.2 → awslabs_git_repo_research_mcp_server-1.0.4}/tests/test_search.py +9 -6
  25. {awslabs_git_repo_research_mcp_server-1.0.2 → awslabs_git_repo_research_mcp_server-1.0.4}/tests/test_server.py +9 -6
  26. {awslabs_git_repo_research_mcp_server-1.0.2 → awslabs_git_repo_research_mcp_server-1.0.4}/tests/test_url_repository.py +9 -6
  27. awslabs_git_repo_research_mcp_server-1.0.2/.pre-commit-config.yaml +0 -14
  28. awslabs_git_repo_research_mcp_server-1.0.2/awslabs/__init__.py +0 -12
  29. awslabs_git_repo_research_mcp_server-1.0.2/awslabs/git_repo_research_mcp_server/__init__.py +0 -13
  30. awslabs_git_repo_research_mcp_server-1.0.2/tests/__init__.py +0 -11
  31. {awslabs_git_repo_research_mcp_server-1.0.2 → awslabs_git_repo_research_mcp_server-1.0.4}/.gitignore +0 -0
  32. {awslabs_git_repo_research_mcp_server-1.0.2 → awslabs_git_repo_research_mcp_server-1.0.4}/.python-version +0 -0
  33. {awslabs_git_repo_research_mcp_server-1.0.2 → awslabs_git_repo_research_mcp_server-1.0.4}/CHANGELOG.md +0 -0
  34. {awslabs_git_repo_research_mcp_server-1.0.2 → awslabs_git_repo_research_mcp_server-1.0.4}/LICENSE +0 -0
  35. {awslabs_git_repo_research_mcp_server-1.0.2 → awslabs_git_repo_research_mcp_server-1.0.4}/NOTICE +0 -0
  36. {awslabs_git_repo_research_mcp_server-1.0.2 → awslabs_git_repo_research_mcp_server-1.0.4}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: awslabs.git-repo-research-mcp-server
3
- Version: 1.0.2
3
+ Version: 1.0.4
4
4
  Summary: An AWS Labs Model Context Protocol (MCP) server for researching git repositories
5
5
  Project-URL: Homepage, https://awslabs.github.io/mcp/
6
6
  Project-URL: Documentation, https://awslabs.github.io/mcp/servers/git-repo-research-mcp-server/
@@ -72,6 +72,8 @@ This MCP server enables developers to research external Git repositories and inf
72
72
 
73
73
  ## Installation
74
74
 
75
+ [![Install MCP Server](https://cursor.com/deeplink/mcp-install-light.svg)](https://cursor.com/install-mcp?name=awslabs.git-repo-research-mcp-server&config=eyJjb21tYW5kIjoidXZ4IGF3c2xhYnMuZ2l0LXJlcG8tcmVzZWFyY2gtbWNwLXNlcnZlckBsYXRlc3QiLCJlbnYiOnsiQVdTX1BST0ZJTEUiOiJ5b3VyLXByb2ZpbGUtbmFtZSIsIkFXU19SRUdJT04iOiJ1cy13ZXN0LTIiLCJGQVNUTUNQX0xPR19MRVZFTCI6IkVSUk9SIiwiR0lUSFVCX1RPS0VOIjoieW91ci1naXRodWItdG9rZW4ifSwiZGlzYWJsZWQiOmZhbHNlLCJhdXRvQXBwcm92ZSI6W119)
76
+
75
77
  To add this MCP server to your Amazon Q or Claude, add the following to your MCP config file:
76
78
 
77
79
  ```json
@@ -124,12 +126,12 @@ search_research_repository(
124
126
  ) -> Dict
125
127
  ```
126
128
 
127
- ### search_repositories_on_github
129
+ ### search_repos_on_github
128
130
 
129
131
  Searches for GitHub repositories based on keywords, scoped to AWS organizations.
130
132
 
131
133
  ```python
132
- search_repositories_on_github(
134
+ search_repos_on_github(
133
135
  keywords: List[str],
134
136
  num_results: int = 5
135
137
  ) -> Dict
@@ -35,6 +35,8 @@ This MCP server enables developers to research external Git repositories and inf
35
35
 
36
36
  ## Installation
37
37
 
38
+ [![Install MCP Server](https://cursor.com/deeplink/mcp-install-light.svg)](https://cursor.com/install-mcp?name=awslabs.git-repo-research-mcp-server&config=eyJjb21tYW5kIjoidXZ4IGF3c2xhYnMuZ2l0LXJlcG8tcmVzZWFyY2gtbWNwLXNlcnZlckBsYXRlc3QiLCJlbnYiOnsiQVdTX1BST0ZJTEUiOiJ5b3VyLXByb2ZpbGUtbmFtZSIsIkFXU19SRUdJT04iOiJ1cy13ZXN0LTIiLCJGQVNUTUNQX0xPR19MRVZFTCI6IkVSUk9SIiwiR0lUSFVCX1RPS0VOIjoieW91ci1naXRodWItdG9rZW4ifSwiZGlzYWJsZWQiOmZhbHNlLCJhdXRvQXBwcm92ZSI6W119)
39
+
38
40
  To add this MCP server to your Amazon Q or Claude, add the following to your MCP config file:
39
41
 
40
42
  ```json
@@ -87,12 +89,12 @@ search_research_repository(
87
89
  ) -> Dict
88
90
  ```
89
91
 
90
- ### search_repositories_on_github
92
+ ### search_repos_on_github
91
93
 
92
94
  Searches for GitHub repositories based on keywords, scoped to AWS organizations.
93
95
 
94
96
  ```python
95
- search_repositories_on_github(
97
+ search_repos_on_github(
96
98
  keywords: List[str],
97
99
  num_results: int = 5
98
100
  ) -> Dict
@@ -0,0 +1,15 @@
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
+ # This file is part of the awslabs namespace.
15
+ # It is intentionally minimal to support PEP 420 namespace packages.
@@ -0,0 +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
+ """awslabs.git-repo-research-mcp-server"""
15
+
16
+ __version__ = '0.0.0'
@@ -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
  """Default constants for Git Repository Research MCP Server."""
12
15
 
13
16
 
@@ -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
  """Embeddings generation for Git Repository Research MCP Server.
12
15
 
13
16
  This module provides functionality for generating embeddings from text
@@ -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
  """GitHub repository search functionality for Git Repository Research MCP Server.
12
15
 
13
16
  This module provides functionality for searching GitHub repositories using the GitHub GraphQL API.
@@ -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
  """FAISS indexing for Git Repository Research MCP Server using LangChain.
12
15
 
13
16
  This module provides functionality for creating and managing FAISS indices
@@ -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
  """Data models for Git Repository Research MCP Server."""
12
15
 
13
16
  from datetime import datetime
@@ -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
  """Repository handling for Git Repository Research MCP Server.
12
15
 
13
16
  This module provides functionality for cloning, accessing, and processing
@@ -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
  """Search functionality for Git Repository Research MCP Server.
12
15
 
13
16
  This module provides functionality for searching within indexed Git repositories
@@ -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 git-repo-research MCP Server implementation."""
12
15
 
13
16
  import json
@@ -75,7 +78,7 @@ Perform semantic search within an indexed repository.
75
78
  ### delete_research_repository
76
79
  Delete an indexed repository.
77
80
 
78
- ### search_repositories_on_github
81
+ ### search_repos_on_github
79
82
  Search for GitHub repositories based on keywords, scoped to specific organizations.
80
83
 
81
84
  ### access_file
@@ -147,7 +150,7 @@ delete_research_repository(repository_name_or_path="repo_name")
147
150
 
148
151
  ### Searching for GitHub Repositories
149
152
  ```
150
- search_repositories_on_github(
153
+ search_repos_on_github(
151
154
  keywords=["serverless", "lambda"],
152
155
  num_results=10
153
156
  )
@@ -663,7 +666,7 @@ async def mcp_search_repository(
663
666
  raise
664
667
 
665
668
 
666
- @mcp.tool(name='search_repositories_on_github')
669
+ @mcp.tool(name='search_repos_on_github')
667
670
  async def mcp_search_github_repos(
668
671
  ctx: Context,
669
672
  keywords: List[str] = Field(description='List of keywords to search for GitHub repositories'),
@@ -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
  """Utility functions for Git Repository Research MCP Server.
12
15
 
13
16
  This module provides utility functions for the Git Repository Research MCP Server.
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "awslabs.git-repo-research-mcp-server"
3
- version = "1.0.2"
3
+ version = "1.0.4"
4
4
  description = "An AWS Labs Model Context Protocol (MCP) server for researching git repositories"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
@@ -1,5 +1,19 @@
1
1
  #!/bin/bash
2
2
 
3
+ # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
3
17
  # Exit on error
4
18
  set -e
5
19
 
@@ -0,0 +1,14 @@
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
+ """Tests for the Git Repository Research MCP Server."""
@@ -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
  """Configuration for pytest."""
12
15
 
13
16
  import pytest
@@ -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
  """Tests for Git Repository Research MCP Server with a local repository."""
12
15
 
13
16
  import pytest
@@ -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
  """Tests for GitHub search functionality edge cases and error handling."""
12
15
 
13
16
  import pytest
@@ -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
  """Tests for GitHub GraphQL search functionality."""
12
15
 
13
16
  import pytest
@@ -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
  """Tests for Git Repository Research MCP Server with a local repository."""
12
15
 
13
16
  import json
@@ -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
  """Tests for Git Repository Research MCP Server utility functions."""
12
15
 
13
16
  import json
@@ -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
  """Live test for the GitHub repository search functionality in the Git Repository Research MCP Server."""
12
15
 
13
16
  import asyncio
@@ -15,7 +18,7 @@ import pytest
15
18
 
16
19
  # Import the server functions
17
20
  from awslabs.git_repo_research_mcp_server.server import (
18
- mcp_search_github_repos as search_repositories_on_github,
21
+ mcp_search_github_repos as search_repos_on_github,
19
22
  )
20
23
 
21
24
 
@@ -39,7 +42,7 @@ async def test_github_repository_search_live():
39
42
 
40
43
  # Test searching for "aws lambda serverless"
41
44
  # This should return repositories from AWS organizations related to Lambda and serverless
42
- search_result = await search_repositories_on_github(
45
+ search_result = await search_repos_on_github(
43
46
  ctx, keywords=['aws', 'lambda', 'serverless'], num_results=5
44
47
  )
45
48
 
@@ -86,7 +89,7 @@ async def test_github_repository_search_no_results_live():
86
89
  ctx = MockContext()
87
90
 
88
91
  # Test with a very specific query that is unlikely to have repositories
89
- search_result = await search_repositories_on_github(
92
+ search_result = await search_repos_on_github(
90
93
  ctx, keywords=['unlikely123456789', 'nonexistentrepo987654321'], num_results=5
91
94
  )
92
95
 
@@ -115,14 +118,10 @@ async def test_github_repository_search_with_limit_live():
115
118
  ctx = MockContext()
116
119
 
117
120
  # Small number of results
118
- small_result = await search_repositories_on_github(
119
- ctx, keywords=['aws', 'dynamodb'], num_results=2
120
- )
121
+ small_result = await search_repos_on_github(ctx, keywords=['aws', 'dynamodb'], num_results=2)
121
122
 
122
123
  # Larger number of results
123
- large_result = await search_repositories_on_github(
124
- ctx, keywords=['aws', 'dynamodb'], num_results=5
125
- )
124
+ large_result = await search_repos_on_github(ctx, keywords=['aws', 'dynamodb'], num_results=5)
126
125
 
127
126
  # Verify the responses are valid
128
127
  assert small_result is not None
@@ -151,9 +150,7 @@ async def test_github_repository_order_by_stars_live():
151
150
  ctx = MockContext()
152
151
 
153
152
  # Search for popular AWS repositories
154
- search_result = await search_repositories_on_github(
155
- ctx, keywords=['aws', 'cdk'], num_results=10
156
- )
153
+ search_result = await search_repos_on_github(ctx, keywords=['aws', 'cdk'], num_results=10)
157
154
 
158
155
  # Verify the results structure
159
156
  assert search_result is not None
@@ -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
  """Tests for the search functionality in Git Repository Research MCP Server."""
12
15
 
13
16
  import pytest
@@ -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
  """Comprehensive tests for Git Repository Research MCP Server."""
12
15
 
13
16
  import json
@@ -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
  """Tests for Git Repository Research MCP Server with a remote repository."""
12
15
 
13
16
  import json
@@ -1,14 +0,0 @@
1
- repos:
2
- - repo: https://github.com/astral-sh/ruff-pre-commit
3
- rev: v0.9.6
4
- hooks:
5
- - id: ruff
6
- args: [--fix]
7
- - id: ruff-format
8
-
9
- - repo: https://github.com/commitizen-tools/commitizen
10
- rev: v3.13.0
11
- hooks:
12
- - id: commitizen
13
- - id: commitizen-branch
14
- stages: [push]
@@ -1,12 +0,0 @@
1
- # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
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
5
- #
6
- # http://www.apache.org/licenses/LICENSE-2.0
7
- #
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.
11
- # This file is part of the awslabs namespace.
12
- # It is intentionally minimal to support PEP 420 namespace packages.
@@ -1,13 +0,0 @@
1
- # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
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
5
- #
6
- # http://www.apache.org/licenses/LICENSE-2.0
7
- #
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.
11
- """awslabs.git-repo-research-mcp-server"""
12
-
13
- __version__ = '0.0.0'
@@ -1,11 +0,0 @@
1
- # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
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
5
- #
6
- # http://www.apache.org/licenses/LICENSE-2.0
7
- #
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.
11
- """Tests for the Git Repository Research MCP Server."""