Skip to content
This repository was archived by the owner on Feb 23, 2026. It is now read-only.

Commit 6b8c7dd

Browse files
authored
Merge pull request #28 from runbasehq/dev
fix: remove bearer from authentication
2 parents 320510e + 6f277e8 commit 6b8c7dd

File tree

10 files changed

+363
-242
lines changed

10 files changed

+363
-242
lines changed

packages/agents/README.md

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# @mcp-check/agents
2+
3+
Multi-provider AI agent framework for Model Context Protocol (MCP) servers.
4+
5+
## Installation
6+
7+
```bash
8+
npm install @mcp-check/agents
9+
```
10+
11+
## Usage
12+
13+
```typescript
14+
import { client, McpServer } from '@mcp-check/agents';
15+
16+
// Create an MCP server configuration
17+
const mcpServer = new McpServer({
18+
url: 'your-mcp-server-url',
19+
authorizationToken: 'your-auth-token',
20+
name: 'your-server-name',
21+
type: 'your-server-type'
22+
});
23+
24+
// Initialize client with models
25+
const agents = client(mcpServer, ['claude-3-haiku-20240307', 'gpt-4']);
26+
27+
// Execute with prompt
28+
const result = await agents
29+
.prompt('Your prompt here')
30+
.allowTools(['tool1', 'tool2'])
31+
.execute();
32+
33+
console.log(result.usedTools);
34+
```
35+
36+
## API
37+
38+
### `McpServer`
39+
40+
Configuration class for MCP server connection.
41+
42+
#### Constructor
43+
44+
```typescript
45+
new McpServer({
46+
url: string;
47+
authorizationToken: string;
48+
name: string;
49+
type: string;
50+
})
51+
```
52+
53+
### `client(mcpServer, models)`
54+
55+
Creates an `Agents` instance.
56+
57+
- `mcpServer`: McpServer instance
58+
- `models`: Array of AI model identifiers
59+
60+
### `Agents`
61+
62+
Main agent execution class.
63+
64+
#### Methods
65+
66+
- `prompt(text: string)`: Set the prompt text
67+
- `allowTools(tools: string[])`: Specify allowed tools
68+
- `execute()`: Execute the agent with configured models
69+
70+
## Supported Models
71+
72+
- Anthropic models (Claude)
73+
- OpenAI models (GPT)
74+
75+
## License
76+
77+
MIT

packages/agents/package.json

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
2-
"name": "@mcp-check/agents",
3-
"private": true,
4-
"version": "0.1.0",
2+
"name": "mcp-check-agents",
3+
"private": false,
4+
"version": "0.1.1",
5+
"description": "Multi-provider AI agent framework for Model Context Protocol (MCP) servers",
6+
"keywords": ["mcp", "ai", "agents", "anthropic", "openai", "model-context-protocol"],
57
"type": "module",
68
"main": "dist/index.js",
79
"types": "dist/index.d.ts",
@@ -26,6 +28,19 @@
2628
"typescript": "^5.0.0"
2729
},
2830
"files": [
29-
"dist"
30-
]
31+
"dist",
32+
"README.md"
33+
],
34+
"repository": {
35+
"type": "git",
36+
"url": "https://github.com/your-username/mcp-check.git",
37+
"directory": "packages/agents"
38+
},
39+
"license": "MIT",
40+
"engines": {
41+
"node": ">=18"
42+
},
43+
"publishConfig": {
44+
"access": "public"
45+
}
3146
}

packages/agents/src/providers/anthropic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@ export class AnthropicProvider extends Provider {
6262
await stream.finalMessage();
6363
return { usedTools, content };
6464
}
65-
}
65+
}

packages/agents/tsconfig.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"extends": "../../tsconfig.json",
3+
"compilerOptions": {
4+
"outDir": "./dist",
5+
"rootDir": "./src",
6+
"declaration": true,
7+
"moduleResolution": "bundler",
8+
"allowSyntheticDefaultImports": true,
9+
"esModuleInterop": true,
10+
"skipLibCheck": true
11+
},
12+
"include": ["src/**/*"],
13+
"exclude": ["dist", "node_modules"]
14+
}

packages/agents/tsup.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ import { defineConfig } from "tsup";
33
export default defineConfig({
44
entry: ["src/index.ts"],
55
format: ["cjs", "esm"],
6-
dts: false,
6+
dts: {
7+
resolve: true,
8+
},
79
splitting: false,
810
sourcemap: true,
911
clean: true,

packages/mcp-check/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# mcp-testing-library
22

3+
## 0.1.5
4+
5+
### Patch Changes
6+
7+
- fix mcp authentication
8+
39
## 0.1.4
410

511
### Patch Changes

packages/mcp-check/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
{
22
"name": "mcp-check",
33
"module": "index.ts",
4-
"version": "0.1.4",
4+
"version": "0.1.5",
55
"type": "module",
66
"main": "dist/index.js",
77
"types": "dist/index.d.ts",
88
"devDependencies": {
9-
"@mcp-check/agents": "workspace:*",
109
"@types/bun": "latest"
1110
},
1211
"peerDependencies": {
@@ -18,6 +17,7 @@
1817
"bun-plugin-dts": "^0.3.0",
1918
"dotenv": "^16.4.7",
2019
"glob": "^11.0.0",
20+
"mcp-check-agents": "^0.1.0",
2121
"openai": "^5.10.1",
2222
"tsx": "^4.19.2",
2323
"zod": "^3.24.4"

packages/mcp-check/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export { client, McpServer } from "@mcp-check/agents";
1+
export { client, McpServer } from "mcp-check-agents";
22

33
interface TestResult {
44
name: string;

packages/mcp-check/tests/mcp-check/index.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { client, McpServer, expect, describe, test } from "../../src/index.js";
22

33
const mcpServer = new McpServer({
4-
url: "https://mcp.deepwiki.com/mcp",
5-
authorizationToken: process.env.BASEHUB_TOKEN!,
4+
url: "https://basehub.com/api/mcp",
5+
authorizationToken: `Bearer ${process.env.BASEHUB_TOKEN!}`,
66
name: "basehub-marketing-website",
77
type: "url",
88
});

0 commit comments

Comments
 (0)