diff --git a/docs/deployment/http.mdx b/docs/deployment/http.mdx index ba6cd1671..a5d532555 100644 --- a/docs/deployment/http.mdx +++ b/docs/deployment/http.mdx @@ -45,7 +45,7 @@ Run your server with a simple Python command: python server.py ``` -Your server is now accessible at `http://localhost:8000/mcp/` (or use your server's actual IP address for remote access). +Your server is now accessible at `http://localhost:8000/mcp` (or use your server's actual IP address for remote access). This approach is ideal when you want to get online quickly with minimal configuration. It's perfect for internal tools, development environments, or simple deployments where you don't need advanced server features. The built-in server handles all the HTTP details, letting you focus on your MCP implementation. @@ -72,7 +72,7 @@ Run with any ASGI server - here's an example with Uvicorn: uvicorn app:app --host 0.0.0.0 --port 8000 ``` -Your server is accessible at the same URL: `http://localhost:8000/mcp/` (or use your server's actual IP address for remote access). +Your server is accessible at the same URL: `http://localhost:8000/mcp` (or use your server's actual IP address for remote access). The ASGI approach shines in production environments where you need reliability and performance. You can run multiple worker processes to handle concurrent requests, add custom middleware for logging or monitoring, integrate with existing deployment pipelines, or mount your MCP server as part of a larger application. @@ -293,7 +293,7 @@ api.mount("/mcp", mcp.http_app()) # Run with: uvicorn app:api --host 0.0.0.0 --port 8000 ``` -Your existing API remains at `http://localhost:8000/api/` while MCP is available at `http://localhost:8000/mcp/`. +Your existing API remains at `http://localhost:8000/api` while MCP is available at `http://localhost:8000/mcp`. ## Mounting Authenticated Servers diff --git a/docs/deployment/running-server.mdx b/docs/deployment/running-server.mdx index 5aa0d7819..85595f92f 100644 --- a/docs/deployment/running-server.mdx +++ b/docs/deployment/running-server.mdx @@ -83,7 +83,7 @@ if __name__ == "__main__": mcp.run(transport="http", host="127.0.0.1", port=8000) ``` -Your server is now accessible at `http://localhost:8000/mcp/`. This URL is the MCP endpoint that clients will connect to. HTTP transport enables: +Your server is now accessible at `http://localhost:8000/mcp`. This URL is the MCP endpoint that clients will connect to. HTTP transport enables: - Network accessibility - Multiple concurrent clients - Integration with web infrastructure diff --git a/docs/integrations/auth0.mdx b/docs/integrations/auth0.mdx index 958970eb2..160af738f 100644 --- a/docs/integrations/auth0.mdx +++ b/docs/integrations/auth0.mdx @@ -132,7 +132,7 @@ import asyncio async def main(): # The client will automatically handle Auth0 OAuth flows - async with Client("http://localhost:8000/mcp/", auth="oauth") as client: + async with Client("http://localhost:8000/mcp", auth="oauth") as client: # First-time connection will open Auth0 login in your browser print("✓ Authenticated with Auth0!") diff --git a/docs/integrations/authkit.mdx b/docs/integrations/authkit.mdx index 51552781d..2072638fa 100644 --- a/docs/integrations/authkit.mdx +++ b/docs/integrations/authkit.mdx @@ -70,7 +70,7 @@ from fastmcp import Client import asyncio async def main(): - async with Client("http://localhost:8000/mcp/", auth="oauth") as client: + async with Client("http://localhost:8000/mcp", auth="oauth") as client: assert await client.ping() if __name__ == "__main__": diff --git a/docs/integrations/aws-cognito.mdx b/docs/integrations/aws-cognito.mdx index fe74b770d..965791c38 100644 --- a/docs/integrations/aws-cognito.mdx +++ b/docs/integrations/aws-cognito.mdx @@ -170,7 +170,7 @@ import asyncio async def main(): # The client will automatically handle AWS Cognito OAuth - async with Client("http://localhost:8000/mcp/", auth="oauth") as client: + async with Client("http://localhost:8000/mcp", auth="oauth") as client: # First-time connection will open AWS Cognito login in your browser print("✓ Authenticated with AWS Cognito!") diff --git a/docs/integrations/azure.mdx b/docs/integrations/azure.mdx index 48a4f7c99..1c6730f87 100644 --- a/docs/integrations/azure.mdx +++ b/docs/integrations/azure.mdx @@ -185,7 +185,7 @@ import asyncio async def main(): # The client will automatically handle Azure OAuth - async with Client("http://localhost:8000/mcp/", auth="oauth") as client: + async with Client("http://localhost:8000/mcp", auth="oauth") as client: # First-time connection will open Azure login in your browser print("✓ Authenticated with Azure!") diff --git a/docs/integrations/descope.mdx b/docs/integrations/descope.mdx index edca62b3a..fdb8b0230 100644 --- a/docs/integrations/descope.mdx +++ b/docs/integrations/descope.mdx @@ -93,7 +93,7 @@ from fastmcp import Client import asyncio async def main(): - async with Client("http://localhost:8000/mcp/", auth="oauth") as client: + async with Client("http://localhost:8000/mcp", auth="oauth") as client: assert await client.ping() if __name__ == "__main__": diff --git a/docs/integrations/fastapi.mdx b/docs/integrations/fastapi.mdx index c62db7d67..c88a61599 100644 --- a/docs/integrations/fastapi.mdx +++ b/docs/integrations/fastapi.mdx @@ -366,7 +366,7 @@ combined_app = FastAPI( # Now you have: # - Regular API: http://localhost:8000/products -# - LLM-friendly MCP: http://localhost:8000/mcp/ +# - LLM-friendly MCP: http://localhost:8000/mcp # Both served from the same FastAPI application! ``` diff --git a/docs/integrations/github.mdx b/docs/integrations/github.mdx index dc1c4b8fb..f1b646b67 100644 --- a/docs/integrations/github.mdx +++ b/docs/integrations/github.mdx @@ -114,7 +114,7 @@ import asyncio async def main(): # The client will automatically handle GitHub OAuth - async with Client("http://localhost:8000/mcp/", auth="oauth") as client: + async with Client("http://localhost:8000/mcp", auth="oauth") as client: # First-time connection will open GitHub login in your browser print("✓ Authenticated with GitHub!") diff --git a/docs/integrations/google.mdx b/docs/integrations/google.mdx index 940cdfca1..b673962df 100644 --- a/docs/integrations/google.mdx +++ b/docs/integrations/google.mdx @@ -125,7 +125,7 @@ import asyncio async def main(): # The client will automatically handle Google OAuth - async with Client("http://localhost:8000/mcp/", auth="oauth") as client: + async with Client("http://localhost:8000/mcp", auth="oauth") as client: # First-time connection will open Google login in your browser print("✓ Authenticated with Google!") diff --git a/docs/tutorials/rest-api.mdx b/docs/tutorials/rest-api.mdx index 445932626..a0857aca9 100644 --- a/docs/tutorials/rest-api.mdx +++ b/docs/tutorials/rest-api.mdx @@ -103,7 +103,7 @@ from fastmcp import Client async def main(): # Connect to the MCP server we just created - async with Client("http://127.0.0.1:8000/mcp/") as client: + async with Client("http://127.0.0.1:8000/mcp") as client: # List the tools that were automatically generated tools = await client.list_tools()