Announcements
from pydantic import AnyHttpUrl
from mcp.server.auth.settings import AuthSettings
from mcp.server.fastmcp import FastMCP
from mcp_servers.auth import SimpleTokenVerifier
# Convert langchain tool to mcp
mcp = FastMCP(
token_verifier=SimpleTokenVerifier(),
auth=AuthSettings(
issuer_url=AnyHttpUrl("https://localhost"),
resource_server_url=AnyHttpUrl("http://localhost"),
required_scopes=['read:data', 'write:data']
),
tools=[
# List of tools here
],
host="0.0.0.0",
port=8000,
streamable_http_path='/mcp',
json_response=True
)
if __name__ == "__main__":
mcp.run(
transport='streamable-http'
this is deployed in AWS EKS and you can connection from VS code using public endpoint and bearer token auth. Same also works from "npx mcp inspector".we have created a connecgtion for the MCP server in PowerApps and made sure to have correct bearer token added.PowerApp MCP connection has test feature which also works after adding the connection with bearer token.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Valantis 302
11manish 146
chiaraalina 118 Super User 2026 Season 1