belgie-mcp 0.1.0__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.
@@ -0,0 +1,10 @@
1
+ Metadata-Version: 2.3
2
+ Name: belgie-mcp
3
+ Version: 0.1.0
4
+ Summary: Add your description here
5
+ Author: Matt LeMay
6
+ Author-email: Matt LeMay <mplemay@users.noreply.github.com>
7
+ Requires-Dist: mcp>=1.26.0
8
+ Requires-Python: >=3.12, <3.15
9
+ Description-Content-Type: text/markdown
10
+
File without changes
@@ -0,0 +1,19 @@
1
+ [project]
2
+ name = "belgie-mcp"
3
+ version = "0.1.0"
4
+ description = "Add your description here"
5
+ readme = "README.md"
6
+ authors = [
7
+ { name = "Matt LeMay", email = "mplemay@users.noreply.github.com" }
8
+ ]
9
+ requires-python = ">=3.12,<3.15"
10
+ dependencies = [
11
+ "mcp>=1.26.0",
12
+ ]
13
+
14
+ [build-system]
15
+ requires = ["uv_build>=0.9.28,<0.10.0"]
16
+ build-backend = "uv_build"
17
+
18
+ [tool.uv.sources]
19
+ mcp = { git = "https://github.com/modelcontextprotocol/python-sdk.git", rev = "main" }
@@ -0,0 +1,2 @@
1
+ def hello() -> str:
2
+ return "Hello from belgie-mcp!"
File without changes
@@ -0,0 +1,23 @@
1
+ from mcp.server.auth.provider import AccessToken, TokenVerifier
2
+ from mcp.server.auth.settings import AuthSettings
3
+ from mcp.server.mcpserver import MCPServer
4
+ from pydantic import AnyHttpUrl
5
+
6
+
7
+ class SimpleTokenVerifier(TokenVerifier):
8
+ async def verify_token(self, token: str) -> AccessToken | None:
9
+ pass # This is where you would implement actual token validation
10
+
11
+
12
+ # Create MCPServer instance as a Resource Server
13
+ mcp = MCPServer(
14
+ "Weather Service",
15
+ # Token verifier for authentication
16
+ token_verifier=SimpleTokenVerifier(),
17
+ # Auth settings for RFC 9728 Protected Resource Metadata
18
+ auth=AuthSettings(
19
+ issuer_url=AnyHttpUrl("https://auth.example.com"), # Authorization Server URL
20
+ resource_server_url=AnyHttpUrl("http://localhost:3001"), # This server's URL
21
+ required_scopes=["user"],
22
+ ),
23
+ )