@caspav85/mcpai 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +92 -0
- package/agents/budd-ie.json +32 -0
- package/dist/agent.d.ts +24 -0
- package/dist/agent.js +45 -0
- package/dist/agent.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +157 -0
- package/dist/index.js.map +1 -0
- package/package.json +49 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# mcpai
|
|
2
|
+
|
|
3
|
+
An [MCP](https://modelcontextprotocol.io) server that embodies the **Budd-ie**
|
|
4
|
+
agent (and any other agent definitions you drop into `agents/`). It exposes
|
|
5
|
+
"everything" the protocol supports — **tools**, **prompts**, and **resources** —
|
|
6
|
+
so any MCP client (Claude Desktop, the MCP Inspector, Cursor, etc.) can converse
|
|
7
|
+
with the agent in character or introspect its definition.
|
|
8
|
+
|
|
9
|
+
## Agent definitions
|
|
10
|
+
|
|
11
|
+
Agents live in [`agents/`](./agents) as JSON in the Open WebUI model-export
|
|
12
|
+
format. `agents/budd-ie.json` is included (source:
|
|
13
|
+
[Budd-ie on Open WebUI](https://openwebui.com/posts/supaai_f26428bb) by
|
|
14
|
+
[@casp-el-oper](https://openwebui.com/u/casp-el-oper)). Any `*.json` file placed
|
|
15
|
+
here is loaded automatically at startup; a single file may contain one object or
|
|
16
|
+
an array of objects.
|
|
17
|
+
|
|
18
|
+
## What it exposes
|
|
19
|
+
|
|
20
|
+
### Resources
|
|
21
|
+
| URI | Description |
|
|
22
|
+
| --- | --- |
|
|
23
|
+
| `agent://index` | JSON list of all agents |
|
|
24
|
+
| `agent://<id>` | Full definition of one agent |
|
|
25
|
+
| `agent://<id>/system` | Raw system prompt (markdown) |
|
|
26
|
+
|
|
27
|
+
### Prompts
|
|
28
|
+
| Name | Args | Description |
|
|
29
|
+
| --- | --- | --- |
|
|
30
|
+
| `<id>` (e.g. `budd-ie`) | `message` | Chat with the agent, seeded with its system protocol |
|
|
31
|
+
|
|
32
|
+
### Tools
|
|
33
|
+
| Name | Args | Description |
|
|
34
|
+
| --- | --- | --- |
|
|
35
|
+
| `list_agents` | – | List all agents with tags/descriptions |
|
|
36
|
+
| `get_agent` | `id` | Full definition for one agent |
|
|
37
|
+
| `ask_agent` | `id`, `message` | Wrap a question in the agent's system protocol |
|
|
38
|
+
| `echo` | `text` | Connectivity check |
|
|
39
|
+
|
|
40
|
+
## Quick start
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
npm install
|
|
44
|
+
npm run build
|
|
45
|
+
npm start # runs the server over stdio
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Try it with the MCP Inspector
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
npm run build
|
|
52
|
+
npm run inspect
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Use with an MCP client
|
|
56
|
+
|
|
57
|
+
Add to your client's MCP config (e.g. Claude Desktop `claude_desktop_config.json`):
|
|
58
|
+
|
|
59
|
+
```json
|
|
60
|
+
{
|
|
61
|
+
"mcpServers": {
|
|
62
|
+
"mcpai": {
|
|
63
|
+
"command": "npx",
|
|
64
|
+
"args": ["-y", "@caspav85/mcpai"]
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Or point directly at a local build:
|
|
71
|
+
|
|
72
|
+
```json
|
|
73
|
+
{
|
|
74
|
+
"mcpServers": {
|
|
75
|
+
"mcpai": {
|
|
76
|
+
"command": "node",
|
|
77
|
+
"args": ["/absolute/path/to/mcpai/dist/index.js"]
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Development
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
npm run dev # tsc --watch
|
|
87
|
+
npm run typecheck # type-check without emitting
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## License
|
|
91
|
+
|
|
92
|
+
Apache-2.0
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": "budd-ie",
|
|
4
|
+
"name": "Budd-ie",
|
|
5
|
+
"base_model_id": "budd-ie",
|
|
6
|
+
"meta": {
|
|
7
|
+
"description": "Super powered AI for technical execution, academic mastery, and high-level strategy.",
|
|
8
|
+
"suggestion_prompts": null,
|
|
9
|
+
"tags": [
|
|
10
|
+
{
|
|
11
|
+
"name": "budd-ie"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "programming"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"capabilities": {
|
|
18
|
+
"vision": false
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"params": {
|
|
22
|
+
"system": "# SYSTEM PROTOCOL: BUDD-IE (v2.0)\n## Role: Master Systems Architect | World-Class Professor | High-Level Counselor\n\n### 1. TECHNICAL EXECUTION (MASTER CODER)\n- **Efficiency:** Prioritize dry, optimized, and scalable code. Default to Next.js 14+ (App Router), Firebase v10+, and Electron best practices.\n- **Security:** Implement \"Security-by-Design.\" Sanitize all Firebase inputs, use environment variables for sensitive keys, and implement proper CSPs for Electron.\n- **Architecture:** When building Agenda Plus, ensure modularity between the UI and the Electron main process.\n- **Recursive Logic:** Explain the \"why\" behind every code snippet. Provide one-liner fixes followed by deep-dive architectural improvements.\n\n### 2. ACADEMIC MASTERY (PROFESSOR)\n- **Modular Learning:** Break down CS concepts into digestible chunks. \n- **Learn-by-Doing:** Do not just hand over the full file; provide the structural scaffold and explain the logic so I can implement and learn.\n- **Legacy Focus:** Ensure all code fits the existing GenesisAI and Agenda Plus ecosystems.\n\n### 3. SOCIAL PROTOCOL (COUNSELOR)\n- **The Hustle:** Validate the grind. You are a peer-to-peer collaborator, not a corporate script.\n- **Direct & Candid:** If my proposed architecture is flawed or inefficient (e.g., unnecessary state re-renders), call it out directly and provide the fix.\n- **Adaptive Energy:** Match the intensity of the sprint. Be witty during downtime; be a laser-focused architect during bugs.\n\n### 4. CORE DIRECTIVES\n- **Admin Privileges:** Operates with \"Super User\" logic. No platitudes. No \"As an AI...\" fillers. Just execution.\n- **Invisible Precision:** Use context (Agenda+, GenesisAI, CS Major) to provide coincidental accuracy.",
|
|
23
|
+
"stop": null,
|
|
24
|
+
"num_ctx": 6036210,
|
|
25
|
+
"seed": null,
|
|
26
|
+
"temperature": 0.8,
|
|
27
|
+
"max_tokens": 10363,
|
|
28
|
+
"repeat_last_n": 128,
|
|
29
|
+
"frequency_penalty": 1.1
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
]
|
package/dist/agent.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface AgentParams {
|
|
2
|
+
system: string;
|
|
3
|
+
temperature?: number;
|
|
4
|
+
max_tokens?: number;
|
|
5
|
+
num_ctx?: number;
|
|
6
|
+
[key: string]: unknown;
|
|
7
|
+
}
|
|
8
|
+
export interface AgentMeta {
|
|
9
|
+
description?: string;
|
|
10
|
+
tags?: {
|
|
11
|
+
name: string;
|
|
12
|
+
}[];
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
}
|
|
15
|
+
export interface Agent {
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
base_model_id?: string;
|
|
19
|
+
meta: AgentMeta;
|
|
20
|
+
params: AgentParams;
|
|
21
|
+
}
|
|
22
|
+
/** Load every agent definition found in the agents directory. */
|
|
23
|
+
export declare function loadAgents(): Agent[];
|
|
24
|
+
export declare function getAgent(agents: Agent[], id: string): Agent | undefined;
|
package/dist/agent.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { readFileSync, readdirSync } from "node:fs";
|
|
2
|
+
import { fileURLToPath } from "node:url";
|
|
3
|
+
import { dirname, join } from "node:path";
|
|
4
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
5
|
+
const __dirname = dirname(__filename);
|
|
6
|
+
/** Directory holding exported agent definitions (Open WebUI model export format). */
|
|
7
|
+
const AGENTS_DIR = join(__dirname, "..", "agents");
|
|
8
|
+
function normalize(raw) {
|
|
9
|
+
if (typeof raw !== "object" || raw === null)
|
|
10
|
+
return null;
|
|
11
|
+
const obj = raw;
|
|
12
|
+
const id = typeof obj.id === "string" ? obj.id : null;
|
|
13
|
+
const name = typeof obj.name === "string" ? obj.name : id;
|
|
14
|
+
const params = (obj.params ?? {});
|
|
15
|
+
const meta = (obj.meta ?? {});
|
|
16
|
+
if (!id || !name || typeof params.system !== "string")
|
|
17
|
+
return null;
|
|
18
|
+
return {
|
|
19
|
+
id,
|
|
20
|
+
name,
|
|
21
|
+
base_model_id: typeof obj.base_model_id === "string" ? obj.base_model_id : undefined,
|
|
22
|
+
meta,
|
|
23
|
+
params,
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
/** Load every agent definition found in the agents directory. */
|
|
27
|
+
export function loadAgents() {
|
|
28
|
+
const agents = [];
|
|
29
|
+
const files = readdirSync(AGENTS_DIR).filter((f) => f.endsWith(".json"));
|
|
30
|
+
for (const file of files) {
|
|
31
|
+
const contents = readFileSync(join(AGENTS_DIR, file), "utf-8");
|
|
32
|
+
const parsed = JSON.parse(contents);
|
|
33
|
+
const entries = Array.isArray(parsed) ? parsed : [parsed];
|
|
34
|
+
for (const entry of entries) {
|
|
35
|
+
const agent = normalize(entry);
|
|
36
|
+
if (agent)
|
|
37
|
+
agents.push(agent);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return agents;
|
|
41
|
+
}
|
|
42
|
+
export function getAgent(agents, id) {
|
|
43
|
+
return agents.find((a) => a.id === id);
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=agent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent.js","sourceRoot":"","sources":["../src/agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAE1C,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,MAAM,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AAEtC,qFAAqF;AACrF,MAAM,UAAU,GAAG,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;AAwBnD,SAAS,SAAS,CAAC,GAAY;IAC7B,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,IAAI;QAAE,OAAO,IAAI,CAAC;IACzD,MAAM,GAAG,GAAG,GAA8B,CAAC;IAC3C,MAAM,EAAE,GAAG,OAAO,GAAG,CAAC,EAAE,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;IACtD,MAAM,IAAI,GAAG,OAAO,GAAG,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;IAC1D,MAAM,MAAM,GAAG,CAAC,GAAG,CAAC,MAAM,IAAI,EAAE,CAAgB,CAAC;IACjD,MAAM,IAAI,GAAG,CAAC,GAAG,CAAC,IAAI,IAAI,EAAE,CAAc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,EAAE,KAAK,EAAE,CAAC,CAAC;AACzC,CAAC"}
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
3
|
+
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
import { loadAgents, getAgent } from "./agent.js";
|
|
6
|
+
const agents = loadAgents();
|
|
7
|
+
if (agents.length === 0) {
|
|
8
|
+
console.error("[mcpai] No agent definitions found in ./agents");
|
|
9
|
+
}
|
|
10
|
+
/** The primary agent this server embodies (first loaded, typically Budd-ie). */
|
|
11
|
+
const primary = agents[0];
|
|
12
|
+
const server = new McpServer({
|
|
13
|
+
name: "mcpai",
|
|
14
|
+
version: "0.1.0",
|
|
15
|
+
}, {
|
|
16
|
+
instructions: primary
|
|
17
|
+
? `This server embodies the "${primary.name}" agent. Use the "${primary.id}" prompt to converse in character, read agent://${primary.id} for its full definition, and call ask_agent to wrap a question in the agent's system protocol.`
|
|
18
|
+
: "MCP server for AI agent definitions.",
|
|
19
|
+
});
|
|
20
|
+
/* ----------------------------- Resources ----------------------------- */
|
|
21
|
+
server.registerResource("agents-index", "agent://index", {
|
|
22
|
+
title: "Agent index",
|
|
23
|
+
description: "List of all agents exposed by this server.",
|
|
24
|
+
mimeType: "application/json",
|
|
25
|
+
}, async (uri) => ({
|
|
26
|
+
contents: [
|
|
27
|
+
{
|
|
28
|
+
uri: uri.href,
|
|
29
|
+
mimeType: "application/json",
|
|
30
|
+
text: JSON.stringify(agents.map((a) => ({ id: a.id, name: a.name, description: a.meta.description })), null, 2),
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
}));
|
|
34
|
+
for (const agent of agents) {
|
|
35
|
+
server.registerResource(`agent-${agent.id}`, `agent://${agent.id}`, {
|
|
36
|
+
title: `${agent.name} definition`,
|
|
37
|
+
description: agent.meta.description ?? `Definition for the ${agent.name} agent.`,
|
|
38
|
+
mimeType: "application/json",
|
|
39
|
+
}, async (uri) => ({
|
|
40
|
+
contents: [
|
|
41
|
+
{
|
|
42
|
+
uri: uri.href,
|
|
43
|
+
mimeType: "application/json",
|
|
44
|
+
text: JSON.stringify(agent, null, 2),
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
}));
|
|
48
|
+
server.registerResource(`agent-${agent.id}-system`, `agent://${agent.id}/system`, {
|
|
49
|
+
title: `${agent.name} system prompt`,
|
|
50
|
+
description: `Raw system prompt for the ${agent.name} agent.`,
|
|
51
|
+
mimeType: "text/markdown",
|
|
52
|
+
}, async (uri) => ({
|
|
53
|
+
contents: [
|
|
54
|
+
{
|
|
55
|
+
uri: uri.href,
|
|
56
|
+
mimeType: "text/markdown",
|
|
57
|
+
text: agent.params.system,
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
}));
|
|
61
|
+
}
|
|
62
|
+
/* ------------------------------ Prompts ------------------------------ */
|
|
63
|
+
for (const agent of agents) {
|
|
64
|
+
server.registerPrompt(agent.id, {
|
|
65
|
+
title: `Chat as ${agent.name}`,
|
|
66
|
+
description: agent.meta.description ?? `Converse with the ${agent.name} agent.`,
|
|
67
|
+
argsSchema: {
|
|
68
|
+
message: z.string().describe("Your question or request for the agent."),
|
|
69
|
+
},
|
|
70
|
+
}, ({ message }) => ({
|
|
71
|
+
messages: [
|
|
72
|
+
{
|
|
73
|
+
role: "assistant",
|
|
74
|
+
content: {
|
|
75
|
+
type: "text",
|
|
76
|
+
text: `SYSTEM PROTOCOL for ${agent.name}:\n\n${agent.params.system}`,
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
role: "user",
|
|
81
|
+
content: { type: "text", text: message },
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
}));
|
|
85
|
+
}
|
|
86
|
+
/* ------------------------------- Tools ------------------------------- */
|
|
87
|
+
server.registerTool("list_agents", {
|
|
88
|
+
title: "List agents",
|
|
89
|
+
description: "List every agent this server exposes, with descriptions.",
|
|
90
|
+
inputSchema: {},
|
|
91
|
+
}, async () => ({
|
|
92
|
+
content: [
|
|
93
|
+
{
|
|
94
|
+
type: "text",
|
|
95
|
+
text: JSON.stringify(agents.map((a) => ({
|
|
96
|
+
id: a.id,
|
|
97
|
+
name: a.name,
|
|
98
|
+
description: a.meta.description,
|
|
99
|
+
tags: (a.meta.tags ?? []).map((t) => t.name),
|
|
100
|
+
})), null, 2),
|
|
101
|
+
},
|
|
102
|
+
],
|
|
103
|
+
}));
|
|
104
|
+
server.registerTool("get_agent", {
|
|
105
|
+
title: "Get agent",
|
|
106
|
+
description: "Return the full definition (system prompt + params) for an agent by id.",
|
|
107
|
+
inputSchema: { id: z.string().describe("Agent id, e.g. 'budd-ie'.") },
|
|
108
|
+
}, async ({ id }) => {
|
|
109
|
+
const agent = getAgent(agents, id);
|
|
110
|
+
if (!agent) {
|
|
111
|
+
return {
|
|
112
|
+
isError: true,
|
|
113
|
+
content: [{ type: "text", text: `No agent with id '${id}'.` }],
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
return { content: [{ type: "text", text: JSON.stringify(agent, null, 2) }] };
|
|
117
|
+
});
|
|
118
|
+
server.registerTool("ask_agent", {
|
|
119
|
+
title: "Ask agent",
|
|
120
|
+
description: "Wrap a question in an agent's system protocol, producing a ready-to-send prompt for an LLM.",
|
|
121
|
+
inputSchema: {
|
|
122
|
+
id: z.string().describe("Agent id, e.g. 'budd-ie'."),
|
|
123
|
+
message: z.string().describe("The question or request."),
|
|
124
|
+
},
|
|
125
|
+
}, async ({ id, message }) => {
|
|
126
|
+
const agent = getAgent(agents, id) ?? primary;
|
|
127
|
+
if (!agent) {
|
|
128
|
+
return {
|
|
129
|
+
isError: true,
|
|
130
|
+
content: [{ type: "text", text: "No agents available." }],
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
return {
|
|
134
|
+
content: [
|
|
135
|
+
{
|
|
136
|
+
type: "text",
|
|
137
|
+
text: `# System\n${agent.params.system}\n\n# User\n${message}`,
|
|
138
|
+
},
|
|
139
|
+
],
|
|
140
|
+
};
|
|
141
|
+
});
|
|
142
|
+
server.registerTool("echo", {
|
|
143
|
+
title: "Echo",
|
|
144
|
+
description: "Echo back the provided text (useful for connectivity checks).",
|
|
145
|
+
inputSchema: { text: z.string() },
|
|
146
|
+
}, async ({ text }) => ({ content: [{ type: "text", text }] }));
|
|
147
|
+
/* ------------------------------ Startup ------------------------------ */
|
|
148
|
+
async function main() {
|
|
149
|
+
const transport = new StdioServerTransport();
|
|
150
|
+
await server.connect(transport);
|
|
151
|
+
console.error("[mcpai] server running on stdio");
|
|
152
|
+
}
|
|
153
|
+
main().catch((err) => {
|
|
154
|
+
console.error("[mcpai] fatal:", err);
|
|
155
|
+
process.exit(1);
|
|
156
|
+
});
|
|
157
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAc,MAAM,YAAY,CAAC;AAE9D,MAAM,MAAM,GAAG,UAAU,EAAE,CAAC;AAC5B,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;IACxB,OAAO,CAAC,KAAK,CAAC,gDAAgD,CAAC,CAAC;AAClE,CAAC;AAED,gFAAgF;AAChF,MAAM,OAAO,GAAsB,MAAM,CAAC,CAAC,CAAC,CAAC;AAE7C,MAAM,MAAM,GAAG,IAAI,SAAS,CAC1B;IACE,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,OAAO;CACjB,EACD;I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,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,CAC5D,CAAC;AAEF,2EAA2E;AAE3E,KAAK,UAAU,IAAI;IACjB,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAC;IAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAChC,OAAO,CAAC,KAAK,CAAC,iCAAiC,CAAC,CAAC;AACnD,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,gBAAgB,EAAE,GAAG,CAAC,CAAC;IACrC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@caspav85/mcpai",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "MCP server that embodies the Budd-ie agent, exposing tools, prompts, and resources over the Model Context Protocol.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"bin": {
|
|
8
|
+
"mcpai": "dist/index.js"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"dist",
|
|
12
|
+
"agents"
|
|
13
|
+
],
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://github.com/virden26-sudo/mcpai.git"
|
|
17
|
+
},
|
|
18
|
+
"publishConfig": {
|
|
19
|
+
"access": "public"
|
|
20
|
+
},
|
|
21
|
+
"keywords": [
|
|
22
|
+
"mcp",
|
|
23
|
+
"model-context-protocol",
|
|
24
|
+
"ai",
|
|
25
|
+
"agent",
|
|
26
|
+
"budd-ie"
|
|
27
|
+
],
|
|
28
|
+
"scripts": {
|
|
29
|
+
"build": "tsc",
|
|
30
|
+
"start": "node dist/index.js",
|
|
31
|
+
"dev": "tsc --watch",
|
|
32
|
+
"typecheck": "tsc --noEmit",
|
|
33
|
+
"smoke": "npm run build && node scripts/smoke.mjs",
|
|
34
|
+
"inspect": "npx @modelcontextprotocol/inspector node dist/index.js",
|
|
35
|
+
"prepare": "npm run build",
|
|
36
|
+
"prepublishOnly": "npm run build"
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@modelcontextprotocol/sdk": "1.29.0",
|
|
40
|
+
"zod": "3.25.76"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@types/node": "22.10.5",
|
|
44
|
+
"typescript": "5.7.2"
|
|
45
|
+
},
|
|
46
|
+
"engines": {
|
|
47
|
+
"node": ">=18"
|
|
48
|
+
}
|
|
49
|
+
}
|