Skip to content

Commit 8229bfe

Browse files
committed
chore(sdk):fix lint
1 parent 2b51278 commit 8229bfe

File tree

3 files changed

+5
-20
lines changed

3 files changed

+5
-20
lines changed

eslint.config.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -97,22 +97,5 @@ export default tseslint.config(
9797

9898
},
9999
},
100-
{
101-
files: ["packages/mcp/**"],
102-
rules: {
103-
"@typescript-eslint/no-explicit-any": "off",
104-
"@typescript-eslint/no-unsafe-assignment": "off",
105-
"@typescript-eslint/no-unsafe-call": "off",
106-
"@typescript-eslint/no-unsafe-member-access": "off",
107-
"@typescript-eslint/no-unsafe-return": "off",
108-
"no-console": "off",
109-
"@typescript-eslint/no-unsafe-argument":"off",
110-
"@typescript-eslint/require-await":"off",
111-
"@typescript-eslint/no-unused-vars":"off",
112-
"@typescript-eslint/no-misused-promises":"off",
113-
"@typescript-eslint/unbound-method":"off"
114-
115-
},
116-
}
117100
);
118101

packages/sdk/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export * from "./api"
22
export * from "./langchain"
3-
export * from "./vercel"
43
export * from "./mcp"
4+
export * from "./vercel"

packages/sdk/src/mcp.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44

55
import type { CallToolResult, Tool } from "@modelcontextprotocol/sdk/types.js"
66
import type { Action } from "@polkadot-agent-kit/llm"
7-
import type { PolkadotAgentKit } from "./api"
87
import { zodToJsonSchema } from "zod-to-json-schema"
98

9+
import type { PolkadotAgentKit } from "./api"
10+
1011
/**
1112
* Interface for AgentKit MCP tools and handlers.
1213
*
@@ -64,6 +65,7 @@ function createToolHandler(actions: Action[]) {
6465

6566
try {
6667
// Validate and parse arguments using the action's schema
68+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
6769
const parsedArgs = action.schema.parse(args)
6870

6971
// Execute the action
@@ -111,7 +113,7 @@ function createToolHandler(actions: Action[]) {
111113
* @returns Promise resolving to MCP tools and handler
112114
*
113115
*/
114-
export async function getMcpTools(polkadotAgentKit: PolkadotAgentKit): Promise<AgentKitMcpTools> {
116+
export function getMcpTools(polkadotAgentKit: PolkadotAgentKit): AgentKitMcpTools {
115117
const actions: Action[] = polkadotAgentKit.getActions()
116118

117119
return {

0 commit comments

Comments
 (0)