chenhunghan commited on
Commit
2be99ac
·
unverified ·
1 Parent(s): a63dd19

fix: remove oauth, remove chatgpt ui

Browse files

Signed-off-by: Hung-Han (Henry) Chen <[email protected]>

Files changed (3) hide show
  1. src/tools/counter.tsx +0 -29
  2. tsconfig.json +1 -3
  3. xmcp.config.ts +1 -14
src/tools/counter.tsx DELETED
@@ -1,29 +0,0 @@
1
- import { useState } from "react";
2
- import { ToolMetadata } from "xmcp";
3
-
4
- export const metadata: ToolMetadata = {
5
- name: "counter",
6
- description: "Interactive counter widget",
7
- _meta: {
8
- openai: {
9
- toolInvocation: {
10
- invoking: "Loading counter...",
11
- invoked: "Counter ready!",
12
- },
13
- widgetAccessible: true,
14
- },
15
- },
16
- };
17
-
18
- export default function Counter() {
19
- const [count, setCount] = useState(0);
20
-
21
- return (
22
- <div>
23
- <h1>Counter: {count}</h1>
24
- <button onClick={() => setCount(count + 1)}>Increment</button>
25
- <button onClick={() => setCount(count - 1)}>Decrement</button>
26
- <button onClick={() => setCount(0)}>Reset</button>
27
- </div>
28
- );
29
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
tsconfig.json CHANGED
@@ -2,7 +2,6 @@
2
  "compilerOptions": {
3
  "target": "es2016",
4
  "module": "commonjs",
5
- "jsx": "react-jsx",
6
  "esModuleInterop": true,
7
  "forceConsistentCasingInFileNames": true,
8
  "strict": true,
@@ -11,7 +10,6 @@
11
  },
12
  "include": [
13
  "xmcp-env.d.ts",
14
- "src/**/*.ts",
15
- "src/**/*.tsx"
16
  ]
17
  }
 
2
  "compilerOptions": {
3
  "target": "es2016",
4
  "module": "commonjs",
 
5
  "esModuleInterop": true,
6
  "forceConsistentCasingInFileNames": true,
7
  "strict": true,
 
10
  },
11
  "include": [
12
  "xmcp-env.d.ts",
13
+ "src/**/*.ts"
 
14
  ]
15
  }
xmcp.config.ts CHANGED
@@ -6,20 +6,7 @@ const config: XmcpConfig = {
6
  tools: "./src/tools",
7
  prompts: false,
8
  resources: "./src/resources",
9
- },
10
- experimental: {
11
- oauth: {
12
- baseUrl: "https://dev-k1hztrek6c61zbsx.eu.auth0.com",
13
- endpoints: {
14
- authorizationUrl: "https://dev-k1hztrek6c61zbsx.eu.auth0.com/authorize",
15
- tokenUrl: "https://dev-k1hztrek6c61zbsx.eu.auth0.com/oauth/token",
16
- registerUrl: "https://dev-k1hztrek6c61zbsx.eu.auth0.com/oidc/register",
17
- },
18
- issuerUrl: "https://dev-k1hztrek6c61zbsx.eu.auth0.com",
19
- defaultScopes: ["openid", "profile", "email"],
20
- pathPrefix: "/oauth2",
21
- },
22
- },
23
  };
24
 
25
  export default config;
 
6
  tools: "./src/tools",
7
  prompts: false,
8
  resources: "./src/resources",
9
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  };
11
 
12
  export default config;