Nexus from A to Z, from your first project to a site delivered by your agents
Your progress
0 lesson completed out of 48

A lesson is completed when you tick it, when you watch its video to the end or when you score 80% on its quiz. The certificate is issued online after the final assessment, from a score of 32 out of 40.

Your progress is saved in this browser. Log in to your client area to pick it up on your other devices.

Video transcript

Lesson 34, module 9: Code agents and the terminal The Nexus API and MCP server Hugo wants the tasks in his spreadsheet. Does it all have to be copied by hand?

Two doors: a session's bridge, or the remote server with a key. [Diagram: A session's bridge or the server] A session's bridge The remote MCP server Both apply the same rights. Only the remote server needs a key. The key is created in Settings › API and MCP, named after the tool. Read-only if the tool doesn't write An expiry date, or never Revocable instantly First call: who am I? Request: curl -H "Authorization: Bearer $NEXUS_CLE" https://api.nexus-engine.eu/api/v1/auth/me Response: A member object: your name, your role, your company. The key works. Without a valid key, the response is 401 "Non authentifié". One key, its rights: those of the person who created it. [Diagram: A call, from script to response] 1. The key 2. The header 3. The rights 4. The response The key replays the rights of the person who created it: no more, no less. Claude Code, Codex, claude.ai: each one connects differently. claude mcp add --transport http ~/.codex/config.toml and a variable claude.ai and ChatGPT: OAuth, nothing to copy A 403 is a Nexus rule, not a fault. [Diagram: Reading an API response] Green: It responds Orange: Fix the call Red: Don't work around it The error message is in French; a 400 names the faulty field. In the exercise, you prepare the key and the first call for Hugo's dashboard. Your turn: The key and the first call for Hugo's dashboard The written course, the corrected exercise and the quiz are below the video.

Lesson 34 of 48 · module 9, coding agents and the terminal

The Nexus API and MCP server

A key created in Settings › API and MCP opens the API’s 1,182 routes and the MCP server’s 146 tools, with your exact permissions. You learn to create a read-only key, try it with curl, connect Claude Code, Codex or claude.ai to Nexus, and read errors and limits.

  • 20 min of reading
  • 1 min 55 of video
  • 7 diagrams
  • 1 demande to copy
  • 3 exemples pratiques
  • 4 exercices answerss
  • 5 questions
  • 1 ressource

By the end of this lesson, you will know how to

  • Create an API key suited to a tool, read-only when it doesn’t write, and store it outside the code
  • Call the API and the MCP server with curl, then connect an assistant outside Nexus
  • Read a failed response (401, 403, 404, 429) and respect the limits

What’s covered

  1. Two ways in, the same rights
  2. Create the right key
  3. Call the API with curl
  4. Connect an assistant to the MCP server
  5. Read errors and respect the limits
  6. 3 worked examples, followed from start to finish
  7. Exercise with answers · The key and the first call for Hugo’s dashboard
  8. 3 practice exercises, from guided to demanding cases
  9. The quiz

Key points

  • The API is Nexus itself: a key replays the exact rights of the person who created it.
  • One key per tool, in its name, read-only when it doesn’t write, with an expiry date where possible.
  • The key lives in the vault and in an environment variable, never in the code, a spreadsheet or a chat.
  • A session opened in Nexus already has its MCP bridge without a key; the remote server is for tools outside Nexus.
  • 401: the key; 403: a rule; 404: not found or belongs to another company; 429: wait.