mcp-concierge 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.
- mcp_concierge-0.1.0/.gitignore +4 -0
- mcp_concierge-0.1.0/LICENSE +21 -0
- mcp_concierge-0.1.0/PKG-INFO +86 -0
- mcp_concierge-0.1.0/README.md +70 -0
- mcp_concierge-0.1.0/examples/server.py +21 -0
- mcp_concierge-0.1.0/mcp_concierge/__init__.py +4 -0
- mcp_concierge-0.1.0/mcp_concierge/asgi.py +23 -0
- mcp_concierge-0.1.0/mcp_concierge/clients/chatgpt/add-menu.webp +0 -0
- mcp_concierge-0.1.0/mcp_concierge/clients/chatgpt/connect.webp +0 -0
- mcp_concierge-0.1.0/mcp_concierge/clients/chatgpt/dialog.webp +0 -0
- mcp_concierge-0.1.0/mcp_concierge/clients/chatgpt/mention.webp +0 -0
- mcp_concierge-0.1.0/mcp_concierge/clients/chatgpt.svg +1 -0
- mcp_concierge-0.1.0/mcp_concierge/clients/chatgpt.toml +17 -0
- mcp_concierge-0.1.0/mcp_concierge/clients/claude/auth.webp +0 -0
- mcp_concierge-0.1.0/mcp_concierge/clients/claude/connect.webp +0 -0
- mcp_concierge-0.1.0/mcp_concierge/clients/claude/dialog.webp +0 -0
- mcp_concierge-0.1.0/mcp_concierge/clients/claude.svg +1 -0
- mcp_concierge-0.1.0/mcp_concierge/clients/claude.toml +18 -0
- mcp_concierge-0.1.0/mcp_concierge/page.py +180 -0
- mcp_concierge-0.1.0/mcp_concierge/texts.toml +20 -0
- mcp_concierge-0.1.0/pyproject.toml +40 -0
- mcp_concierge-0.1.0/tests/test_asgi.py +57 -0
- mcp_concierge-0.1.0/tests/test_page.py +120 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Pietro Campagnano
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: mcp-concierge
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Turns your MCP server URL into a setup page: step-by-step instructions for Claude, ChatGPT and more, kept up to date.
|
|
5
|
+
Project-URL: Homepage, https://github.com/fain182/mcp-concierge
|
|
6
|
+
Project-URL: Issues, https://github.com/fain182/mcp-concierge/issues
|
|
7
|
+
License-Expression: MIT
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Keywords: asgi,chatgpt,claude,connector,mcp,model context protocol
|
|
10
|
+
Classifier: Development Status :: 4 - Beta
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Topic :: Internet :: WWW/HTTP :: HTTP Servers
|
|
14
|
+
Requires-Python: >=3.11
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
|
|
17
|
+
# mcp-concierge
|
|
18
|
+
|
|
19
|
+
Turns your MCP server URL into a setup page.
|
|
20
|
+
|
|
21
|
+
You share your MCP server's URL with someone. They open it in a browser, get a page that never finishes loading, and give up. With mcp-concierge they get step-by-step instructions to add the server to their assistant (Claude, ChatGPT, …) instead, and then a few example questions to try it.
|
|
22
|
+
|
|
23
|
+
<img src="https://raw.githubusercontent.com/fain182/mcp-concierge/main/docs/screenshot.png" alt="The setup page for an example server called Weather, with Claude selected and the first steps to add it" width="480">
|
|
24
|
+
|
|
25
|
+
## Why
|
|
26
|
+
|
|
27
|
+
- **Instructions that stay current.** Assistants change their menus often. The steps for each one live in this package, are checked on real accounts, and show the date of the last check.
|
|
28
|
+
- **One click for Claude.** The "Add to Claude" button opens Claude with your server's name and URL already filled in.
|
|
29
|
+
- **MCP clients are untouched.** Only a browser gets the page; everything else reaches your server as before.
|
|
30
|
+
- **No dependencies.** It wraps any ASGI app: the MCP Python SDK, FastMCP, Starlette.
|
|
31
|
+
- **Safe with secret URLs.** The page reads the address from the browser, so the server never writes it into the HTML, and it is marked `noindex`.
|
|
32
|
+
|
|
33
|
+
## Install
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
pip install mcp-concierge
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Usage
|
|
40
|
+
|
|
41
|
+
```python
|
|
42
|
+
from mcp.server.mcpserver import MCPServer
|
|
43
|
+
from mcp_concierge import SetupPage, with_setup_page
|
|
44
|
+
|
|
45
|
+
server = MCPServer("Weather")
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
@server.tool()
|
|
49
|
+
def forecast(city: str) -> str:
|
|
50
|
+
return f"Sunny in {city}"
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
app = with_setup_page(
|
|
54
|
+
server.streamable_http_app(),
|
|
55
|
+
"/mcp",
|
|
56
|
+
SetupPage("Weather", examples=["What's the weather in Rome tomorrow?"]),
|
|
57
|
+
)
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
`with_setup_page` takes any ASGI app serving the MCP endpoint at the given path. The examples are shown once the reader has added the server.
|
|
61
|
+
|
|
62
|
+
If your server asks users to sign in with OAuth, pass `SetupPage(..., oauth=True)`: the steps then tell them to choose OAuth and sign in instead of choosing no authentication.
|
|
63
|
+
|
|
64
|
+
## Try it
|
|
65
|
+
|
|
66
|
+
```
|
|
67
|
+
make install-dev
|
|
68
|
+
make run
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Then open http://127.0.0.1:8765/mcp in a browser.
|
|
72
|
+
|
|
73
|
+
## Contributing instructions
|
|
74
|
+
|
|
75
|
+
If a step is wrong or out of date, the fix is a change to one file: each assistant's steps live in `mcp_concierge/clients/<client>.toml`, with the date they were last checked. Corrections and new assistants are welcome.
|
|
76
|
+
|
|
77
|
+
## How it tells a browser from an MCP client
|
|
78
|
+
|
|
79
|
+
The Streamable HTTP spec requires MCP clients to list `text/event-stream` in the `Accept` header of their GET requests. A GET to the MCP path without it gets the page; everything else goes to your app.
|
|
80
|
+
|
|
81
|
+
## Development
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
make install-dev
|
|
85
|
+
make test
|
|
86
|
+
```
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# mcp-concierge
|
|
2
|
+
|
|
3
|
+
Turns your MCP server URL into a setup page.
|
|
4
|
+
|
|
5
|
+
You share your MCP server's URL with someone. They open it in a browser, get a page that never finishes loading, and give up. With mcp-concierge they get step-by-step instructions to add the server to their assistant (Claude, ChatGPT, …) instead, and then a few example questions to try it.
|
|
6
|
+
|
|
7
|
+
<img src="https://raw.githubusercontent.com/fain182/mcp-concierge/main/docs/screenshot.png" alt="The setup page for an example server called Weather, with Claude selected and the first steps to add it" width="480">
|
|
8
|
+
|
|
9
|
+
## Why
|
|
10
|
+
|
|
11
|
+
- **Instructions that stay current.** Assistants change their menus often. The steps for each one live in this package, are checked on real accounts, and show the date of the last check.
|
|
12
|
+
- **One click for Claude.** The "Add to Claude" button opens Claude with your server's name and URL already filled in.
|
|
13
|
+
- **MCP clients are untouched.** Only a browser gets the page; everything else reaches your server as before.
|
|
14
|
+
- **No dependencies.** It wraps any ASGI app: the MCP Python SDK, FastMCP, Starlette.
|
|
15
|
+
- **Safe with secret URLs.** The page reads the address from the browser, so the server never writes it into the HTML, and it is marked `noindex`.
|
|
16
|
+
|
|
17
|
+
## Install
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
pip install mcp-concierge
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Usage
|
|
24
|
+
|
|
25
|
+
```python
|
|
26
|
+
from mcp.server.mcpserver import MCPServer
|
|
27
|
+
from mcp_concierge import SetupPage, with_setup_page
|
|
28
|
+
|
|
29
|
+
server = MCPServer("Weather")
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
@server.tool()
|
|
33
|
+
def forecast(city: str) -> str:
|
|
34
|
+
return f"Sunny in {city}"
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
app = with_setup_page(
|
|
38
|
+
server.streamable_http_app(),
|
|
39
|
+
"/mcp",
|
|
40
|
+
SetupPage("Weather", examples=["What's the weather in Rome tomorrow?"]),
|
|
41
|
+
)
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
`with_setup_page` takes any ASGI app serving the MCP endpoint at the given path. The examples are shown once the reader has added the server.
|
|
45
|
+
|
|
46
|
+
If your server asks users to sign in with OAuth, pass `SetupPage(..., oauth=True)`: the steps then tell them to choose OAuth and sign in instead of choosing no authentication.
|
|
47
|
+
|
|
48
|
+
## Try it
|
|
49
|
+
|
|
50
|
+
```
|
|
51
|
+
make install-dev
|
|
52
|
+
make run
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Then open http://127.0.0.1:8765/mcp in a browser.
|
|
56
|
+
|
|
57
|
+
## Contributing instructions
|
|
58
|
+
|
|
59
|
+
If a step is wrong or out of date, the fix is a change to one file: each assistant's steps live in `mcp_concierge/clients/<client>.toml`, with the date they were last checked. Corrections and new assistants are welcome.
|
|
60
|
+
|
|
61
|
+
## How it tells a browser from an MCP client
|
|
62
|
+
|
|
63
|
+
The Streamable HTTP spec requires MCP clients to list `text/event-stream` in the `Accept` header of their GET requests. A GET to the MCP path without it gets the page; everything else goes to your app.
|
|
64
|
+
|
|
65
|
+
## Development
|
|
66
|
+
|
|
67
|
+
```
|
|
68
|
+
make install-dev
|
|
69
|
+
make test
|
|
70
|
+
```
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import uvicorn
|
|
2
|
+
from mcp.server.mcpserver import MCPServer
|
|
3
|
+
|
|
4
|
+
from mcp_concierge import SetupPage, with_setup_page
|
|
5
|
+
|
|
6
|
+
server = MCPServer("Weather")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@server.tool()
|
|
10
|
+
def forecast(city: str) -> str:
|
|
11
|
+
return f"Sunny in {city}"
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
app = with_setup_page(
|
|
15
|
+
server.streamable_http_app(),
|
|
16
|
+
"/mcp",
|
|
17
|
+
SetupPage("Weather", examples=["What's the weather in Rome tomorrow?", "Will it rain this weekend?"]),
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
if __name__ == "__main__":
|
|
21
|
+
uvicorn.run(app, host="127.0.0.1", port=8765)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
from .page import SetupPage
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
def with_setup_page(app, path: str, page: SetupPage):
|
|
5
|
+
"""Wraps an ASGI app so that a browser opening `path` gets `page` instead of the MCP endpoint."""
|
|
6
|
+
body_bytes = page.html()
|
|
7
|
+
|
|
8
|
+
async def asgi(scope, receive, send):
|
|
9
|
+
# An MCP client always lists text/event-stream in the Accept of its GETs (Streamable HTTP
|
|
10
|
+
# spec): without it, it's a person in a browser, who would otherwise hang on the SSE stream.
|
|
11
|
+
if scope["type"] == "http" and scope["method"] == "GET" and scope["path"] == path:
|
|
12
|
+
accept = dict(scope["headers"]).get(b"accept", b"")
|
|
13
|
+
if b"text/event-stream" not in accept:
|
|
14
|
+
await send({
|
|
15
|
+
"type": "http.response.start",
|
|
16
|
+
"status": 200,
|
|
17
|
+
"headers": [(b"content-type", b"text/html; charset=utf-8"), (b"x-robots-tag", b"noindex")],
|
|
18
|
+
})
|
|
19
|
+
await send({"type": "http.response.body", "body": body_bytes})
|
|
20
|
+
return
|
|
21
|
+
await app(scope, receive, send)
|
|
22
|
+
|
|
23
|
+
return asgi
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg aria-hidden="true" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z"/></svg>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
name = "ChatGPT"
|
|
2
|
+
verified = 2026-11-30
|
|
3
|
+
|
|
4
|
+
steps = [
|
|
5
|
+
'Open <a href="https://chatgpt.com/plugins" target="_blank" rel="noopener">Plugins in ChatGPT</a>, select <b>Add</b>, then <b>Add custom MCP server</b>.{screenshot:add-menu.webp}',
|
|
6
|
+
'Name it <b>{name}</b> and, under <b>Connection</b>, paste this address:{copy}{screenshot:dialog.webp}',
|
|
7
|
+
'{auth}',
|
|
8
|
+
'Tick <b>I understand and want to continue</b> and select <b>Create as a plugin</b>.',
|
|
9
|
+
'Select <b>Connect {name}</b>.{screenshot:connect.webp}',
|
|
10
|
+
'In a new chat, type <b>@</b> and pick {name}.{screenshot:mention.webp}',
|
|
11
|
+
]
|
|
12
|
+
|
|
13
|
+
note = "This works on chatgpt.com in a browser, not in the mobile app. On work accounts, an admin may need to allow it."
|
|
14
|
+
|
|
15
|
+
[auth]
|
|
16
|
+
none = "For authentication, choose <b>No authentication</b>."
|
|
17
|
+
oauth = "For authentication, choose <b>OAuth</b>; you'll be asked to sign in to <b>{name}</b>."
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg aria-hidden="true" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="m4.7144 15.9555 4.7174-2.6471.079-.2307-.079-.1275h-.2307l-.7893-.0486-2.6956-.0729-2.3375-.0971-2.2646-.1214-.5707-.1215-.5343-.7042.0546-.3522.4797-.3218.686.0608 1.5179.1032 2.2767.1578 1.6514.0972 2.4468.255h.3886l.0546-.1579-.1336-.0971-.1032-.0972L6.973 9.8356l-2.55-1.6879-1.3356-.9714-.7225-.4918-.3643-.4614-.1578-1.0078.6557-.7225.8803.0607.2246.0607.8925.686 1.9064 1.4754 2.4893 1.8336.3643.3035.1457-.1032.0182-.0728-.164-.2733-1.3539-2.4467-1.445-2.4893-.6435-1.032-.17-.6194c-.0607-.255-.1032-.4674-.1032-.7285L6.287.1335 6.6997 0l.9957.1336.419.3642.6192 1.4147 1.0018 2.2282 1.5543 3.0296.4553.8985.2429.8318.091.255h.1579v-.1457l.1275-1.706.2368-2.0947.2307-2.6957.0789-.7589.3764-.9107.7468-.4918.5828.2793.4797.686-.0668.4433-.2853 1.8517-.5586 2.9021-.3643 1.9429h.2125l.2429-.2429.9835-1.3053 1.6514-2.0643.7286-.8196.85-.9046.5464-.4311h1.0321l.759 1.1293-.34 1.1657-1.0625 1.3478-.8804 1.1414-1.2628 1.7-.7893 1.36.0729.1093.1882-.0183 2.8535-.607 1.5421-.2794 1.8396-.3157.8318.3886.091.3946-.3278.8075-1.967.4857-2.3072.4614-3.4364.8136-.0425.0304.0486.0607 1.5482.1457.6618.0364h1.621l3.0175.2247.7892.522.4736.6376-.079.4857-1.2142.6193-1.6393-.3886-3.825-.9107-1.3113-.3279h-.1822v.1093l1.0929 1.0686 2.0035 1.8092 2.5075 2.3314.1275.5768-.3218.4554-.34-.0486-2.2039-1.6575-.85-.7468-1.9246-1.621h-.1275v.17l.4432.6496 2.3436 3.5214.1214 1.0807-.17.3521-.6071.2125-.6679-.1214-1.3721-1.9246L14.38 17.959l-1.1414-1.9428-.1397.079-.674 7.2552-.3156.3703-.7286.2793-.6071-.4614-.3218-.7468.3218-1.4753.3886-1.9246.3157-1.53.2853-1.9004.17-.6314-.0121-.0425-.1397.0182-1.4328 1.9672-2.1796 2.9446-1.7243 1.8456-.4128.164-.7164-.3704.0667-.6618.4008-.5889 2.386-3.0357 1.4389-1.882.929-1.0868-.0062-.1579h-.0546l-6.3385 4.1164-1.1293.1457-.4857-.4554.0608-.7467.2307-.2429 1.9064-1.3114Z"/></svg>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
name = "Claude"
|
|
2
|
+
verified = 2026-11-30
|
|
3
|
+
install_url = "https://claude.ai/customize/connectors?modal=add-custom-connector&connectorName={name}&connectorUrl={url}"
|
|
4
|
+
install_label = "Add to Claude"
|
|
5
|
+
|
|
6
|
+
steps = [
|
|
7
|
+
'Click {install} and sign in if asked.',
|
|
8
|
+
'Claude shows <b>{name}</b> and this address, with a warning that they come from a link: that’s expected. Click <b>Continue</b>.{screenshot:dialog.webp}',
|
|
9
|
+
'Under <b>Authentication</b>, keep the option marked <b>Detected</b> and click <b>Add</b>.{screenshot:auth.webp}',
|
|
10
|
+
'Click <b>Connect</b>.{auth}{screenshot:connect.webp}',
|
|
11
|
+
'In a new chat, ask something that needs {name}: it’s already turned on.',
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
note = "Works on Claude's free plan too, which allows one custom connector."
|
|
15
|
+
|
|
16
|
+
[auth]
|
|
17
|
+
none = ""
|
|
18
|
+
oauth = " Then sign in to <b>{name}</b>."
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import base64
|
|
2
|
+
import tomllib
|
|
3
|
+
from collections.abc import Sequence
|
|
4
|
+
from html import escape
|
|
5
|
+
from importlib.resources import files
|
|
6
|
+
from string import Template
|
|
7
|
+
|
|
8
|
+
_RESOURCES = files("mcp_concierge")
|
|
9
|
+
_TEXTS = tomllib.loads(_RESOURCES.joinpath("texts.toml").read_text())
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class _Screenshots:
|
|
13
|
+
"""Turns `{screenshot:file.webp}` in a step into that image from the client's folder, embedded in the page."""
|
|
14
|
+
|
|
15
|
+
def __init__(self, folder) -> None:
|
|
16
|
+
self._folder = folder
|
|
17
|
+
|
|
18
|
+
def __format__(self, file: str) -> str:
|
|
19
|
+
data = base64.b64encode(self._folder.joinpath(file).read_bytes()).decode()
|
|
20
|
+
return f'<img class="screenshot" src="data:image/webp;base64,{data}" alt="">'
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def _load_client(toml) -> dict:
|
|
24
|
+
client = tomllib.loads(toml.read_text())
|
|
25
|
+
stem = toml.name.removesuffix(".toml")
|
|
26
|
+
logo = _RESOURCES.joinpath("clients", stem + ".svg")
|
|
27
|
+
client["logo"] = logo.read_text().strip() if logo.is_file() else ""
|
|
28
|
+
client["screenshots"] = _Screenshots(_RESOURCES.joinpath("clients", stem))
|
|
29
|
+
return client
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
_CLIENTS = tuple(
|
|
33
|
+
_load_client(f)
|
|
34
|
+
for f in sorted(_RESOURCES.joinpath("clients").iterdir(), key=lambda f: f.name)
|
|
35
|
+
if f.name.endswith(".toml")
|
|
36
|
+
) + ({**_TEXTS["other"], "logo": "", "screenshots": None},)
|
|
37
|
+
|
|
38
|
+
_TEMPLATE = Template("""<!doctype html>
|
|
39
|
+
<html lang="en">
|
|
40
|
+
<head>
|
|
41
|
+
<meta charset="utf-8">
|
|
42
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
43
|
+
<meta name="robots" content="noindex, nofollow">
|
|
44
|
+
<title>$title</title>
|
|
45
|
+
<style>
|
|
46
|
+
:root { --text: #1f2328; --muted: #59636e; --bg-soft: #f6f8fa; --border: #d1d9e0; --accent: #c15f3c; }
|
|
47
|
+
body { margin: 0; background: #fff; color: var(--text); font: 17px/1.55 system-ui, sans-serif; }
|
|
48
|
+
main { max-width: 38rem; margin: 0 auto; padding: 2rem 1rem 3rem; }
|
|
49
|
+
h1 { font-size: 1.6rem; margin: 0 0 .5rem; }
|
|
50
|
+
p.intro { color: var(--muted); margin-top: 0; }
|
|
51
|
+
.card { border: 1px solid var(--border); border-radius: 12px; padding: 1.1rem 1.25rem; margin-top: 1rem; }
|
|
52
|
+
.card > :first-child, .card section > :first-child { margin-top: 0; }
|
|
53
|
+
.card > :last-child { margin-bottom: 0; }
|
|
54
|
+
.card-title { font-weight: 600; margin: 0 0 .75rem; }
|
|
55
|
+
ol { padding-left: 1.3rem; margin: 0; }
|
|
56
|
+
li { margin: 0 0 .9rem; }
|
|
57
|
+
a { color: var(--accent); }
|
|
58
|
+
a.install { display: inline-block; padding: .3rem .9rem; border-radius: 6px; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; }
|
|
59
|
+
button { font: inherit; padding: .5rem 1rem; border: 0; border-radius: 6px; background: var(--accent); color: #fff; cursor: pointer; }
|
|
60
|
+
.url { display: flex; gap: .5rem; margin: .5rem 0; }
|
|
61
|
+
.url input { flex: 1; min-width: 0; font: 14px ui-monospace, monospace; padding: .5rem; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-soft); }
|
|
62
|
+
.choice { display: flex; flex-wrap: wrap; gap: .5rem; }
|
|
63
|
+
.choice button { display: inline-flex; align-items: center; gap: .45rem; background: var(--bg-soft); color: var(--text); border: 1px solid var(--border); }
|
|
64
|
+
.choice svg { width: 1.1em; height: 1.1em; fill: currentColor; }
|
|
65
|
+
.choice button[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
|
|
66
|
+
.screenshot { display: block; max-width: 100%; height: auto; margin-top: .6rem; border: 1px solid var(--border); border-radius: 8px; }
|
|
67
|
+
.note { color: var(--muted); font-size: .9rem; }
|
|
68
|
+
.examples { padding-left: 1.3rem; margin: 0; }
|
|
69
|
+
.examples li { margin: .4rem 0; }
|
|
70
|
+
#try { background: var(--bg-soft); border-color: var(--bg-soft); }
|
|
71
|
+
</style>
|
|
72
|
+
</head>
|
|
73
|
+
<body>
|
|
74
|
+
<main data-name="$name">
|
|
75
|
+
<h1>$title</h1>
|
|
76
|
+
<p class="intro">$intro</p>
|
|
77
|
+
|
|
78
|
+
<div class="card">
|
|
79
|
+
<p class="card-title">$choose</p>
|
|
80
|
+
<div class="choice" role="group">
|
|
81
|
+
$buttons
|
|
82
|
+
</div>
|
|
83
|
+
</div>
|
|
84
|
+
<div class="card" id="steps" hidden>
|
|
85
|
+
$sections
|
|
86
|
+
<button id="done" type="button">$done</button>
|
|
87
|
+
</div>
|
|
88
|
+
<div class="card" id="try" hidden>
|
|
89
|
+
$try_it
|
|
90
|
+
</div>
|
|
91
|
+
</main>
|
|
92
|
+
<script>
|
|
93
|
+
const url = location.href.split("#")[0];
|
|
94
|
+
document.querySelectorAll(".url").forEach((box) => {
|
|
95
|
+
const field = box.querySelector("input");
|
|
96
|
+
field.value = url;
|
|
97
|
+
box.querySelector("button").addEventListener("click", async (e) => {
|
|
98
|
+
field.select();
|
|
99
|
+
try { await navigator.clipboard.writeText(url); } catch { document.execCommand("copy"); }
|
|
100
|
+
e.target.textContent = "$copied";
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
const name = document.querySelector("main").dataset.name;
|
|
104
|
+
document.querySelectorAll("a.install").forEach((a) => {
|
|
105
|
+
a.href = a.dataset.template.replace("{name}", encodeURIComponent(name)).replace("{url}", encodeURIComponent(url));
|
|
106
|
+
});
|
|
107
|
+
const done = document.getElementById("done");
|
|
108
|
+
const steps = document.getElementById("steps");
|
|
109
|
+
const buttons = document.querySelectorAll(".choice button");
|
|
110
|
+
buttons.forEach((b) => b.addEventListener("click", () => {
|
|
111
|
+
buttons.forEach((other) => {
|
|
112
|
+
other.setAttribute("aria-pressed", other === b);
|
|
113
|
+
document.getElementById(other.dataset.client).hidden = other !== b;
|
|
114
|
+
});
|
|
115
|
+
steps.hidden = false;
|
|
116
|
+
}));
|
|
117
|
+
done.addEventListener("click", () => {
|
|
118
|
+
done.hidden = true;
|
|
119
|
+
document.getElementById("try").hidden = false;
|
|
120
|
+
});
|
|
121
|
+
</script>
|
|
122
|
+
</body>
|
|
123
|
+
</html>
|
|
124
|
+
""")
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
class SetupPage:
|
|
128
|
+
"""The page a person sees when they open an MCP server's URL in a browser."""
|
|
129
|
+
|
|
130
|
+
def __init__(self, server_name: str, examples: Sequence[str] = (), *, oauth: bool = False) -> None:
|
|
131
|
+
self._name = escape(server_name)
|
|
132
|
+
self._examples = tuple(escape(e) for e in examples)
|
|
133
|
+
self._oauth = oauth
|
|
134
|
+
|
|
135
|
+
def html(self) -> bytes:
|
|
136
|
+
return _TEMPLATE.substitute(
|
|
137
|
+
name=self._name,
|
|
138
|
+
title=_TEXTS["title"].format(name=self._name),
|
|
139
|
+
intro=_TEXTS["intro"],
|
|
140
|
+
copied=_TEXTS["copied"],
|
|
141
|
+
choose=_TEXTS["choose"],
|
|
142
|
+
buttons="\n".join(
|
|
143
|
+
f' <button type="button" data-client="client-{i}" aria-pressed="false">{c["logo"]}{c["name"]}</button>'
|
|
144
|
+
for i, c in enumerate(_CLIENTS)
|
|
145
|
+
),
|
|
146
|
+
sections="\n".join(self._section(i, c) for i, c in enumerate(_CLIENTS)),
|
|
147
|
+
done=_TEXTS["done"],
|
|
148
|
+
try_it=self._try_it(),
|
|
149
|
+
).encode()
|
|
150
|
+
|
|
151
|
+
def _section(self, i: int, client: dict) -> str:
|
|
152
|
+
install = (
|
|
153
|
+
f'<a class="install" data-template="{escape(client["install_url"])}" target="_blank" rel="noopener">{client["install_label"]}</a>'
|
|
154
|
+
if "install_url" in client
|
|
155
|
+
else ""
|
|
156
|
+
)
|
|
157
|
+
copy = f'<span class="url"><input readonly><button type="button">{_TEXTS["copy"]}</button></span>'
|
|
158
|
+
auth = client["auth"]["oauth" if self._oauth else "none"].format(name=self._name)
|
|
159
|
+
steps = "\n".join(
|
|
160
|
+
f" <li>{p.format(name=self._name, install=install, copy=copy, auth=auth, screenshot=client["screenshots"])}</li>" for p in client["steps"]
|
|
161
|
+
)
|
|
162
|
+
note = (
|
|
163
|
+
f'\n <p class="note">{client["note"]} {_TEXTS["verified"].format(date=client["verified"].isoformat())}</p>'
|
|
164
|
+
if "verified" in client
|
|
165
|
+
else ""
|
|
166
|
+
)
|
|
167
|
+
return f""" <section id="client-{i}" hidden>
|
|
168
|
+
<ol>
|
|
169
|
+
{steps}
|
|
170
|
+
</ol>{note}
|
|
171
|
+
</section>"""
|
|
172
|
+
|
|
173
|
+
def _try_it(self) -> str:
|
|
174
|
+
if not self._examples:
|
|
175
|
+
return f" <p class=\"card-title\">{_TEXTS['try_it'].format(name=self._name)}</p>"
|
|
176
|
+
items = "\n".join(f" <li>{e}</li>" for e in self._examples)
|
|
177
|
+
return f""" <p class="card-title">{_TEXTS["try_examples"]}</p>
|
|
178
|
+
<ul class="examples">
|
|
179
|
+
{items}
|
|
180
|
+
</ul>"""
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
title = "Connect {name} to your AI assistant"
|
|
2
|
+
intro = "Here's how to add it to your assistant: it takes a few clicks, and you only do it once."
|
|
3
|
+
copy = "Copy"
|
|
4
|
+
copied = "Copied"
|
|
5
|
+
choose = "Which assistant do you use?"
|
|
6
|
+
done = "Done"
|
|
7
|
+
try_it = "Now open a new chat and ask something {name} can help with."
|
|
8
|
+
try_examples = "Now try it in a new chat. For example:"
|
|
9
|
+
verified = "Instructions checked on {date}."
|
|
10
|
+
|
|
11
|
+
[other]
|
|
12
|
+
name = "Other"
|
|
13
|
+
steps = [
|
|
14
|
+
"Open your assistant's settings and look for <b>Connectors</b>, <b>Apps</b> or <b>Integrations</b>.",
|
|
15
|
+
'Add a custom one, name it <b>{name}</b> and paste this address:{copy}{auth}',
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
[other.auth]
|
|
19
|
+
none = ""
|
|
20
|
+
oauth = "If asked, sign in to <b>{name}</b>."
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "mcp-concierge"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "Turns your MCP server URL into a setup page: step-by-step instructions for Claude, ChatGPT and more, kept up to date."
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
license = "MIT"
|
|
7
|
+
license-files = ["LICENSE"]
|
|
8
|
+
requires-python = ">=3.11"
|
|
9
|
+
dependencies = []
|
|
10
|
+
keywords = ["mcp", "model context protocol", "asgi", "claude", "chatgpt", "connector"]
|
|
11
|
+
classifiers = [
|
|
12
|
+
"Development Status :: 4 - Beta",
|
|
13
|
+
"Intended Audience :: Developers",
|
|
14
|
+
"Programming Language :: Python :: 3",
|
|
15
|
+
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
[project.urls]
|
|
19
|
+
Homepage = "https://github.com/fain182/mcp-concierge"
|
|
20
|
+
Issues = "https://github.com/fain182/mcp-concierge/issues"
|
|
21
|
+
|
|
22
|
+
[dependency-groups]
|
|
23
|
+
dev = [
|
|
24
|
+
"mcp>=2.2.0",
|
|
25
|
+
"pytest",
|
|
26
|
+
"uvicorn>=0.54.0",
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
[build-system]
|
|
30
|
+
requires = ["hatchling>=1.27"]
|
|
31
|
+
build-backend = "hatchling.build"
|
|
32
|
+
|
|
33
|
+
[tool.hatch.build.targets.sdist]
|
|
34
|
+
include = [
|
|
35
|
+
"mcp_concierge",
|
|
36
|
+
"tests",
|
|
37
|
+
"examples",
|
|
38
|
+
"README.md",
|
|
39
|
+
"LICENSE",
|
|
40
|
+
]
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import asyncio
|
|
2
|
+
|
|
3
|
+
from mcp_concierge import SetupPage, with_setup_page
|
|
4
|
+
|
|
5
|
+
PATH = "/mcp"
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
async def mcp_endpoint(scope, receive, send):
|
|
9
|
+
await send({"type": "http.response.start", "status": 204, "headers": [(b"x-from", b"mcp")]})
|
|
10
|
+
await send({"type": "http.response.body", "body": b""})
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _request(method: str, path: str = PATH, accept: bytes | None = None) -> dict:
|
|
14
|
+
headers = [(b"accept", accept)] if accept is not None else []
|
|
15
|
+
scope = {"type": "http", "method": method, "path": path, "headers": headers}
|
|
16
|
+
sent = []
|
|
17
|
+
|
|
18
|
+
async def receive():
|
|
19
|
+
return {"type": "http.request", "body": b"", "more_body": False}
|
|
20
|
+
|
|
21
|
+
async def send(message):
|
|
22
|
+
sent.append(message)
|
|
23
|
+
|
|
24
|
+
app = with_setup_page(mcp_endpoint, PATH, SetupPage("Weather"))
|
|
25
|
+
asyncio.run(app(scope, receive, send))
|
|
26
|
+
start, body = sent
|
|
27
|
+
return {"status": start["status"], "headers": dict(start["headers"]), "body": body["body"]}
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def test_a_browser_gets_the_page():
|
|
31
|
+
r = _request("GET", accept=b"text/html,application/xhtml+xml")
|
|
32
|
+
assert r["status"] == 200
|
|
33
|
+
assert r["headers"][b"content-type"].startswith(b"text/html")
|
|
34
|
+
assert b"Weather" in r["body"]
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def test_a_request_without_accept_gets_the_page():
|
|
38
|
+
assert _request("GET")["status"] == 200
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def test_the_page_is_not_indexed():
|
|
42
|
+
assert _request("GET", accept=b"text/html")["headers"][b"x-robots-tag"] == b"noindex"
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def test_an_mcp_client_get_reaches_the_endpoint():
|
|
46
|
+
r = _request("GET", accept=b"text/event-stream")
|
|
47
|
+
assert r["headers"][b"x-from"] == b"mcp"
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
def test_a_post_reaches_the_endpoint():
|
|
51
|
+
r = _request("POST", accept=b"text/html")
|
|
52
|
+
assert r["headers"][b"x-from"] == b"mcp"
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
def test_other_paths_reach_the_app():
|
|
56
|
+
r = _request("GET", path="/other", accept=b"text/html")
|
|
57
|
+
assert r["headers"][b"x-from"] == b"mcp"
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
import re
|
|
3
|
+
import tomllib
|
|
4
|
+
from html import escape
|
|
5
|
+
from importlib.resources import files
|
|
6
|
+
|
|
7
|
+
import pytest
|
|
8
|
+
|
|
9
|
+
from mcp_concierge import SetupPage
|
|
10
|
+
|
|
11
|
+
CLIENTS = [
|
|
12
|
+
(f.name, tomllib.loads(f.read_text()))
|
|
13
|
+
for f in files("mcp_concierge").joinpath("clients").iterdir()
|
|
14
|
+
if f.name.endswith(".toml")
|
|
15
|
+
]
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def test_shows_every_client():
|
|
19
|
+
html = SetupPage("Weather").html().decode()
|
|
20
|
+
for _, client in CLIENTS:
|
|
21
|
+
assert f">{client['name']}</button>" in html
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def test_no_client_starts_selected():
|
|
25
|
+
html = SetupPage("Weather").html().decode()
|
|
26
|
+
assert '" aria-pressed="true">' not in html
|
|
27
|
+
for i in range(len(CLIENTS)):
|
|
28
|
+
assert f'<section id="client-{i}" hidden>' in html
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def test_how_to_try_it_starts_hidden():
|
|
32
|
+
assert '<div class="card" id="try" hidden>' in SetupPage("Weather").html().decode()
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def test_steps_start_hidden():
|
|
36
|
+
assert '<div class="card" id="steps" hidden>' in SetupPage("Weather").html().decode()
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def test_escapes_the_server_name():
|
|
40
|
+
html = SetupPage("<script>x</script>").html().decode()
|
|
41
|
+
assert "<script>x</script>" not in html
|
|
42
|
+
assert "<script>x</script>" in html
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def test_escapes_the_server_name_for_the_install_link():
|
|
46
|
+
assert 'data-name="a"b"' in SetupPage('a"b').html().decode()
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
def test_clients_with_an_install_url_get_an_install_button():
|
|
50
|
+
html = SetupPage("Weather").html().decode()
|
|
51
|
+
for _, client in CLIENTS:
|
|
52
|
+
if "install_url" in client:
|
|
53
|
+
assert f'class="install" data-template="{escape(client["install_url"])}"' in html
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
def test_without_oauth_says_no_authentication():
|
|
57
|
+
html = SetupPage("Weather").html().decode()
|
|
58
|
+
assert "No authentication" in html
|
|
59
|
+
assert "sign in to <b>Weather</b>" not in html
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
def test_with_oauth_asks_to_sign_in_to_the_server():
|
|
63
|
+
html = SetupPage("Weather", oauth=True).html().decode()
|
|
64
|
+
assert "No authentication" not in html
|
|
65
|
+
assert "sign in to <b>Weather</b>" in html
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
def test_shows_the_examples_escaped():
|
|
69
|
+
html = SetupPage("Weather", examples=["Rain < 5mm?"]).html().decode()
|
|
70
|
+
assert "<li>Rain < 5mm?</li>" in html
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
def test_without_examples_suggests_asking_anything():
|
|
74
|
+
html = SetupPage("Weather").html().decode()
|
|
75
|
+
assert 'class="examples"' not in html
|
|
76
|
+
assert "ask something Weather can help with" in html
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
def test_clients_that_need_the_address_get_a_copy_box():
|
|
80
|
+
html = SetupPage("Weather").html().decode()
|
|
81
|
+
clients_with_copy = sum(any("{copy}" in s for s in c["steps"]) for _, c in CLIENTS)
|
|
82
|
+
assert html.count('class="url"') == clients_with_copy + 1 # Other
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
def test_other_is_the_last_choice():
|
|
86
|
+
html = SetupPage("Weather").html().decode()
|
|
87
|
+
assert f'data-client="client-{len(CLIENTS)}" aria-pressed="false">Other</button>' in html
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
def test_is_not_indexed():
|
|
91
|
+
assert '<meta name="robots" content="noindex' in SetupPage("Weather").html().decode()
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
def test_embeds_screenshots_in_the_page():
|
|
95
|
+
html = SetupPage("Weather").html().decode()
|
|
96
|
+
assert '<img class="screenshot" src="data:image/webp;base64,' in html
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
@pytest.mark.parametrize(("file", "client"), CLIENTS, ids=[f for f, _ in CLIENTS])
|
|
100
|
+
class TestClientData:
|
|
101
|
+
def test_has_steps_and_a_note(self, file, client):
|
|
102
|
+
assert client["steps"], f"{file}: no steps"
|
|
103
|
+
assert client["note"], f"{file}: no note"
|
|
104
|
+
|
|
105
|
+
def test_an_install_url_has_a_label_and_a_step_that_shows_it(self, file, client):
|
|
106
|
+
if "install_url" in client:
|
|
107
|
+
assert client["install_label"], f"{file}: no install_label"
|
|
108
|
+
assert any("{install}" in s for s in client["steps"]), f"{file}: no step with {{install}}"
|
|
109
|
+
|
|
110
|
+
def test_says_what_to_do_with_and_without_oauth(self, file, client):
|
|
111
|
+
assert set(client["auth"]) == {"none", "oauth"}, f"{file}: [auth] needs none and oauth"
|
|
112
|
+
assert any("{auth}" in s for s in client["steps"]), f"{file}: no step with {{auth}}"
|
|
113
|
+
|
|
114
|
+
def test_every_screenshot_exists(self, file, client):
|
|
115
|
+
folder = files("mcp_concierge").joinpath("clients", file.removesuffix(".toml"))
|
|
116
|
+
for name in re.findall(r"\{screenshot:([^}]+)\}", " ".join(client["steps"])):
|
|
117
|
+
assert folder.joinpath(name).is_file(), f"{file}: missing screenshot {name}"
|
|
118
|
+
|
|
119
|
+
def test_has_a_verification_date(self, file, client):
|
|
120
|
+
assert isinstance(client["verified"], datetime.date)
|