claude-os/frontend
Rosie Val 3512c615c9 Fix frontend API base URL for remote access, pin mcp<2.0.0
api.ts and auth.tsx hardcoded API_BASE to http://localhost:8051 with
no override, unlike every other component which already checked
VITE_API_URL first. That's fine when the browser and server are on
the same machine, but breaks auth/chat/stats/documents entirely when
accessing the UI from a different machine than the one running
claude-os - "localhost" resolves to the browser's own machine, not
the server.

Also pins mcp<2.0.0 in requirements.txt: mcp 2.0.0 removed the
low-level Server.list_tools() API that mcp_server/claude_code_mcp.py
(the code-forge stdio MCP server) depends on, so an unbounded
mcp>=1.0.0 install silently breaks that integration.
2026-08-22 15:31:10 -04:00
..
e2e Remove test screenshots from tracking 2025-12-02 16:28:24 -06:00
public Cleanup and some docs 2025-11-05 11:12:24 -06:00
src Fix frontend API base URL for remote access, pin mcp<2.0.0 2026-08-22 15:31:10 -04:00
test-results [Bug] "Configure" window superimposed on underlying UI elements #14 2025-12-02 16:10:07 -06:00
.gitignore Major updates to use react and agent os profiles 2025-10-23 19:23:05 -05:00
eslint.config.js Major updates to use react and agent os profiles 2025-10-23 19:23:05 -05:00
index.html Almost got the mosnter finished 2025-10-27 17:41:44 -05:00
package-lock.json Cleanup and some docs 2025-11-05 11:12:24 -06:00
package.json Cleanup and some docs 2025-11-05 11:12:24 -06:00
playwright.config.ts [Bug] "Configure" window superimposed on underlying UI elements #14 2025-12-02 16:10:07 -06:00
postcss.config.js Major updates to use react and agent os profiles 2025-10-23 19:23:05 -05:00
README.md Major updates to use react and agent os profiles 2025-10-23 19:23:05 -05:00
tailwind.config.js Almost got the mosnter finished 2025-10-27 17:41:44 -05:00
tsconfig.app.json Major updates to use react and agent os profiles 2025-10-23 19:23:05 -05:00
tsconfig.json Major updates to use react and agent os profiles 2025-10-23 19:23:05 -05:00
tsconfig.node.json Major updates to use react and agent os profiles 2025-10-23 19:23:05 -05:00
vite.config.ts Cleanup and some docs 2025-11-05 11:12:24 -06:00

React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

React Compiler

The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...

      // Remove tseslint.configs.recommended and replace with this
      tseslint.configs.recommendedTypeChecked,
      // Alternatively, use this for stricter rules
      tseslint.configs.strictTypeChecked,
      // Optionally, add this for stylistic rules
      tseslint.configs.stylisticTypeChecked,

      // Other configs...
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])

You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:

// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...
      // Enable lint rules for React
      reactX.configs['recommended-typescript'],
      // Enable lint rules for React DOM
      reactDom.configs.recommended,
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])