Connect project to hub
connect_projectLink the current project (repository) to a Beringio hub. Returns a section for the repository's AGENTS.md file (read by Cursor, Codex, Claude Code and other AI coding tools) that tells AI tools working in this project to check this hub's decisions and to offer saving new ones there. Use this when the user asks to connect a project or repository to a hub. The tool only returns text and changes nothing. Show the section to the user; if they agree, add it to AGENTS.md at the repository root — replacing an existing section between the beringio:start and beringio:end markers (or the older deeplomats:start and deeplomats:end), otherwise appending it at the end (creating the file if there is none). Don't commit unless asked.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "connect_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hub | No | hub key or name (list_hubs); may be omitted if the user has one hub or one team hub | |
| lang | No | section language: ru or en — whatever the repository uses; default en |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | where to write it — path from the repository root | |
| note | Yes | ||
| text | Yes | the whole section, with start and end markers | |
| end_marker | Yes | ||
| start_marker | Yes |