belgie-mcp 0.1.0a4__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.
belgie_mcp/__init__.py ADDED
@@ -0,0 +1,2 @@
1
+ def hello() -> str:
2
+ return "Hello from belgie-mcp!"
belgie_mcp/py.typed ADDED
File without changes
belgie_mcp/verifier.py ADDED
@@ -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
+ )
@@ -0,0 +1,10 @@
1
+ Metadata-Version: 2.3
2
+ Name: belgie-mcp
3
+ Version: 0.1.0a4
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
+
@@ -0,0 +1,6 @@
1
+ belgie_mcp/__init__.py,sha256=8H8klDiE3H13ulVpxqdSy64B6sF_sF0XE9EjCFlGtlQ,56
2
+ belgie_mcp/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ belgie_mcp/verifier.py,sha256=PjVOwQ__AV4SSyN4Ycr_IIm7om0_5GakE1UxCMGY2oc,848
4
+ belgie_mcp-0.1.0a4.dist-info/WHEEL,sha256=fAguSjoiATBe7TNBkJwOjyL1Tt4wwiaQGtNtjRPNMQA,80
5
+ belgie_mcp-0.1.0a4.dist-info/METADATA,sha256=L13gD1ciaR-QKZXThimTUpIdO4FKdGQDkKAweaT1yd0,269
6
+ belgie_mcp-0.1.0a4.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: uv 0.9.28
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any