David Prince
fix: add all missing local module stubs (remote_mcp_registry, mcp_auth, mcp_transport, etc)
cce8120 | import axios from "axios"; | |
| export const api = axios.create({ | |
| baseURL: process.env.NEXT_PUBLIC_API_URL || "http://127.0.0.1:8000", | |
| timeout: 60000, | |
| headers: { | |
| "Content-Type": "application/json" | |
| } | |
| }); | |
| api.interceptors.request.use((config) => { | |
| if (typeof window !== "undefined") { | |
| const token = localStorage.getItem("access_token"); | |
| if (token) { | |
| config.headers.Authorization = `Bearer ${token}`; | |
| } | |
| } | |
| return config; | |
| }); | |
| api.interceptors.response.use( | |
| (response) => response, | |
| (error) => Promise.reject(error) | |
| ); | |
| export default api; | |