mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-22 05:24:18 +02:00
Docs (#2145)
* Update fonts + styling * Update docs.json * Update welcome.mdx
This commit is contained in:
parent
4c7463d5ae
commit
e7cde97e5b
3 changed files with 17 additions and 27 deletions
|
|
@ -19,11 +19,12 @@
|
|||
"light": "#4cc9f0",
|
||||
"primary": "#2d00f7"
|
||||
},
|
||||
"fonts": {
|
||||
"heading": { "family": "Google Sans" },
|
||||
"body": { "family": "BlinkMacSystemFont" }
|
||||
},
|
||||
"contextual": {
|
||||
"options": [
|
||||
"copy",
|
||||
"view"
|
||||
]
|
||||
"options": ["copy", "view"]
|
||||
},
|
||||
"description": "The fast, Pythonic way to build MCP servers and clients.",
|
||||
"errors": {
|
||||
|
|
@ -149,10 +150,7 @@
|
|||
{
|
||||
"group": "Essentials",
|
||||
"icon": "cube",
|
||||
"pages": [
|
||||
"clients/client",
|
||||
"clients/transports"
|
||||
]
|
||||
"pages": ["clients/client", "clients/transports"]
|
||||
},
|
||||
{
|
||||
"group": "Core Operations",
|
||||
|
|
@ -178,10 +176,7 @@
|
|||
{
|
||||
"group": "Authentication",
|
||||
"icon": "user-shield",
|
||||
"pages": [
|
||||
"clients/auth/oauth",
|
||||
"clients/auth/bearer"
|
||||
]
|
||||
"pages": ["clients/auth/oauth", "clients/auth/bearer"]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -235,10 +230,7 @@
|
|||
{
|
||||
"group": "API Integration",
|
||||
"icon": "globe",
|
||||
"pages": [
|
||||
"integrations/fastapi",
|
||||
"integrations/openapi"
|
||||
]
|
||||
"pages": ["integrations/fastapi", "integrations/openapi"]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -473,5 +465,13 @@
|
|||
"thumbnails": {
|
||||
"appearance": "light",
|
||||
"background": "/assets/brand/thumbnail-background.png"
|
||||
},
|
||||
"styling": {
|
||||
"codeblocks": {
|
||||
"theme": {
|
||||
"light": "snazzy-light",
|
||||
"dark": "material-theme-palenight"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ title: "Welcome to FastMCP 2.0!"
|
|||
sidebarTitle: "Welcome!"
|
||||
description: The fast, Pythonic way to build MCP servers and clients.
|
||||
icon: hand-wave
|
||||
mode: wide
|
||||
---
|
||||
<img
|
||||
src="/assets/brand/f-watercolor-waves.png"
|
||||
|
|
|
|||
|
|
@ -22,16 +22,7 @@ auth = GitHubProvider(
|
|||
# redirect_path="/auth/callback", # Default path - change if using a different callback URL
|
||||
)
|
||||
|
||||
mcp = FastMCP(
|
||||
auth=auth,
|
||||
# "GitHub OAuth Example Server",
|
||||
# icons=[
|
||||
# Icon(
|
||||
# src="https://upload.wikimedia.org/wikipedia/commons/thumb/9/91/Octicons-mark-github.svg/2048px-Octicons-mark-github.svg.png"
|
||||
# )
|
||||
# ],
|
||||
# website_url="https://example.com",
|
||||
)
|
||||
mcp = FastMCP("GitHub OAuth Example Server", auth=auth)
|
||||
|
||||
|
||||
@mcp.tool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue