a2a-bridge-for-mcp-clients 0.2.0 → 0.2.2
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/README.md +4 -0
- package/dist/icon.js +6 -0
- package/dist/meta.js +5 -0
- package/dist/server.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
<img src="assets/icon.svg" alt="" width="96" align="right">
|
|
2
|
+
|
|
1
3
|
# A2A Bridge for MCP Clients
|
|
2
4
|
|
|
5
|
+
[](https://www.npmjs.com/package/a2a-bridge-for-mcp-clients) [](https://github.com/kelemen-marton/a2a-bridge-for-mcp-clients/actions/workflows/ci.yml) [](https://glama.ai/mcp/servers/kelemen-marton/a2a-bridge-for-mcp-clients)
|
|
6
|
+
|
|
3
7
|
`a2a-bridge-for-mcp-clients` is a local stdio [MCP](https://modelcontextprotocol.io) server that lets MCP clients (Claude Code, Claude Desktop,
|
|
4
8
|
Codex, Cursor, VS Code, Windsurf and others) talk to [A2A](https://a2a-protocol.org) agents through one tool.
|
|
5
9
|
[Atlassian Rovo](https://a2a.atlassian.com/.well-known/agent.json) works out of the box. You can add any other A2A agent in a
|
package/dist/icon.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The M2A icon (MCP-to-A2A): a copy of `assets/icon.svg`, kept here because the npm package ships only `dist`.
|
|
3
|
+
* test/metadata.test.ts checks that both copies stay identical.
|
|
4
|
+
*/
|
|
5
|
+
export const ICON_SVG = '<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512" role="img" aria-label="M2A: A2A Bridge for MCP Clients"><title>A2A Bridge for MCP Clients</title><defs><linearGradient id="bg" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#2F3743"/><stop offset="1" stop-color="#20252D"/></linearGradient></defs><rect width="512" height="512" rx="112" fill="url(#bg)"/><g fill="none" stroke-linecap="round" stroke-linejoin="round"><path d="M194 323.7V195.5 M236 320.4V184.4 M278 320.5V183.9 M320 324V193.8" stroke="#898F5C" stroke-width="10"/><path d="M120 338Q256 302 392 338" stroke="#E2B43C" stroke-width="28"/><path d="M154 240C166 164 352 164 364 240C364 280 212 303.6 138 333.6" stroke="#E2B43C" stroke-width="28"/><path d="M40 338V210L80 286L120 210V338" stroke="#F5F1E8" stroke-width="28"/><path d="M392 338L432 210L472 338M411 294H453" stroke="#F5F1E8" stroke-width="28"/></g></svg>';
|
|
6
|
+
//# sourceMappingURL=icon.js.map
|
package/dist/meta.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/** Names and metadata shared by the MCP server, CLI and registry entry. */
|
|
2
2
|
import { readFileSync } from 'node:fs';
|
|
3
3
|
import { APP_DIR_NAME } from './config.js';
|
|
4
|
+
import { ICON_SVG } from './icon.js';
|
|
4
5
|
/** Machine name: package, MCP server `name`, config directory. */
|
|
5
6
|
export const APP_NAME = APP_DIR_NAME;
|
|
6
7
|
/** Human-readable name shown by MCP clients and on OAuth consent screens. */
|
|
@@ -11,4 +12,8 @@ export const CLI_NAME = 'a2a-bridge';
|
|
|
11
12
|
export const VERSION = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf8')).version;
|
|
12
13
|
export const DESCRIPTION = 'Talk to A2A agents (Atlassian Rovo and others) from any MCP client.';
|
|
13
14
|
export const REPOSITORY_URL = 'https://github.com/kelemen-marton/a2a-bridge-for-mcp-clients';
|
|
15
|
+
/** Icons sent in the MCP server info. The SVG is inline, so clients that show it fetch nothing. */
|
|
16
|
+
export const ICONS = [
|
|
17
|
+
{ src: `data:image/svg+xml;base64,${Buffer.from(ICON_SVG).toString('base64')}`, mimeType: 'image/svg+xml', sizes: ['any'] },
|
|
18
|
+
];
|
|
14
19
|
//# sourceMappingURL=meta.js.map
|
package/dist/server.js
CHANGED
|
@@ -10,7 +10,7 @@ import { formatAskResult, formatError, formatTask, wrapUntrusted } from './forma
|
|
|
10
10
|
import { SignInRequiredError, withoutSignIn } from './oauth.js';
|
|
11
11
|
import { errorMessage, sameOrigin } from './http.js';
|
|
12
12
|
import { log } from './log.js';
|
|
13
|
-
import { APP_NAME, CLI_NAME, DESCRIPTION, DISPLAY_NAME, REPOSITORY_URL, VERSION } from './meta.js';
|
|
13
|
+
import { APP_NAME, CLI_NAME, DESCRIPTION, DISPLAY_NAME, ICONS, REPOSITORY_URL, VERSION } from './meta.js';
|
|
14
14
|
import { describeAccount, isAtlassianNetSite, lookupCloudId, matchSite, normaliseSite, sitesMentioned } from './sites.js';
|
|
15
15
|
import { cleanText, oneLine } from './text.js';
|
|
16
16
|
import { currentTrace, inTrace } from './trace.js';
|
|
@@ -381,7 +381,7 @@ export function createServer(config, profiles, { now = Date.now } = {}) {
|
|
|
381
381
|
return formatTask(profile.name, task, timedOut, { ...(target ? { target } : {}), ...siteMeta(identity) });
|
|
382
382
|
}, chosen);
|
|
383
383
|
};
|
|
384
|
-
const server = new McpServer({ name: APP_NAME, title: DISPLAY_NAME, version: VERSION, description: DESCRIPTION, websiteUrl: REPOSITORY_URL }, {
|
|
384
|
+
const server = new McpServer({ name: APP_NAME, title: DISPLAY_NAME, version: VERSION, description: DESCRIPTION, websiteUrl: REPOSITORY_URL, icons: ICONS }, {
|
|
385
385
|
instructions: `Tools for talking to A2A agents. Available agents:\n${agentList}\n` +
|
|
386
386
|
'Pass the returned contextId (with the same agent) on follow-up questions to keep the conversation. ' +
|
|
387
387
|
(anySites ? 'For agents with several sites, pass site when the user names one; otherwise the user is asked. ' : '') +
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "a2a-bridge-for-mcp-clients",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Local stdio MCP server that lets MCP clients talk to A2A agents, with an Atlassian Rovo preset",
|
|
5
5
|
"mcpName": "io.github.kelemen-marton/a2a-bridge-for-mcp-clients",
|
|
6
6
|
"keywords": [
|