File tree Expand file tree Collapse file tree 9 files changed +272
-100
lines changed Expand file tree Collapse file tree 9 files changed +272
-100
lines changed Original file line number Diff line number Diff line change 3434
3535 - name : Run Claude Code
3636 id : claude
37- uses : anthropics/claude-code-action@beta
37+ uses : anthropics/claude-code-action@v1
3838 with :
3939 anthropic_api_key : ${{ secrets.ANTHROPIC_API_KEY }}
4040
4545 # Trigger when assigned to an issue
4646 assignee_trigger : " claude"
4747
48- # Allow Claude to run bash
49- # This should be safe given the repo is already public
50- allowed_tools : " Bash"
51-
52- custom_instructions : |
53- If posting a comment to GitHub, give a concise summary of the comment at the top and put all the details in a <details> block.
48+ claude_args : |
49+ --allowedTools Bash
50+ --system-prompt "If posting a comment to GitHub, give a concise summary of the comment at the top and put all the details in a <details> block."
Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ import {
1818 LoggingLevel ,
1919} from "@modelcontextprotocol/sdk/types.js" ;
2020import { OAuthTokensSchema } from "@modelcontextprotocol/sdk/shared/auth.js" ;
21+ import type {
22+ AnySchema ,
23+ SchemaOutput ,
24+ } from "@modelcontextprotocol/sdk/server/zod-compat.js" ;
2125import { SESSION_KEYS , getServerSpecificKey } from "./lib/constants" ;
2226import {
2327 hasValidMetaName ,
@@ -688,11 +692,11 @@ const App = () => {
688692 setErrors ( ( prev ) => ( { ...prev , [ tabKey ] : null } ) ) ;
689693 } ;
690694
691- const sendMCPRequest = async < T extends z . ZodType > (
695+ const sendMCPRequest = async < T extends AnySchema > (
692696 request : ClientRequest ,
693697 schema : T ,
694698 tabKey ?: keyof typeof errors ,
695- ) => {
699+ ) : Promise < SchemaOutput < T > > => {
696700 try {
697701 const response = await makeRequest ( request , schema ) ;
698702 if ( tabKey !== undefined ) {
Original file line number Diff line number Diff line change @@ -80,8 +80,8 @@ const ToolResults = ({
8080 < h4 className = "font-semibold mb-2" > Invalid Tool Result:</ h4 >
8181 < JsonView data = { toolResult } />
8282 < h4 className = "font-semibold mb-2" > Errors:</ h4 >
83- { parsedResult . error . errors . map ( ( error , idx ) => (
84- < JsonView data = { error } key = { idx } />
83+ { parsedResult . error . issues . map ( ( issue , idx ) => (
84+ < JsonView data = { issue } key = { idx } />
8585 ) ) }
8686 </ >
8787 ) ;
Original file line number Diff line number Diff line change @@ -35,7 +35,8 @@ const buttonVariants = cva(
3535) ;
3636
3737export interface ButtonProps
38- extends React . ButtonHTMLAttributes < HTMLButtonElement > ,
38+ extends
39+ React . ButtonHTMLAttributes < HTMLButtonElement > ,
3940 VariantProps < typeof buttonVariants > {
4041 asChild ?: boolean ;
4142}
Original file line number Diff line number Diff line change @@ -32,10 +32,13 @@ import {
3232 ElicitRequestSchema ,
3333 Implementation ,
3434} from "@modelcontextprotocol/sdk/types.js" ;
35+ import type {
36+ AnySchema ,
37+ SchemaOutput ,
38+ } from "@modelcontextprotocol/sdk/server/zod-compat.js" ;
3539import { RequestOptions } from "@modelcontextprotocol/sdk/shared/protocol.js" ;
3640import { useEffect , useState } from "react" ;
3741import { useToast } from "@/lib/hooks/useToast" ;
38- import { z } from "zod" ;
3942import { ConnectionStatus , CLIENT_IDENTITY } from "../constants" ;
4043import { Notification } from "../notificationTypes" ;
4144import {
@@ -170,11 +173,11 @@ export function useConnection({
170173 ] ) ;
171174 } ;
172175
173- const makeRequest = async < T extends z . ZodType > (
176+ const makeRequest = async < T extends AnySchema > (
174177 request : ClientRequest ,
175178 schema : T ,
176179 options ?: RequestOptions & { suppressToast ?: boolean } ,
177- ) : Promise < z . output < T > > => {
180+ ) : Promise < SchemaOutput < T > > => {
178181 if ( ! mcpClient ) {
179182 throw new Error ( "MCP client not connected" ) ;
180183 }
Original file line number Diff line number Diff line change @@ -3,10 +3,10 @@ import {
33 ClientNotificationSchema ,
44 ServerNotificationSchema ,
55} from "@modelcontextprotocol/sdk/types.js" ;
6- import { z } from "zod" ;
6+ import type { SchemaOutput } from "@modelcontextprotocol/sdk/server/ zod-compat.js " ;
77
88export const NotificationSchema = ClientNotificationSchema . or (
99 ServerNotificationSchema ,
1010) . or ( BaseNotificationSchema ) ;
1111
12- export type Notification = z . infer < typeof NotificationSchema > ;
12+ export type Notification = SchemaOutput < typeof NotificationSchema > ;
You can’t perform that action at this time.
0 commit comments