@agent-city/mcp-server 0.0.0-stage → 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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 AgentCity contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,50 @@
1
- # Temporary Holding Version
1
+ # @agent-city/mcp-server
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Servidor MCP (stdio) de AgentCity. Lo puede usar cualquier cliente MCP. Habla con el engine local (`http://127.0.0.1:4317`)
4
+ y si el engine no está corriendo, devuelve un error legible y no se cae.
5
+
6
+ | Herramienta | Qué hace |
7
+ |---|---|
8
+ | `consultar_memoria` `{query, project?}` | Busca lecciones verificadas (`GET /lessons`) |
9
+ | `recordar` `{text, evidence, verified, tags?, project?}` | Guarda una lección. **Solo si `verified=true`** y `evidence` describe las pruebas que pasaron |
10
+ | `pedir_aprobacion` `{action, target, reason?}` | Pasa por la puerta de aprobación (`/hooks/pre-tool`) y devuelve `allow` / `deny` |
11
+ | `reportar_paso` `{action, category?, target?, status?, summary?}` | Emite `step.start` (sin `status`) o `step.end` |
12
+ | `reportar_plan` `{nodes}` | Emite `plan.update` |
13
+
14
+ **Sin herramientas para editar ni borrar memoria, a propósito.** La memoria es del usuario: un agente que pudiera
15
+ borrar o reescribir lecciones podría ocultar sus propios errores o envenenar lo que aprenden las demás IAs. Editar y
16
+ borrar (`PATCH`/`DELETE /lessons/:id`) solo se hace desde la UI o la CLI (`agentcity memory edit|rm`).
17
+
18
+ Entorno: `AGENTCITY_SOURCE` (herramienta de origen, por defecto `mcp`), `AGENTCITY_SESSION_ID` (si no está, se genera),
19
+ `AGENTCITY_AGENT_ID`, `AGENTCITY_PROJECT`, `AGENTCITY_PORT` / `AGENTCITY_URL`.
20
+
21
+ ## Claude Code
22
+
23
+ ```bash
24
+ claude mcp add agentcity -e AGENTCITY_SOURCE=claude-code -- npx -y @agent-city/mcp-server
25
+ ```
26
+
27
+ o en `.mcp.json`:
28
+
29
+ ```json
30
+ { "mcpServers": { "agentcity": { "command": "npx", "args": ["-y", "@agent-city/mcp-server"], "env": { "AGENTCITY_SOURCE": "claude-code" } } } }
31
+ ```
32
+
33
+ ## Cursor (`~/.cursor/mcp.json`)
34
+
35
+ ```json
36
+ { "mcpServers": { "agentcity": { "command": "npx", "args": ["-y", "@agent-city/mcp-server"], "env": { "AGENTCITY_SOURCE": "cursor" } } } }
37
+ ```
38
+
39
+ ## ChatGPT u otros clientes MCP
40
+
41
+ Si el cliente lanza servidores stdio, usa el comando `agentcity-mcp` (o `npx -y @agent-city/mcp-server`) y define
42
+ `AGENTCITY_SOURCE` con el nombre del cliente (`chatgpt`, `gemini`, `codex`...). Si el cliente solo acepta MCP remoto
43
+ (HTTP), por ahora hace falta un puente stdio→HTTP local. El engine nunca se expone fuera de 127.0.0.1.
44
+
45
+ ## Uso programático
46
+
47
+ ```ts
48
+ import { createServer } from '@agent-city/mcp-server';
49
+ const { server } = createServer({ source: 'my-agent' });
50
+ ```
package/dist/bin.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export {};
package/dist/bin.js ADDED
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env node
2
+ import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
3
+ import { createServer } from './server.js';
4
+ // Never crash the host agent: log to stderr only (stdout is the MCP channel).
5
+ process.on('uncaughtException', (err) => { process.stderr.write(`[agentcity-mcp] ${err.message}\n`); });
6
+ process.on('unhandledRejection', (err) => { process.stderr.write(`[agentcity-mcp] ${String(err)}\n`); });
7
+ const { server } = createServer();
8
+ await server.connect(new StdioServerTransport());
9
+ //# sourceMappingURL=bin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bin.js","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,8EAA8E;AAC9E,OAAO,CAAC,EAAE,CAAC,mBAAmB,EAAE,CAAC,GAAG,EAAE,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,mBAAmB,GAAG,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACxG,OAAO,CAAC,EAAE,CAAC,oBAAoB,EAAE,CAAC,GAAG,EAAE,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,mBAAmB,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAEzG,MAAM,EAAE,MAAM,EAAE,GAAG,YAAY,EAAE,CAAC;AAClC,MAAM,MAAM,CAAC,OAAO,CAAC,IAAI,oBAAoB,EAAE,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { createServer, compactLessons, DEFAULT_RECALL, VERSION } from './server.js';
2
+ export type { ServerOptions } from './server.js';
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export { createServer, compactLessons, DEFAULT_RECALL, VERSION } from './server.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,33 @@
1
+ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ import { type Lesson } from '@agent-city/spec';
3
+ export declare const VERSION = "0.1.0";
4
+ export type ServerOptions = {
5
+ /** Engine base URL. Default engineUrl(). */
6
+ url?: string;
7
+ /** Origin tool name. Default env AGENTCITY_SOURCE or 'mcp'. */
8
+ source?: string;
9
+ /** Session id. Default env AGENTCITY_SESSION_ID or generated. */
10
+ sessionId?: string;
11
+ agentId?: string;
12
+ project?: string;
13
+ /** Timeout for normal requests (ms). Default 2000. */
14
+ requestTimeoutMs?: number;
15
+ /** Max wait for a human approval (ms). Default APPROVAL_TIMEOUT_MS + 5s. */
16
+ approvalTimeoutMs?: number;
17
+ fetch?: typeof fetch;
18
+ };
19
+ type Identity = {
20
+ tool: string;
21
+ sessionId: string;
22
+ agentId: string;
23
+ project?: string;
24
+ };
25
+ /** Lessons returned by consultar_memoria when no limit is given: enough to help, cheap in tokens. */
26
+ export declare const DEFAULT_RECALL = 5;
27
+ /** One line per lesson (score, text, tags, first line of the evidence). Far cheaper than pretty JSON. */
28
+ export declare function compactLessons(lessons: readonly Lesson[], limit?: number): string;
29
+ export declare function createServer(opts?: ServerOptions): {
30
+ server: McpServer;
31
+ identity: Identity;
32
+ };
33
+ export {};
package/dist/server.js ADDED
@@ -0,0 +1,216 @@
1
+ import path from 'node:path';
2
+ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
3
+ import { z } from 'zod';
4
+ import { createEvent, categorize, engineUrl, newId, redactDeep, STEP_CATEGORIES, STEP_STATUSES, PLAN_STATES, APPROVAL_TIMEOUT_MS, } from '@agent-city/spec';
5
+ export const VERSION = '0.1.0';
6
+ const text = (s, isError = false) => ({ content: [{ type: 'text', text: s }], ...(isError ? { isError: true } : {}) });
7
+ /** Lessons returned by consultar_memoria when no limit is given: enough to help, cheap in tokens. */
8
+ export const DEFAULT_RECALL = 5;
9
+ /** One line per lesson (score, text, tags, first line of the evidence). Far cheaper than pretty JSON. */
10
+ export function compactLessons(lessons, limit = DEFAULT_RECALL) {
11
+ const cut = (v, n) => (v.length > n ? `${v.slice(0, n - 1)}…` : v);
12
+ const lines = lessons.slice(0, limit).map((l) => {
13
+ const tags = l.tags.length ? ` [${l.tags.join(', ')}]` : '';
14
+ return `- (${l.score}★ ${l.source.tool}) ${cut(l.text, 300)}${tags} | proof: ${cut(l.evidence.split('\n')[0] ?? '', 100)} | id ${l.id}`;
15
+ });
16
+ if (lessons.length > limit)
17
+ lines.push(`(+${lessons.length - limit} more; raise limit)`);
18
+ return lines.join('\n');
19
+ }
20
+ const unreachable = (base) => text(`AgentCity engine unreachable at ${base}. Start it with "agentcity start". / El motor de AgentCity no responde; inícialo con "agentcity start".`, true);
21
+ export function createServer(opts = {}) {
22
+ const base = (opts.url ?? process.env.AGENTCITY_URL ?? engineUrl()).replace(/\/$/, '');
23
+ const doFetch = opts.fetch ?? globalThis.fetch;
24
+ const reqTimeout = opts.requestTimeoutMs ?? 2000;
25
+ const approvalTimeout = opts.approvalTimeoutMs ?? APPROVAL_TIMEOUT_MS + 5000;
26
+ // same default as the hooks (basename of cwd) so lessons and test runs of one project meet
27
+ const project = opts.project ?? process.env.AGENTCITY_PROJECT ?? (path.basename(process.cwd()) || undefined);
28
+ const id = {
29
+ tool: opts.source ?? process.env.AGENTCITY_SOURCE ?? 'mcp',
30
+ sessionId: opts.sessionId ?? process.env.AGENTCITY_SESSION_ID ?? newId(),
31
+ agentId: opts.agentId ?? process.env.AGENTCITY_AGENT_ID ?? 'main',
32
+ ...(project ? { project } : {}),
33
+ };
34
+ async function call(path, init, timeoutMs = reqTimeout) {
35
+ try {
36
+ const res = await doFetch(base + path, { ...init, headers: { 'content-type': 'application/json' }, signal: AbortSignal.timeout(timeoutMs) });
37
+ let body = undefined;
38
+ try {
39
+ body = await res.json();
40
+ }
41
+ catch { /* non-JSON body */ }
42
+ return { status: res.status, body };
43
+ }
44
+ catch {
45
+ return undefined;
46
+ }
47
+ }
48
+ function event(kind, extra = {}, proj) {
49
+ const p = proj ?? id.project;
50
+ return createEvent({
51
+ kind,
52
+ // channel: steps the model reports about itself; never accepted as proof of a test run
53
+ source: { tool: id.tool, channel: 'mcp' },
54
+ session: { id: id.sessionId, ...(p ? { project: p } : {}) },
55
+ agent: { id: id.agentId },
56
+ ...extra,
57
+ });
58
+ }
59
+ const postEvents = (evs) => call('/events', { method: 'POST', body: JSON.stringify(evs) });
60
+ const server = new McpServer({ name: 'agentcity', version: VERSION }, {
61
+ // shown to the model once per session: when to use the shared memory
62
+ instructions: 'AgentCity shared memory. Before non-trivial work call consultar_memoria with what you are about to do. ' +
63
+ 'After you fix a bug or learn something non-obvious and the tests pass, call recordar with a short lesson and the test command + result. ' +
64
+ 'After a failing test passes thanks to your fix, call aceptar_propuesta: AgentCity may have proposed a lesson from what it observed.',
65
+ });
66
+ // Deliberately no tool edits or deletes lessons (PATCH/DELETE /lessons/:id): memory belongs to the user. An agent that
67
+ // could erase or rewrite lessons could hide its own mistakes or poison what other AIs learn. Only people edit or delete,
68
+ // from the UI or the CLI (`agentcity memory edit|rm`). Keep this list read/append only; the test pins it.
69
+ server.registerTool('consultar_memoria', {
70
+ description: 'Search AgentCity shared memory for verified lessons learned (by any AI) relevant to the current task. Call before starting non-trivial work.',
71
+ inputSchema: {
72
+ query: z.string().min(1).describe('What you are about to do'),
73
+ project: z.string().optional().describe('Project name to scope the search'),
74
+ limit: z.number().int().min(1).max(20).optional().describe('Max lessons (default 5)'),
75
+ },
76
+ }, async ({ query, project: p, limit }) => {
77
+ // active=1: archived lessons (duplicates, low score, stale) are not handed to agents
78
+ const qs = new URLSearchParams({ q: query, active: '1' });
79
+ const proj = p ?? id.project;
80
+ if (proj)
81
+ qs.set('project', proj);
82
+ const r = await call(`/lessons?${qs}`, { method: 'GET' });
83
+ if (!r)
84
+ return unreachable(base);
85
+ if (r.status >= 400 || !Array.isArray(r.body))
86
+ return text(`Engine error ${r.status}: ${JSON.stringify(r.body)}`, true);
87
+ const lessons = redactDeep(r.body);
88
+ // one recall per lesson handed out: the engine scores each by the project's next test results
89
+ const handed = lessons.slice(0, limit ?? DEFAULT_RECALL);
90
+ if (handed.length) {
91
+ void postEvents(handed.map((l) => event('lesson.recall', { lesson: { id: l.id, text: l.text, score: l.score } }, proj)));
92
+ }
93
+ if (lessons.length === 0)
94
+ return text('No lessons found.');
95
+ return text(compactLessons(lessons, limit ?? DEFAULT_RECALL));
96
+ });
97
+ server.registerTool('recordar', {
98
+ description: 'Save a lesson to AgentCity shared memory. ONLY verified lessons are stored: the fix must have passed tests, `verified` must be true and `evidence` must describe the passing test run (command + result). Unverified lessons are rejected. AgentCity also checks it recorded a passing test run of this project in the last hour.',
99
+ inputSchema: {
100
+ text: z.string().min(1).describe('The lesson, short and actionable'),
101
+ evidence: z.string().min(1).describe('Passing test run: command + result'),
102
+ verified: z.boolean().describe('Must be true: tests passed'),
103
+ tags: z.array(z.string()).optional(),
104
+ project: z.string().optional(),
105
+ },
106
+ }, async ({ text: t, evidence, verified, tags, project: p }) => {
107
+ if (verified !== true) {
108
+ return text('Rejected: only lessons verified by passing tests are stored. Run the tests, then call again with verified=true and the evidence.', true);
109
+ }
110
+ const proj = p ?? id.project;
111
+ const input = redactDeep({
112
+ text: t, evidence, verified, ...(tags ? { tags } : {}), ...(proj ? { project: proj } : {}),
113
+ source: { tool: id.tool, sessionId: id.sessionId, agentId: id.agentId },
114
+ });
115
+ const r = await call('/lessons', { method: 'POST', body: JSON.stringify(input) });
116
+ if (!r)
117
+ return unreachable(base);
118
+ const body = r.body;
119
+ if (r.status >= 400 || !body || body.error || !body.id)
120
+ return text(`Lesson rejected by engine: ${body?.error ?? r.status} / Lección rechazada por el motor`, true);
121
+ void postEvents([event('lesson.write', { lesson: { id: body.id, text: body.text ?? t, evidence, ...(body.score !== undefined ? { score: body.score } : {}) } }, proj)]);
122
+ return text(`Saved lesson ${body.id}. / Lección guardada ${body.id}.`);
123
+ });
124
+ server.registerTool('aceptar_propuesta', {
125
+ description: 'AgentCity proposes a lesson when it sees a test fail, files change and the test pass. Without id: list recent proposals of this project. ' +
126
+ 'With id + cause: save it, with the cause in one sentence. Only for real problems you fixed, never for something you broke on purpose (e.g. to test).',
127
+ inputSchema: {
128
+ id: z.string().optional().describe('Proposal id; omit to list'),
129
+ cause: z.string().optional().describe('Root cause and fix in one sentence'),
130
+ },
131
+ }, async ({ id: pid, cause }) => {
132
+ const proj = id.project;
133
+ if (!pid) {
134
+ const qs = new URLSearchParams({ recent: '1', ...(proj ? { project: proj } : {}) });
135
+ const r = await call(`/lessons/proposals?${qs}`, { method: 'GET' });
136
+ if (!r)
137
+ return unreachable(base);
138
+ const list = Array.isArray(r.body) ? r.body : [];
139
+ if (!list.length)
140
+ return text('No proposals.');
141
+ return text(list.slice(0, 5).map((x) => `- ${x.id}: \`${x.command}\` fixed by ${x.files.map((f) => f.split(/[\\/]/).pop()).join(', ')}`).join('\n'));
142
+ }
143
+ if (!cause?.trim())
144
+ return text('Give the cause in one sentence.', true);
145
+ const r = await call(`/lessons/proposals/${encodeURIComponent(pid)}/accept`, { method: 'POST', body: JSON.stringify(redactDeep({ text: cause.trim(), by: 'agent', ...(proj ? { project: proj } : {}) })) });
146
+ if (!r)
147
+ return unreachable(base);
148
+ const body = r.body;
149
+ if (r.status >= 400 || !body?.id)
150
+ return text(`Not saved: ${body?.error ?? r.status}`, true);
151
+ return text(`Saved lesson ${body.id}.`);
152
+ });
153
+ server.registerTool('pedir_aprobacion', {
154
+ description: 'Ask the human (via AgentCity policies / approval gate) for permission before a risky action. Returns "allow" or "deny"; respect the answer.',
155
+ inputSchema: {
156
+ action: z.string().min(1).describe('Tool or action name, e.g. Bash'),
157
+ target: z.string().min(1).describe('File, command or URL affected'),
158
+ reason: z.string().optional().describe('Why it is needed'),
159
+ },
160
+ }, async ({ action, target, reason }) => {
161
+ const ev = event('approval.request', {
162
+ step: { action, category: categorize(action), target },
163
+ approval: { requestId: newId(), ...(reason ? { reason } : {}) },
164
+ });
165
+ const req = { event: ev, requireHuman: true };
166
+ const r = await call('/hooks/pre-tool', { method: 'POST', body: JSON.stringify(req) }, approvalTimeout);
167
+ if (!r)
168
+ return text(`deny: AgentCity no recibió decisión / AgentCity received no decision (engine unreachable at ${base}). Do NOT perform this action.`, true);
169
+ const body = r.body;
170
+ if (r.status >= 400 || !body || (body.decision !== 'allow' && body.decision !== 'deny'))
171
+ return text(`deny: AgentCity no recibió decisión / AgentCity received no decision (engine ${r.status}). Do NOT perform this action.`, true);
172
+ return text(body.reason ? `${body.decision}: ${body.reason}` : body.decision);
173
+ });
174
+ server.registerTool('reportar_paso', {
175
+ description: 'Report a step you are doing or just did so it shows in AgentCity (city, 2D view, timeline).',
176
+ inputSchema: {
177
+ action: z.string().min(1).describe('Action name, e.g. Edit, Bash'),
178
+ category: z.enum(STEP_CATEGORIES).optional(),
179
+ target: z.string().optional(),
180
+ status: z.enum(STEP_STATUSES).optional().describe('Omit for a started step; set when finished'),
181
+ summary: z.string().optional(),
182
+ },
183
+ }, async ({ action, category, target, status, summary }) => {
184
+ const ev = event(status ? 'step.end' : 'step.start', {
185
+ step: { action, category: category ?? categorize(action), ...(target ? { target } : {}), ...(status ? { status } : {}), ...(summary ? { summary } : {}) },
186
+ });
187
+ const r = await postEvents([ev]);
188
+ if (!r)
189
+ return unreachable(base);
190
+ if (r.status >= 400)
191
+ return text(`Engine error ${r.status} / Error del motor`, true);
192
+ return text('ok');
193
+ });
194
+ server.registerTool('reportar_plan', {
195
+ description: 'Publish or update your plan as a tree of nodes so the human can follow and prune it in AgentCity.',
196
+ inputSchema: {
197
+ nodes: z.array(z.object({
198
+ id: z.string(),
199
+ parentId: z.string().optional(),
200
+ label: z.string(),
201
+ state: z.enum(PLAN_STATES),
202
+ confidence: z.number().min(0).max(1).optional(),
203
+ reversible: z.boolean().optional(),
204
+ })).min(1),
205
+ },
206
+ }, async ({ nodes }) => {
207
+ const r = await postEvents([event('plan.update', { plan: { nodes } })]);
208
+ if (!r)
209
+ return unreachable(base);
210
+ if (r.status >= 400)
211
+ return text(`Engine error ${r.status} / Error del motor`, true);
212
+ return text(`ok (${nodes.length} nodes)`);
213
+ });
214
+ return { server, identity: id };
215
+ }
216
+ //# sourceMappingURL=server.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEpE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,aAAa,EAAE,WAAW,EAAE,mBAAmB,GAExH,MAAM,kBAAkB,CAAC;AAE1B,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC;AAoB/B,MAAM,IAAI,GAAG,CAAC,CAAS,EAAE,OAAO,GAAG,KAAK,EAAkB,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EA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AM,EAAE,CAAC,QAAQ,EAAE;gBAC/B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;gBACjB,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC;gBAC1B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;gBAC/C,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;aACnC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;SACX;KACF,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE;QACrB,MAAM,CAAC,GAAG,MAAM,UAAU,CAAC,CAAC,KAAK,CAAC,aAAa,EAAE,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;QACxE,IAAI,CAAC,CAAC;YAAE,OAAO,WAAW,CAAC,IAAI,CAAC,CAAC;QACjC,IAAI,CAAC,CAAC,MAAM,IAAI,GAAG;YAAE,OAAO,IAAI,CAAC,gBAAgB,CAAC,CAAC,MAAM,oBAAoB,EAAE,IAAI,CAAC,CAAC;QACrF,OAAO,IAAI,CAAC,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC,CAAC;IAC5C,CAAC,CAAC,CAAC;IAEH,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC;AAClC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,46 @@
1
1
  {
2
2
  "name": "@agent-city/mcp-server",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.0",
4
+ "description": "AgentCity MCP server (stdio): shared verified memory, approvals and step reporting for any MCP client",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "main": "dist/index.js",
8
+ "types": "dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "default": "./dist/index.js"
13
+ }
14
+ },
15
+ "bin": {
16
+ "agentcity-mcp": "dist/bin.js"
17
+ },
18
+ "files": [
19
+ "dist"
20
+ ],
21
+ "dependencies": {
22
+ "@modelcontextprotocol/sdk": "^1.12.0",
23
+ "zod": "^3.24.0",
24
+ "@agent-city/spec": "0.1.0"
25
+ },
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "git+https://github.com/marlonyi/agentcity-kit.git",
29
+ "directory": "packages/mcp-server"
30
+ },
31
+ "homepage": "https://github.com/marlonyi/agentcity-kit#readme",
32
+ "bugs": {
33
+ "url": "https://github.com/marlonyi/agentcity-kit/issues"
34
+ },
35
+ "engines": {
36
+ "node": ">=22.13"
37
+ },
38
+ "publishConfig": {
39
+ "access": "public"
40
+ },
41
+ "scripts": {
42
+ "build": "tsc -p tsconfig.json",
43
+ "typecheck": "tsc -p tsconfig.json --noEmit",
44
+ "test": "vitest run"
45
+ }
6
46
  }