This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Run it with: uvicorn run_remote_mcp:app --host 0.0.0.0 --port 5005 | |
# | |
import httpx | |
import requests | |
import json | |
import os | |
from fastapi import FastAPI |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from pydantic_ai import Agent | |
from mcp_with_filters import MCPServerHTTPWithFilter, MCPToolFilter | |
MCP_SERVER_URL = os.getenv("MCP_SERVER_URL", "http://127.0.0.1:5000/mcp") | |
token = "some_token" | |
headers = {"Authorization": f"Bearer {token}"} if token else {} | |
server = MCPServerHTTPWithFilter( |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Migrating to monorepo based on technique described here: https://medium.com/@filipenevola/how-to-migrate-to-mono-repository-without-losing-any-git-history-7a4d80aa7de2 | |
================================================================ | |
Steps: | |
1) Edit myrepos.txt to list all repositories you want to migrate | |
Line format: | |
<reponame (required>:[new_name_under_monorepo (optional, default: reponame)]:[source_branch_name (optional, deafult: master)] | |
Examples: |